Skip to content

Commit 0ee9050

Browse files
authored
chore: split playwright.fixtures into files (4) (#3985)
1 parent cef27d6 commit 0ee9050

File tree

141 files changed

+435
-410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+435
-410
lines changed

package-lock.json

Lines changed: 29 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/accessibility.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { it, expect, describe, options } from './playwright.fixtures';
18+
import { it, expect, describe, options } from './fixtures';
1919

2020
it('should work', async ({ page, isFirefox, isChromium }) => {
2121
await page.setContent(`

test/autowaiting-basic.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { it, expect, options } from './playwright.fixtures';
18+
import { it, expect, options } from './fixtures';
1919

2020
it('should await navigation when clicking anchor', async ({page, server}) => {
2121
const messages = [];

test/autowaiting-no-hang.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
import { it } from './playwright.fixtures';
17+
import { it } from './fixtures';
1818

1919
it('clicking on links which do not commit navigation', async ({page, server, httpsServer}) => {
2020
await page.goto(server.EMPTY_PAGE);

test/browser.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { it, expect } from './playwright.fixtures';
17+
import { it, expect } from './fixtures';
1818

1919
it('should create new page', async function({browser}) {
2020
const page1 = await browser.newPage();

test/browsercontext-add-cookies.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { it, expect } from './playwright.fixtures';
18+
import { it, expect } from './fixtures';
1919

2020
it('should work', async ({context, page, server}) => {
2121
await page.goto(server.EMPTY_PAGE);

test/browsercontext-basic.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { it, expect } from './playwright.fixtures';
18+
import { it, expect } from './fixtures';
1919
import { verifyViewport } from './utils';
2020

2121
it('should create new context', async function({browser}) {

test/browsercontext-clearcookies.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { it, expect } from './playwright.fixtures';
18+
import { it, expect } from './fixtures';
1919

2020
it('should clear cookies', async ({context, page, server}) => {
2121
await page.goto(server.EMPTY_PAGE);

test/browsercontext-cookies.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { it, expect, options } from './playwright.fixtures';
18+
import { it, expect, options } from './fixtures';
1919

2020
it('should return no cookies in pristine browser context', async ({context, page, server}) => {
2121
expect(await context.cookies()).toEqual([]);

test/browsercontext-credentials.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { it, expect, options } from './playwright.fixtures';
18+
import { it, expect, options } from './fixtures';
1919

2020
it('should fail without credentials', (test, parameters) => {
2121
test.fail(options.CHROMIUM(parameters) && !options.HEADLESS);

0 commit comments

Comments
 (0)