Skip to content
Snippets Groups Projects
Unverified Commit e15ed55a authored by Ryan Laurie's avatar Ryan Laurie Committed by GitHub
Browse files

Reproduce issue 22206 (#22349)

* reproduce issue 22206
parent dcdb8055
No related branches found
No related tags found
No related merge requests found
import { restore, openOrdersTable } from "__support__/e2e/cypress";
describe("#22206 adding and removing columns doesn't duplicate columns", () => {
beforeEach(() => {
restore();
cy.signInAsNormalUser();
openOrdersTable();
cy.findByTestId("loading-spinner").should("not.exist");
});
it("should not duplicate column in settings when removing and adding it back", () => {
cy.findByText("Settings").click();
// remove column
cy.findByTestId("sidebar-content")
.findByText("Subtotal")
.parent()
.find(".Icon-close")
.click();
// rerun query
cy.get(".RunButton")
.first()
.click();
cy.wait("@dataset");
cy.findByTestId("loading-spinner").should("not.exist");
// add column back again
cy.findByTestId("sidebar-content")
.findByText("Subtotal")
.parent()
.find(".Icon-add")
.click();
cy.wait("@dataset");
cy.findByTestId("loading-spinner").should("not.exist");
// fails because there are 2 columns, when there should be one
cy.findByTestId("sidebar-content").findByText("Subtotal");
// if you add it back again it crashes the question
});
});
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