Update tests
This commit is contained in:
parent
80b1d38b93
commit
e93dde272d
|
|
@ -5,6 +5,7 @@ describe('Project Entry', () => {
|
||||||
cy.viewport('macbook-15');
|
cy.viewport('macbook-15');
|
||||||
cy.startGraphQLCapture();
|
cy.startGraphQLCapture();
|
||||||
cy.login('rahel.cueni', 'test', true);
|
cy.login('rahel.cueni', 'test', true);
|
||||||
|
cy.get('body').contains('Neues Wissen erwerben');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should create a new project entry', () => {
|
it('should create a new project entry', () => {
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ describe('Solutions', () => {
|
||||||
cy.get('[data-cy=solution]').should('not.exist');
|
cy.get('[data-cy=solution]').should('not.exist');
|
||||||
cy.logout();
|
cy.logout();
|
||||||
|
|
||||||
cy.login('nico.zickgraf', 'test');
|
|
||||||
cy.visit('/module/lohn-und-budget');
|
cy.visit('/module/lohn-und-budget');
|
||||||
|
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(() => {
|
||||||
|
|
@ -40,8 +40,8 @@ describe('Solutions', () => {
|
||||||
|
|
||||||
cy.logout();
|
cy.logout();
|
||||||
|
|
||||||
cy.visit('/module/lohn-und-budget');
|
|
||||||
cy.login('rahel.cueni', 'test');
|
cy.login('rahel.cueni', 'test');
|
||||||
|
cy.visit('/module/lohn-und-budget');
|
||||||
// cy.get('[data-cy=solution]').should('exist');
|
// cy.get('[data-cy=solution]').should('exist');
|
||||||
cy.get('[data-cy=solution]').first()
|
cy.get('[data-cy=solution]').first()
|
||||||
.should('contain', 'anzeigen')
|
.should('contain', 'anzeigen')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue