docs: use sapper/cypress for e2e testing

This commit is contained in:
Eric Liu 2020-07-19 11:41:15 -07:00
commit ccdf6af78d
36 changed files with 4373 additions and 26 deletions

View file

@ -0,0 +1,11 @@
describe("Button", () => {
beforeEach(() => {
cy.examples("Button");
});
it("renders correctly", () => {
cy.get("button").then(($) => {
expect($.length).to.eql(4);
});
});
});