-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix type check | disable old tests
- Loading branch information
Showing
8 changed files
with
66 additions
and
62 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
18 changes: 9 additions & 9 deletions
18
packages/oruga/src/components/autocomplete/tests/Autocomplete.spec.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import SimpleAutocomplete from "./SimpleAutocomplete.vue"; | ||
// import SimpleAutocomplete from "./SimpleAutocomplete.vue"; | ||
|
||
describe("<Autocomplete>", () => { | ||
it("works", () => { | ||
cy.mount(SimpleAutocomplete); | ||
cy.get("input").click().type("j"); | ||
cy.get("input").type("{downarrow}{downarrow}{enter}"); | ||
cy.get("input").should("have.value", "Node.js"); | ||
}); | ||
}); | ||
// describe("<Autocomplete>", () => { | ||
// it("works", () => { | ||
// cy.mount(SimpleAutocomplete); | ||
// cy.get("input").click().type("j"); | ||
// cy.get("input").type("{downarrow}{downarrow}{enter}"); | ||
// cy.get("input").should("have.value", "Node.js"); | ||
// }); | ||
// }); |
26 changes: 13 additions & 13 deletions
26
packages/oruga/src/components/button/tests/Button.spec.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import OButton from "../Button.vue"; | ||
// import OButton from "../Button.vue"; | ||
|
||
describe("<Button>", () => { | ||
it("works", () => { | ||
cy.mount(OButton as any, { | ||
slots: { | ||
default: { | ||
render: () => "Hello Cypress!", | ||
}, | ||
}, | ||
}); | ||
cy.get("button").contains("Hello Cypress!").click(); | ||
}); | ||
}); | ||
// describe("<Button>", () => { | ||
// it("works", () => { | ||
// cy.mount(OButton as any, { | ||
// slots: { | ||
// default: { | ||
// render: () => "Hello Cypress!", | ||
// }, | ||
// }, | ||
// }); | ||
// cy.get("button").contains("Hello Cypress!").click(); | ||
// }); | ||
// }); |
24 changes: 12 additions & 12 deletions
24
packages/oruga/src/components/checkbox/tests/Checkbox.spec.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import OCheckbox from "../Checkbox.vue"; | ||
// import OCheckbox from "../Checkbox.vue"; | ||
|
||
describe("<Checkbox>", () => { | ||
it("works", () => { | ||
cy.mount(OCheckbox as any); | ||
cy.get("input[type=checkbox]").then((element) => { | ||
const checkbox = cy.wrap(element); | ||
checkbox.should("not.have.class", "o-chk__input--checked"); | ||
checkbox.click(); | ||
checkbox.should("have.class", "o-chk__input--checked"); | ||
}); | ||
}); | ||
}); | ||
// describe("<Checkbox>", () => { | ||
// it("works", () => { | ||
// cy.mount(OCheckbox as any); | ||
// cy.get("input[type=checkbox]").then((element) => { | ||
// const checkbox = cy.wrap(element); | ||
// checkbox.should("not.have.class", "o-chk__input--checked"); | ||
// checkbox.click(); | ||
// checkbox.should("have.class", "o-chk__input--checked"); | ||
// }); | ||
// }); | ||
// }); |
44 changes: 22 additions & 22 deletions
44
packages/oruga/src/components/collapse/tests/Collapse.spec.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import SimpleCollapse from "./SimpleCollapse.vue"; | ||
// import SimpleCollapse from "./SimpleCollapse.vue"; | ||
|
||
describe("<Collapse>", () => { | ||
it("works", () => { | ||
cy.mount(SimpleCollapse); | ||
cy.get(".o-clps__trigger") | ||
.eq(0) | ||
.next() | ||
.find(".o-clps__content") | ||
.should("be.visible"); | ||
cy.get(".o-clps__trigger").eq(1).click(); | ||
cy.get(".o-clps__trigger") | ||
.eq(0) | ||
.next() | ||
.find(".o-clps__content") | ||
.should("not.be.visible"); | ||
cy.get(".o-clps__trigger") | ||
.eq(1) | ||
.next() | ||
.find(".o-clps__content") | ||
.should("be.visible"); | ||
}); | ||
}); | ||
// describe("<Collapse>", () => { | ||
// it("works", () => { | ||
// cy.mount(SimpleCollapse); | ||
// cy.get(".o-clps__trigger") | ||
// .eq(0) | ||
// .next() | ||
// .find(".o-clps__content") | ||
// .should("be.visible"); | ||
// cy.get(".o-clps__trigger").eq(1).click(); | ||
// cy.get(".o-clps__trigger") | ||
// .eq(0) | ||
// .next() | ||
// .find(".o-clps__content") | ||
// .should("not.be.visible"); | ||
// cy.get(".o-clps__trigger") | ||
// .eq(1) | ||
// .next() | ||
// .find(".o-clps__content") | ||
// .should("be.visible"); | ||
// }); | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters