Skip to content

Commit

Permalink
FI-1237 feat: run tests via Playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
uid11 committed Jun 20, 2024
1 parent 63199a9 commit aea6ac2
Show file tree
Hide file tree
Showing 48 changed files with 459 additions and 5,454 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ rules:
import/no-nodejs-modules:
- error
- allow:
- node:async_hooks
- node:child_process
- node:crypto
- node:fs
Expand Down Expand Up @@ -85,6 +86,7 @@ rules:
- src/*/index.ts
- src/*/internal.ts
- src/bin/*.ts
- src/config.ts
- src/createLocator.ts
- src/esm/*.ts
- src/getModulesGraph.ts
Expand Down
13 changes: 13 additions & 0 deletions autotests/tests/example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {test} from 'autotests';

import {expect} from '@playwright/test';

test('get started link', {meta: {testId: '19'}}, async ({page}) => {
await page.goto('https://playwright.dev/');

// Click the get started link.
await page.getByRole('link', {name: 'Get started'}).click();

// Expects page to have a heading with the name of Installation.
await expect(page.getByRole('heading', {name: 'Installation'})).toBeVisible();
});
Loading

0 comments on commit aea6ac2

Please sign in to comment.