Skip to content

Commit

Permalink
chore: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhaugstulen committed Oct 14, 2024
1 parent 1daab42 commit 02d5793
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/MainPage/MainPage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Given, Then, defineStep as And } from '@badeball/cypress-cucumber-preprocessor';
import { defineStep as And, Given, Then } from '@badeball/cypress-cucumber-preprocessor';

Given('you are in the search page with Ngelehun and MNCH PNC context', () => {
cy.visit('/#/search?orgUnitId=DiszpKrYNg8&programId=uy2gU8kT1jF');
Expand All @@ -20,13 +20,13 @@ And('you can load the view with the name Events assigned to me', () => {
});

Then('the icon is rendered as a custom icon', () => {
cy.get('[alt="child_program_positive"]')
cy.get('[title="child_program_positive"]')
.invoke('attr', 'src')
.should('match', /\/icons\/child_program_positive\/icon$/);
});

Then('the icon is rendered as an svg', () => {
cy.get('[alt="child_program_positive"]')
cy.get('[title="child_program_positive"]')
.invoke('attr', 'src')
.should('match', /\/icons\/child_program_positive\/icon.svg$/);
});
Expand Down

0 comments on commit 02d5793

Please sign in to comment.