mirror of
https://github.com/lainbo/component-party.git
synced 2026-04-05 13:09:03 +08:00
36 lines
886 B
TypeScript
36 lines
886 B
TypeScript
/// <reference types="cypress" />
|
|
describe("Initial frameworks", () => {
|
|
it("initial frameworks from scratch", () => {
|
|
cy.visit("/");
|
|
cy.get("[data-framework-id-selected-list]").should(
|
|
"have.attr",
|
|
"data-framework-id-selected-list",
|
|
"react,svelte4"
|
|
);
|
|
});
|
|
|
|
it("initial frameworks from local storage", () => {
|
|
cy.visit("/", {
|
|
onBeforeLoad(win) {
|
|
win.localStorage.setItem("framework_display", '["vue3","svelte4"]');
|
|
},
|
|
});
|
|
cy.get("[data-framework-id-selected-list]").should(
|
|
"have.attr",
|
|
"data-framework-id-selected-list",
|
|
"vue3,svelte4"
|
|
);
|
|
});
|
|
});
|
|
|
|
describe("pages", () => {
|
|
it("compare page", () => {
|
|
cy.visit("/compare/vue2-vs-vue3");
|
|
cy.get("[data-framework-id-selected-list]").should(
|
|
"have.attr",
|
|
"data-framework-id-selected-list",
|
|
"vue2,vue3"
|
|
);
|
|
});
|
|
});
|