Skip to content

Commit

Permalink
test: increase runner size for react e2e (#9269)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Comins <justin.comins@hpe.com>
  • Loading branch information
djanicekpach and JComins000 authored Apr 30, 2024
1 parent f8f8672 commit 2905180
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/real_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ jobs:
default: false
machine:
image: <<pipeline.parameters.machine-image>>
resource_class: large
resource_class: xlarge
steps:
- run: echo 'export PW_SERVER_ADDRESS="http://localhost:3001"' >> $BASH_ENV # DNJ TODO -remove when tested
- run: echo 'export PW_USER_NAME=admin' >> $BASH_ENV
Expand Down
1 change: 0 additions & 1 deletion webui/react/src/e2e/fixtures/user.fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ export class UserFixture {
// get all user ids so we can update the status later
const ids = await this.userManagementPage.table.table.allRowKeys();
// select all users
await this.userManagementPage.actions.pwLocator.waitFor({ state: 'hidden' });
await this.userManagementPage.table.table.headRow.selectAll.pwLocator.click();
await expect(this.userManagementPage.table.table.headRow.selectAll.pwLocator).toBeChecked();
// open group actions
Expand Down
4 changes: 4 additions & 0 deletions webui/react/src/e2e/tests/userManagement.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,16 @@ test.describe('User Management', () => {
expect(async () => {
// BUG [ET-240]
await userManagementPage.table.table.pagination.pageButtonLocator(2).click();
await expect(
userManagementPage.table.table.pagination.pageButtonLocator(2),
).toHaveClass(/ant-pagination-item-active/);
await expect(userManagementPage.table.table.rows.pwLocator).toHaveCount(1, {
timeout: 2_000,
});
}).toPass({ timeout: 10_000 });
});
await test.step("Disable all users on the table's page", async () => {
await userManagementPage.actions.pwLocator.waitFor({ state: 'hidden' });
await user.deactivateTestUsersOnTable();
});
// expect this test step to fail
Expand Down

0 comments on commit 2905180

Please sign in to comment.