Skip to content

Commit

Permalink
chore(demo-playwright): test for alert-service (#5786)
Browse files Browse the repository at this point in the history
  • Loading branch information
AtharvChandratre authored Oct 30, 2023
1 parent 6dad7a1 commit 274d5fd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.

This file was deleted.

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

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

test(`is shown correctly`, async ({page}) => {
await tuiGoto(page, `/services/alert-service`);
const example = page.locator(`#text`);
const showAlertButton = example.locator(`tui-alerts-example-1 button`).first();

await showAlertButton.click();

await expect(page.locator(`tui-alert`)).toHaveScreenshot(`01-alert-service.png`);
});
});

0 comments on commit 274d5fd

Please sign in to comment.