Skip to content

chore(tab-container): migrate wdio tests to cypress #11852

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions packages/main/cypress/specs/TabContainer.mobile.cy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import Button from "../../src/Button.js";
import Popover from "../../src/Popover.js";
import Tab from "../../src/Tab.js";
import TabContainer from "../../src/TabContainer.js";
import TabSeparator from "../../src/TabSeparator.js";

describe("Mobile: TabContainer general interaction", () => {
before(() => {
cy.viewport('iphone-x');
});

it("should close the overflow popover when pressing the cancel button", () => {
cy.mount(
<TabContainer id="tabContainerNestedTabs">
<Tab text="One">
<Button>Button 1</Button>
</Tab>

<TabSeparator></TabSeparator>

<Tab text="Two">
<Button id="button2">Button 2</Button>
</Tab>

<Tab text="Fifteen"></Tab>
<Tab text="Sixteen"></Tab>
<Tab text="Seventeen"></Tab>
<Tab text="Seven"></Tab>

</TabContainer>);

cy.get("#tabContainerNestedTabs")
.shadow()
.find(`[data-ui5-stable="overflow-end"]`)
.realClick();

cy.get<Popover>("#tabContainerNestedTabs")
.shadow()
.find("ui5-responsive-popover")
.as("popover");

cy.get<Popover>("@popover").ui5PopoverOpened();

cy.get("@popover").realClick();

cy.get("@popover").should("have.prop", "open", false);
});
});
129 changes: 0 additions & 129 deletions packages/main/test/specs/Label.spec.js

This file was deleted.

23 changes: 0 additions & 23 deletions packages/main/test/specs/TabContainer.mobile.spec.js

This file was deleted.

74 changes: 0 additions & 74 deletions packages/main/test/specs/Tag.spec.js

This file was deleted.

34 changes: 0 additions & 34 deletions packages/main/test/specs/Title.spec.js

This file was deleted.

Loading