41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
import { login } from "./helpers";
|
|
|
|
describe("learningPath page", () => {
|
|
beforeEach(() => {
|
|
cy.manageCommand("cypress_reset");
|
|
});
|
|
|
|
it("can open learningPath page", () => {
|
|
login("admin", "test");
|
|
cy.visit("/learn/versicherungsvermittlerin");
|
|
|
|
cy.get('[data-cy="learning-path-title"]').should(
|
|
"contain",
|
|
"Versicherungsvermittler/in"
|
|
);
|
|
});
|
|
|
|
it("click on circle on learningPath page will open circle", () => {
|
|
login("admin", "test");
|
|
cy.visit("/learn/versicherungsvermittlerin");
|
|
|
|
cy.get('[data-cy="circle-analyse"]').click({ force: true });
|
|
|
|
cy.url().should("include", "/learn/versicherungsvermittlerin/analyse");
|
|
cy.get('[data-cy="circle-title"]').should("contain", "Analyse");
|
|
});
|
|
|
|
it("open listView and click on cirle will open circle", () => {
|
|
login("admin", "test");
|
|
cy.visit("/learn/versicherungsvermittlerin");
|
|
|
|
cy.get('[data-cy="show-list-view"]').click();
|
|
cy.get('[data-cy="full-screen-modal"]').should("be.visible");
|
|
|
|
cy.get('[data-cy="circle-analyse-vertical"]').click({ force: true });
|
|
|
|
cy.url().should("include", "/learn/versicherungsvermittlerin/analyse");
|
|
cy.get('[data-cy="circle-title"]').should("contain", "Analyse");
|
|
});
|
|
});
|