Skip to content
Snippets Groups Projects
Unverified Commit 4a7dcd26 authored by Jessica DeWitt's avatar Jessica DeWitt Committed by GitHub
Browse files

Repro/Column confusion (#12833)

* cypress repro for #12649

* improved import syntax

* Add skip so test passes until issue is fixed
parent 6c429a9f
No related branches found
No related tags found
No related merge requests found
import {
restore,
signInAsNormalUser,
popover,
} from "../../../__support__/cypress";
function firstCell(contain_assertion, value) {
cy.get(".TableInteractive-cellWrapper")
.not(".TableInteractive-headerCellData")
.first()
.should(contain_assertion, value);
}
describe("scenarios > question > custom columns", () => {
before(restore);
beforeEach(signInAsNormalUser);
it.skip("cc should only apply to correct column (Issue #12649)", () => {
// Create custom question
cy.visit("/question/new");
cy.findByText("Custom question").click();
cy.findByText("Sample Dataset").click();
cy.findByText("Orders").click();
cy.get(".Icon-join_left_outer").click();
cy.findByText("Products").click();
cy.findByText("Visualize").click();
cy.wait(1000)
.findByText("where")
.should("not.exist");
cy.findByText("Orders + Products");
cy.findByText("Product → ID");
firstCell("contain", 1);
firstCell("not.contain", 14);
// Add custom column formula
cy.get(".Icon-notebook").click();
cy.findByText("Custom column").click();
popover().within($popover => {
cy.get("p")
.first()
.click();
cy.get("[contenteditable='true']")
.type("1 + 1")
.click();
cy.get("input")
.last()
.type("X");
cy.findByText("Done").click();
});
cy.findByText("Visualize").click();
cy.findByText("Visualize").should("not.exist");
cy.findByText("Product → ID");
firstCell("contain", 1);
firstCell("not.contain", 14);
});
});
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