Skip to content
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

fix test #2390

Merged
merged 1 commit into from
Dec 29, 2020
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,27 @@ describe("Pages", function() {
);

// to check if apis are cloned
cy.get(".t--entity-name:contains(Page1)").click({ multiple: true });
cy.get(".t--entity-name:contains(APIs)")
.last()
.click();
cy.get(".bp3-icon-caret-right ~ .t--entity-name:contains(Page1)").click({
multiple: true,
});
cy.get(".bp3-icon-caret-right ~ .t--entity-name:contains(APIs)").click({
multiple: true,
});
cy.get(`.t--entity-name:contains(${apiName})`).should("have.length", 2);
});

it("Creates a page with long name and checks if it shows tooltip on hover", () => {
cy.Createpage(veryLongPageName);
cy.PublishtheApp();
cy.get(".t--page-switch-tab:nth-child(3)").trigger("mouseover");
cy.get(".bp3-popover-content").should($x => {
cy.get(".bp3-popover-content").should(($x) => {
expect($x).contain(veryLongPageName);
});
});

it("Checks if 404 is showing correct route", () => {
cy.visit("/route-that-does-not-exist");
cy.get(".bold-text").should($x => {
cy.get(".bold-text").should(($x) => {
expect($x).contain("Page not found");
});
});
Expand Down