Skip to content
Snippets Groups Projects
Unverified Commit e157821d authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

#9027 Repro: New questions do not appear in 'Saved Questions' until you...

#9027 Repro: New questions do not appear in 'Saved Questions' until you refresh the browser (#18076)
parent 4e70f201
No related branches found
No related tags found
No related merge requests found
import { restore } from "__support__/e2e/cypress";
const QUESTION_NAME = "Foo";
describe.skip("issue 9027", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
cy.visit("/question/new");
cy.findByText("Custom question").click();
cy.findByText("Saved Questions").click();
// Wait for the existing questions to load
cy.findByText("Orders");
cy.icon("sql").click();
cy.get(".ace_content").type("select 0");
cy.get(".NativeQueryEditor .Icon-play").click();
saveQuestion(QUESTION_NAME);
});
it("should display newly saved question in the 'Saved Questions' list immediately (metabase#9027)", () => {
cy.findByText("Ask a question").click();
cy.findByText("Custom question").click();
cy.findByText("Saved Questions").click();
cy.findByText(QUESTION_NAME);
});
});
function saveQuestion(name) {
cy.findByText("Save").click();
cy.findByLabelText("Name").type(name);
cy.button("Save").click();
cy.button("Not now").click();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment