test: migrate to helpers & disabled tests list (#37513)
* test: migrate to helpers & disabled tests list * can't disable a test suite * correct condition * address review comments
This commit is contained in:
parent
58f3c0ee37
commit
b8a21dbcd7
20 changed files with 95 additions and 117 deletions
|
@ -282,7 +282,8 @@ describe('protocol module', () => {
|
|||
ipcMain.once('loaded-iframe-custom-protocol', () => done());
|
||||
});
|
||||
|
||||
it.skip('throws an error when custom headers are invalid', (done) => {
|
||||
// DISABLED-FIXME
|
||||
it('throws an error when custom headers are invalid', (done) => {
|
||||
registerFileProtocol(protocolName, (request, callback) => {
|
||||
expect(() => callback({
|
||||
path: filePath,
|
||||
|
@ -879,7 +880,8 @@ describe('protocol module', () => {
|
|||
await requestReceived;
|
||||
});
|
||||
|
||||
it.skip('can access files through the FileSystem API', (done) => {
|
||||
// DISABLED-FIXME
|
||||
it('can access files through the FileSystem API', (done) => {
|
||||
const filePath = path.join(fixturesPath, 'pages', 'filesystem.html');
|
||||
protocol.registerFileProtocol(standardScheme, (request, callback) => callback({ path: filePath }));
|
||||
w.loadURL(origin);
|
||||
|
@ -928,8 +930,8 @@ describe('protocol module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
// FIXME: Figure out why this test is failing
|
||||
it.skip('disallows CORS and fetch requests when only supportFetchAPI is specified', async () => {
|
||||
// DISABLED-FIXME: Figure out why this test is failing
|
||||
it('disallows CORS and fetch requests when only supportFetchAPI is specified', async () => {
|
||||
await allowsCORSRequests('no-cors', ['failed xhr', 'failed fetch'], /has been blocked by CORS policy/, () => {
|
||||
const { ipcRenderer } = require('electron');
|
||||
Promise.all([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue