mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
* Setup Cypress tests for box and button * Add container tests * Add Cypress workflow * Use npm install * Update Cypress workflow * Add Jekyll build * Test other action * Test custom setup * Use other ruby action * Test without flag * Move cypress to docs folder * Record runs * Add Content, Icon, Image specs * Add Notification specs * Add Progress and Table specs * Add Tags specs * Add Title specs * Add breadcrumb specs * Add more specs * Add media specs * Add menu specs * Add modal specs * Add navbar specs * Add pagination specs * Add panel specs * Add tabs specs, Add form checkbox radio specs * Add utils * Add file specs * Add input textarea specs * Add select specs * Add form tools specs * Add other elements specs * Add footer and hero specs * Add Hero specs * Add section specs * Add grid specs * Add column sizes specs * Add tiles specs * Add generic specs * Fix generic tests * Make font family test looser * Remove system-ui test * Remove important flag * Fix disabled select color
23 lines
679 B
JavaScript
23 lines
679 B
JavaScript
describe("Elements/Box", () => {
|
|
beforeEach(() => {
|
|
cy.visit("http://127.0.0.1:4000/cyp/elements/box/");
|
|
});
|
|
|
|
it("has a Box element", () => {
|
|
cy.get(".box").should("exist");
|
|
});
|
|
|
|
it("has a correct Box", () => {
|
|
cy.get(".box").then(($) => {
|
|
const cs = window.getComputedStyle($[0]);
|
|
expect(cs.backgroundColor).to.equal(Cypress.env("scheme-main"));
|
|
expect(cs.borderRadius).to.equal("6px");
|
|
expect(cs.boxShadow).to.equal(
|
|
"rgba(10, 10, 10, 0.1) 0px 8px 16px -2px, rgba(10, 10, 10, 0.02) 0px 0px 0px 1px"
|
|
);
|
|
expect(cs.color).to.equal(Cypress.env("text"));
|
|
expect(cs.padding).to.equal("20px");
|
|
});
|
|
});
|
|
});
|