Skip to content

Commit

Permalink
chore(demo-playwright): test for table-bars-service (#5713)
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]>
Co-authored-by: Maksim Ivanov <[email protected]>
  • Loading branch information
5 people authored Oct 23, 2023
1 parent 8ca931c commit 6062ee6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import {tuiGoto} from '@demo-playwright/utils';
import {expect, test} from '@playwright/test';

test.describe(`TableBarsService`, () => {
test.use({
viewport: {width: 1000, height: 720},
});

test(`works`, async ({page}) => {
await tuiGoto(page, `/services/table-bars-service`);
const example = page.locator(`#base`);
const showTableBarButton = example
.locator(`tui-table-bar-example-1 button`)
.first();

await showTableBarButton.click();
const tableBarExample = page.locator(`[automation-id="tui-table-bar__bar"]`);

await expect(tableBarExample).toHaveScreenshot(`01-table-bars-service.png`);
});
});

0 comments on commit 6062ee6

Please sign in to comment.