Add additional checks in cypress test

This commit is contained in:
Ramon Wenger 2024-07-29 14:15:49 +02:00 committed by Christian Cueni
parent dc689bd20a
commit f6e459fafe
2 changed files with 12 additions and 2 deletions

View File

@ -42,7 +42,7 @@ const courseProfilesToDropdown = computed(() => {
<template>
<WizardPage :step="2">
<template #content>
<h2 class="my-10" data-cy="account-profile-title">
<h2 class="my-10" data-cy="account-course-profile-title">
{{ $t("a.Zulassungsprofil auswählen") }}
</h2>

View File

@ -2,7 +2,7 @@ import {
COURSE_PROFILE_ALL_ID,
COURSE_PROFILE_NICHTLEBEN_ID,
TEST_COURSE_SESSION_VV_ID,
TEST_USER_EMPTY_ID
TEST_USER_EMPTY_ID,
} from "../../consts";
import { login } from "../helpers";
@ -37,6 +37,11 @@ describe("checkout.cy.js", () => {
cy.get("#organisationDetailName").type("FdH GmbH");
cy.get('[data-cy="continue-button"]').click();
cy.get('[data-cy="account-course-profile-title"]').should(
"have.text",
"Zulassungsprofil auswählen",
);
cy.get('[data-cy="dropdown-select"]').click();
cy.get('[data-cy="dropdown-select-option-Nichtleben"]').click();
cy.get('[data-cy="continue-button"]').click();
@ -158,6 +163,11 @@ describe("checkout.cy.js", () => {
cy.get('[data-cy="dropdown-select-option-Baloise"]').click();
cy.get('[data-cy="continue-button"]').click();
cy.get('[data-cy="account-course-profile-title"]').should(
"have.text",
"Zulassungsprofil auswählen",
);
cy.get('[data-cy="dropdown-select"]').click();
cy.get('[data-cy="dropdown-select-option-Allbranche"]').click();
cy.get('[data-cy="continue-button"]').click();