Skip to content

Commit

Permalink
chore: add data-wrap-list.spec.ts (#8908)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Sep 11, 2024
1 parent 49e8cb0 commit c2180b7
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import {DemoRoute} from '@demo/routes';
import {TuiDocumentationPagePO, tuiGoto} from '@demo-playwright/utils';
import {expect, test} from '@playwright/test';

test.describe('DataListWrapper', () => {
test.beforeEach(async ({page}) => tuiGoto(page, DemoRoute.DataListWrapper));

test('show nothing found', async ({page}) => {
const api = new TuiDocumentationPagePO(page);
const example = api.getExample('#disable');

await example.scrollIntoViewIfNeeded();
await api.waitStableState();

const input = example.locator('input');

await input.focus();
await input.pressSequentially('1');

await expect(page.locator('tui-dropdown tui-data-list-wrapper')).toHaveScreenshot(
'01-data-list-wrapper.png',
);
});
});

0 comments on commit c2180b7

Please sign in to comment.