mirror of
https://github.com/jgthms/bulma
synced 2026-03-19 03:44:31 -07:00
Update dependencies
This commit is contained in:
38
docs/cypress/e2e/elements/progress.spec.js
Normal file
38
docs/cypress/e2e/elements/progress.spec.js
Normal file
@@ -0,0 +1,38 @@
|
||||
describe("Elements/Progress", () => {
|
||||
beforeEach(() => {
|
||||
cy.visit("http://127.0.0.1:4000/cyp/elements/progress/");
|
||||
});
|
||||
|
||||
it("has a Progress element", () => {
|
||||
cy.get("#progress").should("exist");
|
||||
});
|
||||
|
||||
it("has a correct Progress", () => {
|
||||
cy.get("#progress").then(($) => {
|
||||
const cs = window.getComputedStyle($[0]);
|
||||
expect(cs.height).to.equal(`${Cypress.env("sizes").normal}px`);
|
||||
});
|
||||
});
|
||||
|
||||
it("has correct Progress sizes", () => {
|
||||
cy.get("#progress-small").then(($) => {
|
||||
const cs = window.getComputedStyle($[0]);
|
||||
expect(cs.height).to.equal(`${Cypress.env("sizes").small}px`);
|
||||
});
|
||||
|
||||
cy.get("#progress-normal").then(($) => {
|
||||
const cs = window.getComputedStyle($[0]);
|
||||
expect(cs.height).to.equal(`${Cypress.env("sizes").normal}px`);
|
||||
});
|
||||
|
||||
cy.get("#progress-medium").then(($) => {
|
||||
const cs = window.getComputedStyle($[0]);
|
||||
expect(cs.height).to.equal(`${Cypress.env("sizes").medium}px`);
|
||||
});
|
||||
|
||||
cy.get("#progress-large").then(($) => {
|
||||
const cs = window.getComputedStyle($[0]);
|
||||
expect(cs.height).to.equal(`${Cypress.env("sizes").large}px`);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user