Update tests

This commit is contained in:
Christian Cueni 2019-10-08 06:47:53 +02:00
parent 80b1d38b93
commit e93dde272d
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@ describe('Project Entry', () => {
cy.viewport('macbook-15');
cy.startGraphQLCapture();
cy.login('rahel.cueni', 'test', true);
cy.get('body').contains('Neues Wissen erwerben');
});
it('should create a new project entry', () => {

View File

@ -28,8 +28,8 @@ describe('Solutions', () => {
cy.get('[data-cy=solution]').should('not.exist');
cy.logout();
cy.login('nico.zickgraf', 'test');
cy.visit('/module/lohn-und-budget');
cy.login('nico.zickgraf', 'test');
cy.get('[data-cy=toggle-enable-solutions]').click();
cy.waitFor('UpdateSolutionVisibility');
// cy.get('[data-cy=toggle-enable-solutions]').within(() => {
@ -40,8 +40,8 @@ describe('Solutions', () => {
cy.logout();
cy.visit('/module/lohn-und-budget');
cy.login('rahel.cueni', 'test');
cy.visit('/module/lohn-und-budget');
// cy.get('[data-cy=solution]').should('exist');
cy.get('[data-cy=solution]').first()
.should('contain', 'anzeigen')