update tooltip test (#2392)

This commit is contained in:
Rishabh Saxena 2020-12-29 19:50:14 +05:30 committed by GitHub
parent 712f41db92
commit ccd9371820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,9 @@ describe("Pages", function() {
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(`.t--page-switch-tab:contains(${veryLongPageName})`).trigger(
"mouseover",
);
cy.get(".bp3-popover-content").should(($x) => {
expect($x).contain(veryLongPageName);
});