Skip to content

Commit

Permalink
Fix review comments and lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal-shah committed Nov 10, 2022
1 parent f4e258c commit cc83e77
Show file tree
Hide file tree
Showing 6 changed files with 283 additions and 289 deletions.
54 changes: 27 additions & 27 deletions v3/cypress/e2e/attribute_types_test.spec.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
import {TableTileElements as table} from "../support/elements/TableTile";
import {CfmElements as cfm} from "../support/elements/CfmObject";
import {TableTileElements as table} from "../support/elements/TableTile"
import {CfmElements as cfm} from "../support/elements/CfmObject"

context("attribute types", () => {
before(() => {
const filename = "cypress/fixtures/attribute-types-test-document.codap"
cy.visit("");
cy.wait(3000);
cfm.openLocalDoc(filename);
});
cy.visit("")
cy.wait(3000)
cfm.openLocalDoc(filename)
})

describe("attribute types are rendered correctly", () => {
it("verify string", () => {
table.getCell("2", "2").should("contain", "Arizona");
});
table.getCell("2", "2").should("contain", "Arizona")
})
it("verify numerical", () => {
table.getCell("3", "2").should("contain", "48");
});
table.getCell("3", "2").should("contain", "48")
})
it("verify date", () => {
table.getCell("4", "2").should("contain", "8/7/2017 12:01 PM");
});
table.getCell("4", "2").should("contain", "8/7/2017 12:01 PM")
})
it.skip("verify boolean", () => {
table.getCell("5", "2").should("contain", "false");
});
table.getCell("5", "2").should("contain", "false")
})
it.skip("verify qualitative", () => {
table.getCell("6", "2").find("span span").should("have.class", "dg-qualitative-bar");
});
table.getCell("6", "2").find("span span").should("have.class", "dg-qualitative-bar")
})
it.skip("verify color", () => {
table.getCell("7", "2").find("span").should("have.class", "dg-color-table-cell");
});
table.getCell("7", "2").find("span").should("have.class", "dg-color-table-cell")
})
it.skip("verify bounds", () => {
cy.wait(1500);
table.getCell("9", "2").find("span").should("have.class", "dg-boundary-thumb");
});
cy.wait(1500)
table.getCell("9", "2").find("span").should("have.class", "dg-boundary-thumb")
})
it.skip("verify invalid type", () => {
table.getCell("10", "2").should("contain","❌: invalid type(s) for '*'");
});
table.getCell("10", "2").should("contain","❌: invalid type(s) for '*'")
})
it.skip("verify unrecognized", () => {
table.getCell("11", "2").should("contain", "❌: 'Bool|color' is unrecognized");
});
});
});
table.getCell("11", "2").should("contain", "❌: 'Bool|color' is unrecognized")
})
})
})
Loading

0 comments on commit cc83e77

Please sign in to comment.