Skip to content

Commit

Permalink
Adjust e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasDov committed Feb 13, 2025
1 parent d21aa7b commit 7bf0153
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,14 @@ test.describe("Categories tree", () => {
await node.click();
const treeContainer = page.locator("#tw-tree-renderer-container");

// ensure checkbox is not disabled
const checkbox = node.getByRole("checkbox");
await expect(checkbox).toBeEnabled();

// focus on checkbox using keyboard
await page.keyboard.press("Tab");

// ensure checkbox is focused
const checkbox = node.getByRole("checkbox");
await expect(checkbox).toBeFocused();

await takeScreenshot(page, node, { boundingComponent: treeContainer, expandBy: { top: 10, bottom: 10 } });
Expand Down

0 comments on commit 7bf0153

Please sign in to comment.