Fix cypress tests
This commit is contained in:
parent
23fd945cb6
commit
28341131e4
|
|
@ -44,9 +44,11 @@ describe("circle page", () => {
|
|||
);
|
||||
cy.get('[data-cy="complete-and-continue"]').click();
|
||||
|
||||
cy.get('[data-cy="ls-continue-button"]').click();
|
||||
cy.get('[data-cy="ln-title"]').should("contain", "Fachcheck Fahrzeug");
|
||||
cy.get('[data-cy="complete-and-continue"]').click();
|
||||
|
||||
cy.get('[data-cy="test-lehrgang-lp-circle-analyse-lu-fahrzeug"]').click();
|
||||
cy.get('[data-cy="ln-title"]').should(
|
||||
"contain",
|
||||
"Selbsteinschätzung Fahrzeug"
|
||||
|
|
@ -62,6 +64,7 @@ describe("circle page", () => {
|
|||
);
|
||||
cy.get('[data-cy="success"]').click();
|
||||
cy.get('[data-cy="complete-and-continue"]').click();
|
||||
cy.get('[data-cy="ls-continue-button"]').click();
|
||||
|
||||
cy.get(
|
||||
'[data-cy="test-lehrgang-lp-circle-analyse-lc-rafael-fasel-wechselt-sein-auto-checkbox"] > .cy-checkbox-checked'
|
||||
|
|
|
|||
|
|
@ -97,13 +97,18 @@ function loadObjectJson(key, value, djangoModelPath, serializerModelPath) {
|
|||
}
|
||||
|
||||
Cypress.Commands.add('makeSelfEvaluation', (answers) => {
|
||||
for (let answer of answers) {
|
||||
for (let i = 0; i < answers.length; i++) {
|
||||
const answer = answers[i];
|
||||
if (answer) {
|
||||
cy.get('[data-cy="success"]').click();
|
||||
} else {
|
||||
cy.get('[data-cy="fail"]').click();
|
||||
}
|
||||
if (i < answers.length - 1) {
|
||||
cy.get('[data-cy="next-step"]').click();
|
||||
} else {
|
||||
cy.get('[data-cy="complete-and-continue"]').click();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ def command():
|
|||
for i, circle in enumerate(circles):
|
||||
expert = experts[i % len(experts)]
|
||||
expert.expert.add(circle)
|
||||
create_feedback(circle, cs, 10)
|
||||
create_feedback(circle, cs, 3)
|
||||
|
||||
# course session Versicherungsvermittler/in (neu)
|
||||
# course session Versicherungsvermittler/in
|
||||
|
|
|
|||
Loading…
Reference in New Issue