Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: puzzle/okr
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d9abcb5aff68116e9658027eca47df1d057332e4
Choose a base ref
..
head repository: puzzle/okr
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3ad8a14aa1927640d0e19b261f53c8de9d959005
Choose a head ref
Showing with 24 additions and 0 deletions.
  1. +24 −0 frontend/cypress/e2e/objective-alignment.cy.ts
24 changes: 24 additions & 0 deletions frontend/cypress/e2e/objective-alignment.cy.ts
Original file line number Diff line number Diff line change
@@ -174,4 +174,28 @@ describe('OKR Objective Alignment e2e tests', () => {

cy.getByTestId('alignmentInput').first().should('have.attr', 'placeholder', 'Kein Alignment vorhanden');
});

it(`Correct filtering`, () => {
cy.getByTestId('add-objective').first().click();
cy.getByTestId('title').first().clear().type('Die urs steigt');
cy.getByTestId('safe').click();

cy.scrollTo('top');
cy.get('mat-chip:visible:contains("Puzzle ITC")').click();
cy.get('mat-chip:visible:contains("/BBT")').click();
cy.getByTestId('add-objective').first().click();
cy.getByTestId('title').first().clear().type('Ein alignment objective');

cy.getByTestId('alignmentInput').clear().type('urs');
cy.realPress('ArrowDown');
cy.realPress('Enter');

cy.getByTestId('alignmentInput').first().should('have.value', 'O - Die urs steigt');

cy.getByTestId('alignmentInput').clear().type('urs');
cy.realPress('ArrowDown');
cy.realPress('ArrowDown');
cy.realPress('Enter');
cy.getByTestId('alignmentInput').first().should('have.value', 'KR - Steigern der URS um 25%');
});
});