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

Repro #42773: "-modified" suffix briefly shown in a model's name input during creation (#47103)

parent c985f362
Branches
Tags
No related merge requests found
......@@ -7,6 +7,7 @@ import {
appBar,
collectionOnTheGoModal,
entityPickerModal,
entityPickerModalTab,
modal,
openNotebook,
openOrdersTable,
......@@ -300,4 +301,28 @@ describe("scenarios > question > saved", () => {
expect(heightDifference).to.eq(0);
});
});
it("should not show '- Modified' suffix after we click 'Save' on a new model (metabase#42773)", () => {
cy.log("Use UI to create a model based on the Products table");
cy.visit("/model/new");
cy.findByTestId("new-model-options")
.findByText("Use the notebook editor")
.click();
entityPickerModal().within(() => {
entityPickerModalTab("Tables").click();
cy.findByText("Products").click();
});
cy.findByTestId("dataset-edit-bar").button("Save").click();
cy.findByTestId("save-question-modal").within(() => {
cy.button("Save").click();
cy.wait("@cardCreate");
// It is important to have extremely short timeout in order to catch the issue
cy.findByDisplayValue("Products - Modified", { timeout: 10 }).should(
"not.exist",
);
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment