Skip to content

Commit

Permalink
test(demo-playwright): tests for addon-table (#5680)
Browse files Browse the repository at this point in the history
Co-authored-by: Vidhi Rambhia <[email protected]>
Co-authored-by: Nikita Barsukov <[email protected]>
Co-authored-by: VidhiRambhia <[email protected]>
  • Loading branch information
4 people authored Oct 19, 2023
1 parent d2c65b8 commit 98e9e0f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 0 additions & 12 deletions projects/demo-cypress/cypress/tests/addon-table/table/table.cy.ts

This file was deleted.

13 changes: 13 additions & 0 deletions projects/demo-playwright/tests/addon-table/table/table.spec.ts
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`);
});
});

0 comments on commit 98e9e0f

Please sign in to comment.