Fix cypress tests
This commit is contained in:
parent
18acf10c9a
commit
a457a1fff3
|
|
@ -5,7 +5,7 @@ describe("circle page", () => {
|
||||||
cy.manageCommand("cypress_reset");
|
cy.manageCommand("cypress_reset");
|
||||||
|
|
||||||
login("admin", "test");
|
login("admin", "test");
|
||||||
cy.visit("/circle/analyse");
|
cy.visit("/learn/versicherungsvermittlerin/analyse");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("can open circle page", () => {
|
it("can open circle page", () => {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ describe("learningPath page", () => {
|
||||||
|
|
||||||
it("can open learningPath page", () => {
|
it("can open learningPath page", () => {
|
||||||
login("admin", "test");
|
login("admin", "test");
|
||||||
cy.visit("/learningpath/versicherungsvermittlerin");
|
cy.visit("/learn/versicherungsvermittlerin");
|
||||||
|
|
||||||
cy.get('[data-cy="learning-path-title"]').should(
|
cy.get('[data-cy="learning-path-title"]').should(
|
||||||
"contain",
|
"contain",
|
||||||
|
|
@ -17,24 +17,24 @@ describe("learningPath page", () => {
|
||||||
|
|
||||||
it("click on circle on learningPath page will open circle", () => {
|
it("click on circle on learningPath page will open circle", () => {
|
||||||
login("admin", "test");
|
login("admin", "test");
|
||||||
cy.visit("/learningpath/versicherungsvermittlerin");
|
cy.visit("/learn/versicherungsvermittlerin");
|
||||||
|
|
||||||
cy.get('[data-cy="circle-analyse"]').click({ force: true });
|
cy.get('[data-cy="circle-analyse"]').click({ force: true });
|
||||||
|
|
||||||
cy.url().should("include", "/circle/analyse");
|
cy.url().should("include", "/learn/versicherungsvermittlerin/analyse");
|
||||||
cy.get('[data-cy="circle-title"]').should("contain", "Analyse");
|
cy.get('[data-cy="circle-title"]').should("contain", "Analyse");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("open listView and click on cirle will open circle", () => {
|
it("open listView and click on cirle will open circle", () => {
|
||||||
login("admin", "test");
|
login("admin", "test");
|
||||||
cy.visit("/learningpath/versicherungsvermittlerin");
|
cy.visit("/learn/versicherungsvermittlerin");
|
||||||
|
|
||||||
cy.get('[data-cy="show-list-view"]').click();
|
cy.get('[data-cy="show-list-view"]').click();
|
||||||
cy.get('[data-cy="full-screen-modal"]').should("be.visible");
|
cy.get('[data-cy="full-screen-modal"]').should("be.visible");
|
||||||
|
|
||||||
cy.get('[data-cy="circle-analyse-vertical"]').click({ force: true });
|
cy.get('[data-cy="circle-analyse-vertical"]').click({ force: true });
|
||||||
|
|
||||||
cy.url().should("include", "/circle/analyse");
|
cy.url().should("include", "/learn/versicherungsvermittlerin/analyse");
|
||||||
cy.get('[data-cy="circle-title"]').should("contain", "Analyse");
|
cy.get('[data-cy="circle-title"]').should("contain", "Analyse");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ describe("login", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("login will redirect to requestet page", () => {
|
it("login will redirect to requestet page", () => {
|
||||||
cy.visit("/learningpath/versicherungsvermittlerin");
|
cy.visit("/learn/versicherungsvermittlerin");
|
||||||
cy.get("h1").should("contain", "Login");
|
cy.get("h1").should("contain", "Login");
|
||||||
|
|
||||||
cy.get("#username").type("admin");
|
cy.get("#username").type("admin");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue