docs: add component grid

This commit is contained in:
Eric Liu 2020-07-24 17:19:19 -07:00
commit 3fa388bd3d
16 changed files with 548 additions and 90 deletions

View file

@ -3,14 +3,9 @@ describe("Button", () => {
cy.examples("Button");
});
it("renders correctly", () => {
cy.get("button").then(($) => {
expect($.length).to.eql(4);
});
});
it.only("clicks", () => {
cy.get('[data-test="button-primary"]')
it("clicks", () => {
cy.get(".bx--btn--primary")
.first()
.as("btn")
.contains("Primary button");