Skip to content
Snippets Groups Projects
Unverified Commit 3e8b2bbc authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

E2E tests: give some time for the popover to appear (#19838)

parent 84429c3b
Branches
Tags
No related merge requests found
// various Metabase-specific "scoping" functions like inside popover/modal/navbar/main/sidebar content area
export const POPOVER_ELEMENT = ".popover[data-state~='visible']";
export function popover() {
return cy.get(".popover[data-state~='visible']");
cy.get(POPOVER_ELEMENT).should("be.visible");
return cy.get(POPOVER_ELEMENT);
}
export function modal() {
......
import { restore, popover, openNativeEditor } from "__support__/e2e/cypress";
import {
restore,
POPOVER_ELEMENT,
openNativeEditor,
} from "__support__/e2e/cypress";
const questionDetails = {
name: "REVIEWS SQL",
......@@ -31,6 +35,6 @@ describe("issue 18418", () => {
// Clicking native question's database picker usually opens a popover with a list of databases
// As default Cypress environment has only the sample database available, we expect no popup to appear
cy.findByTextEnsureVisible("Sample Database").click();
popover().should("not.exist");
cy.get(POPOVER_ELEMENT).should("not.exist");
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment