Skip to content
Snippets Groups Projects
Unverified Commit 6667721a authored by Uladzimir Havenchyk's avatar Uladzimir Havenchyk Committed by GitHub
Browse files

Add a repro for 'Cannot change question data source to raw data after...

Add a repro for 'Cannot change question data source to raw data after selecting saved question' (#44757)

* Add a repro for 'Cannot change question data source to raw data after selecting saved question'

* Update e2e/test/scenarios/question-reproductions/reproductions-2.cy.spec.js

Co-authored-by: default avatarKamil Mielnik <kamil@kamilmielnik.com>

* Update e2e/test/scenarios/question-reproductions/reproductions-2.cy.spec.js

Co-authored-by: default avatarKamil Mielnik <kamil@kamilmielnik.com>

* Update e2e/test/scenarios/question-reproductions/reproductions-2.cy.spec.js

Co-authored-by: default avatarKamil Mielnik <kamil@kamilmielnik.com>

---------

Co-authored-by: default avatarKamil Mielnik <kamil@kamilmielnik.com>
parent f84e0d23
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,8 @@ import {
onlyOnOSS,
entityPickerModalItem,
newButton,
createQuestion,
getNotebookStep,
} from "e2e/support/helpers";
const { ORDERS, ORDERS_ID, PRODUCTS, PRODUCTS_ID, PEOPLE } = SAMPLE_DATABASE;
......@@ -554,6 +556,42 @@ describe("issue 30610", () => {
});
});
describe("issue 36669", () => {
beforeEach(() => {
restore();
cy.signInAsNormalUser();
});
it("should be able to change question data source to raw data after selecting saved question (metabase#36669)", () => {
const questionDetails = {
name: "Orders 36669",
query: {
"source-table": ORDERS_ID,
limit: 5,
},
};
createQuestion(questionDetails).then(() => {
startNewQuestion();
});
entityPickerModal().within(() => {
cy.findByPlaceholderText("Search…").type("Orders 36669");
cy.findByRole("tabpanel").findByText("Orders 36669").click();
});
getNotebookStep("data").findByText("Orders 36669").click();
entityPickerModal().within(() => {
entityPickerModalTab("Tables").click();
cy.log("verify Tables are listed");
cy.findByRole("tabpanel").should("contain", "Orders");
});
});
});
function updateQuestion() {
queryBuilderHeader().findByText("Save").click();
cy.findByTestId("save-question-modal").within(modal => {
......
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