Skip to content

Commit

Permalink
inclued test for the completed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel7373 committed Jan 7, 2025
1 parent 406923e commit 779fc54
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/cypress/e2e/objective.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,15 @@ describe('okr objective', () => {

cy.getByTestId('successful')
.click();
cy.getByTestId('completeComment')
.type('Abgeschlossenes Objective');
cy.getByTestId('submit')
.click();

overviewPage.getObjectiveByNameAndState('We want to complete this successful', 'successful');
overviewPage.getObjectiveByNameAndState('We want to complete this successful', 'successful')
.click();
cy.contains('Abgeschlossenes Objective');
});

it('should complete objective with not-successful', () => {
Expand All @@ -78,10 +83,15 @@ describe('okr objective', () => {

cy.getByTestId('not-successful')
.click();
cy.getByTestId('completeComment')
.type('Abgeschlossenes Objective');
cy.getByTestId('submit')
.click();

overviewPage.getObjectiveByNameAndState('A not successful objective', 'not-successful');
overviewPage.getObjectiveByNameAndState('A not successful objective', 'not-successful')
.click();
cy.contains('Abgeschlossenes Objective');
});

it('should reopen successful objective', () => {
Expand Down

0 comments on commit 779fc54

Please sign in to comment.