Make test fail when it should fail
This commit is contained in:
parent
8c908fddd2
commit
ea95efc23f
|
|
@ -23,6 +23,7 @@ describe('Solutions', () => {
|
||||||
|
|
||||||
cy.visit('/module/lohn-und-budget');
|
cy.visit('/module/lohn-und-budget');
|
||||||
cy.login('rahel.cueni', 'test');
|
cy.login('rahel.cueni', 'test');
|
||||||
|
cy.get('[data-cy=module-title]').should('be.visible');
|
||||||
cy.get('[data-cy=toggle-enable-solutions]')
|
cy.get('[data-cy=toggle-enable-solutions]')
|
||||||
.should('not.exist');
|
.should('not.exist');
|
||||||
cy.get('[data-cy=solution]').should('not.exist');
|
cy.get('[data-cy=solution]').should('not.exist');
|
||||||
|
|
@ -32,11 +33,9 @@ describe('Solutions', () => {
|
||||||
cy.login('nico.zickgraf', 'test');
|
cy.login('nico.zickgraf', 'test');
|
||||||
cy.get('[data-cy=toggle-enable-solutions]').click();
|
cy.get('[data-cy=toggle-enable-solutions]').click();
|
||||||
cy.waitFor('UpdateSolutionVisibility');
|
cy.waitFor('UpdateSolutionVisibility');
|
||||||
// cy.get('[data-cy=toggle-enable-solutions]').within(() => {
|
cy.get('[data-cy=toggle-enable-solutions]').within(() => {
|
||||||
// cy.get('input[type=checkbox]').check({force: true});
|
cy.get('input[type=checkbox]').should('be.checked');
|
||||||
// cy.wait(2000);
|
});
|
||||||
|
|
||||||
// });
|
|
||||||
|
|
||||||
cy.logout();
|
cy.logout();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue