Skip to content

Commit

Permalink
chore: update users and user groups tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fhlavac committed Jan 2, 2025
1 parent e7878ae commit bbfacaa
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cypress/e2e/users-and-user-groups.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ describe('Users and User Groups page', () => {
statusCode: 200,
body: mockUserGroups,
}).as('getUserGroups');

cy.visit('/iam/access-management/users-and-user-groups');
cy.wait('@getUsers', { timeout: 30000 });
});

it('should display the Users table and correct data', () => {
cy.visit('/iam/access-management/users-and-user-groups');
cy.wait('@getUsers', { timeout: 30000 });
// Check if the table exists
cy.get('[data-ouia-component-id^="iam-users-table"]').should('exist');

Expand All @@ -90,12 +89,18 @@ describe('Users and User Groups page', () => {
});

it('should display warning modal when removing user', () => {
cy.visit('/iam/access-management/users-and-user-groups');
cy.wait('@getUsers', { timeout: 30000 });

cy.get('[data-ouia-component-id^="iam-users-table-table-td-0-6"]').click();
cy.get('[data-ouia-component-id^="OUIA-Generated-DropdownItem-2"]').click();
cy.get('[data-ouia-component-id^="iam-users-table-remove-user-modal"]').should('be.visible');
});

it('should display the User groups table and correct data', () => {
cy.visit('/iam/access-management/users-and-user-groups/user-groups');
cy.wait('@getUserGroups', { timeout: 30000 });

// Check if the table exists
cy.get('[data-ouia-component-id^="iam-users-table"]').should('exist');

Expand Down

0 comments on commit bbfacaa

Please sign in to comment.