test: dont test for the errors file because we no longer export it (#9628)

This commit is contained in:
Joel Einbinder 2021-10-19 19:39:11 -04:00 committed by GitHub
parent 983cfde4d4
commit 740b81376d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 8 deletions

View File

@ -16,7 +16,6 @@
import { chromium, firefox, webkit, selectors, devices, errors } from 'playwright-firefox';
import playwright from 'playwright-firefox';
import errorsFile from 'playwright-core/lib/utils/errors';
import testESM from './esm.mjs';
testESM({ chromium, firefox, webkit, selectors, devices, errors, playwright, errorsFile }, [firefox]);
testESM({ chromium, firefox, webkit, selectors, devices, errors, playwright }, [firefox]);

View File

@ -17,7 +17,6 @@
import { chromium, firefox, webkit, selectors, devices, errors, test, expect } from '@playwright/test';
import * as playwright from '@playwright/test';
import defaultExport from '@playwright/test';
import errorsFile from 'playwright-core/lib/utils/errors';
import testESM from './esm.mjs';
if (defaultExport !== test) {
@ -36,4 +35,4 @@ if (typeof expect !== 'function') {
}
expect(1).toBe(1);
testESM({ chromium, firefox, webkit, selectors, devices, errors, playwright, errorsFile }, [chromium, firefox, webkit]);
testESM({ chromium, firefox, webkit, selectors, devices, errors, playwright }, [chromium, firefox, webkit]);

View File

@ -16,7 +16,6 @@
import { chromium, firefox, webkit, selectors, devices, errors } from 'playwright-webkit';
import playwright from 'playwright-webkit';
import errorsFile from 'playwright-core/lib/utils/errors';
import testESM from './esm.mjs';
testESM({ chromium, firefox, webkit, selectors, devices, errors, playwright, errorsFile }, [webkit]);
testESM({ chromium, firefox, webkit, selectors, devices, errors, playwright }, [webkit]);

View File

@ -16,7 +16,6 @@
import { chromium, firefox, webkit, selectors, devices, errors } from 'playwright';
import playwright from 'playwright';
import errorsFile from 'playwright-core/lib/utils/errors';
import testESM from './esm.mjs';
testESM({ chromium, firefox, webkit, selectors, devices, errors, playwright, errorsFile }, [chromium, firefox, webkit]);
testESM({ chromium, firefox, webkit, selectors, devices, errors, playwright }, [chromium, firefox, webkit]);