Skip to content

Commit

Permalink
chore(demo-playwright): tests for select (#6134)
Browse files Browse the repository at this point in the history
Co-authored-by: Vidhi Rambhia <[email protected]>
  • Loading branch information
AtharvChandratre and VidhiRambhia authored Nov 30, 2023
1 parent 04ac07c commit a3e9e95
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
17 changes: 0 additions & 17 deletions projects/demo-cypress/cypress/tests/kit/select/select.cy.ts

This file was deleted.

10 changes: 10 additions & 0 deletions projects/demo-playwright/tests/kit/select/select.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,15 @@ describe(`Select`, () => {

await expect(example).toHaveScreenshot(`01-checkmark-size.png`);
});

test(`opens dropdown by click on icon`, async () => {
const example = documentationPage.getExample(`#base`);
const select = new TuiSelectPO(example.locator(`tui-select`).last());

await select.textfield.click({position: {x: 200, y: 30}});
await expect(select.dropdown).toBeVisible();

await expect(select.dropdown).toHaveScreenshot(`01-click-arrow.png`);
});
});
});

0 comments on commit a3e9e95

Please sign in to comment.