Skip to content

Commit

Permalink
chore(ui5-popover): add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TeodorTaushanov committed Dec 11, 2024
1 parent eadfce6 commit ceb1d94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 1 addition & 8 deletions packages/main/test/pages/PopoverInitiallyOpen.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@
<ui5-button id="btn1">Open Popover</ui5-button>

<ui5-button id="openPopoverBtn1">Open Popover</ui5-button>
<ui5-popover opener="openPopoverBtn1" open>Content</ui5-popover>

<br />
<br />
<br />

<ui5-button id="openPopoverBtn2">Open Popover</ui5-button>
<ui5-popover open opener="openPopoverBtn2">Content</ui5-popover>
<ui5-popover id="popover1" opener="openPopoverBtn1" open>Content</ui5-popover>
</body>
</html>
5 changes: 5 additions & 0 deletions packages/main/test/specs/Popover.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,11 @@ describe("Initially opened", () => {
it("test initial focus", async () => {
assert.ok(await browser.$("#popoverBtn").matches(":focus"), "initial focus is correct");
});

it("test _open", async () => {
assert.ok(await browser.$("#popoverOpen")._open, "_open is set");
assert.ok(await browser.$("#popover1")._open, "_open is set");
});
});

describe("Acc", () => {
Expand Down

0 comments on commit ceb1d94

Please sign in to comment.