Skip to content

Commit

Permalink
fixed genericList test
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskari committed Dec 27, 2024
1 parent a86ed91 commit 6099262
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/shared/components/GenericList/test/GenericList.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ describe('GenericList', () => {

cy.get('[data-testid="collapse-button-close"]').should('have.length', 1);
cy.get('[data-testid="collapse-button-open"]').should('have.length', 1);
cy.get('[data-testid="collapse-content"]').should('have.length', 1);
cy.get('tr[data-testid="collapse-content"]').should('have.length', 1);
});

it('Renders collapse entries without collapse control', () => {
Expand All @@ -188,7 +188,7 @@ describe('GenericList', () => {
cy.get('[data-testid="collapse-button-close"]').should('have.length', 0);
cy.get('[data-testid="collapse-button-open"]').should('have.length', 0);

cy.get('[data-testid="collapse-content"]').should('have.length', 3);
cy.get('tr[data-testid="collapse-content"]').should('have.length', 3);
});

it('Renders headers', () => {
Expand Down Expand Up @@ -321,7 +321,6 @@ describe('GenericList', () => {
/>,
);

cy.get('[role="row"]').should('have.length', 1);
cy.contains(new RegExp(serverErrorMessage.message, 'i')).should('exist');
});

Expand Down

0 comments on commit 6099262

Please sign in to comment.