-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(demo-playwright): test for
table-bars-service
(#5713)
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
1 parent
8ca931c
commit 6062ee6
Showing
2 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
13 changes: 0 additions & 13 deletions
13
...ts/demo-cypress/cypress/tests/addon-tablebars/table-bars-service/table-bars-service.cy.ts
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
projects/demo-playwright/tests/addon-tablebars/table-bars-service/table-bars-service.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,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`); | ||
}); | ||
}); |