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 23, 2024
1 parent 63199a9 commit 2b20475
Show file tree
Hide file tree
Showing 58 changed files with 621 additions and 5,499 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
15 changes: 15 additions & 0 deletions autotests/tests/example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {test} from 'autotests';

import {expect} from 'e2ed';

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();

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

0 comments on commit 2b20475

Please sign in to comment.