-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(demo-playwright): tests for addon-table (#5680)
Co-authored-by: Vidhi Rambhia <[email protected]> Co-authored-by: Nikita Barsukov <[email protected]> Co-authored-by: VidhiRambhia <[email protected]>
- Loading branch information
1 parent
d2c65b8
commit 98e9e0f
Showing
2 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
projects/demo-cypress/cypress/tests/addon-table/table/table.cy.ts
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
projects/demo-playwright/tests/addon-table/table/table.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {TuiDocumentationPagePO, tuiGoto} from '@demo-playwright/utils'; | ||
import {expect, test} from '@playwright/test'; | ||
|
||
test.describe(`Table`, () => { | ||
test(`Dynamic column`, async ({page}) => { | ||
await tuiGoto(page, `components/table`); | ||
const example = new TuiDocumentationPagePO(page).getExample(`#dynamic`); | ||
const addColumnButton = example.locator(`button`).first(); | ||
|
||
await addColumnButton.click(); | ||
await expect(example).toHaveScreenshot(`01-table-dynamic.png`); | ||
}); | ||
}); |