Skip to content

Commit

Permalink
edit e2e and frontend tests to work with the new format
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel7373 committed Oct 31, 2024
1 parent 61a6113 commit d4fb693
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions frontend/cypress/e2e/checkIn.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,16 @@ describe('OKR Check-in e2e tests', () => {

cy.getByTestId('add-check-in').first().click();
cy.fillOutCheckInMetric(30, 5, 'Here we are', 'A cat would be great');
cy.contains('Aktuell: CHF 30.-');
cy.contains('Aktuell: CHF 30');
cy.getByTestId('show-all-checkins').click();

cy.wait(500);
cy.contains('Check-in History');
cy.contains('Wert: CHF 30.-');
cy.contains('Wert: CHF 30');
cy.getByTestId('edit-check-in').first().click();
cy.contains('Here we edit a metric checkin');
cy.contains('CHF 30.-');
cy.contains('Confidence um Target Zone (CHF 213.-) zu erreichen');
cy.contains('CHF 30');
cy.contains('Confidence um Target Zone (CHF 213) zu erreichen');
cy.contains('5/10');
cy.getByTestId('check-in-metric-value').click().clear().type('200');
cy.getByTestId('confidence-slider').realMouseDown();
Expand All @@ -212,7 +212,7 @@ describe('OKR Check-in e2e tests', () => {
cy.getByTestId('submit-check-in').click();

cy.wait(200);
cy.contains('CHF 200.-');
cy.contains('CHF 200');
cy.contains('We bought a new sheep');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('UnitTransformationPipe', () => {

it('should format as CHF without double value', () => {
const pipe = new UnitValueTransformationPipe();
expect(pipe.transform(380, Unit.CHF)).toBe('CHF 380.-');
expect(pipe.transform(380, Unit.CHF)).toBe('CHF 380');
});

it('should format as EUR without double value', () => {
Expand Down

0 comments on commit d4fb693

Please sign in to comment.