Skip to content

Commit 66a8adc

Browse files
committed
chore(tests): number refactoring
Signed-off-by: xbabalov <[email protected]>
1 parent 006f9da commit 66a8adc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/playwright/src/model/pages/create-machine-page.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ export class CreateMachinePage extends BasePage {
8383
}
8484

8585
await this.createMachineButton.click();
86-
await this.page.waitForTimeout(60000);
86+
await this.page.waitForTimeout(60_000);
8787

8888
const successfulCreationMessage = this.page.getByText('Successful operation');
8989
const goBackToResourcesButton = this.page.getByRole('button', { name: 'Go back to resources' });
9090

9191
await this.handleConnectionDialog(machineName, setAsDefault);
9292

93-
await playExpect(successfulCreationMessage).toBeVisible({ timeout: 10000 });
93+
await playExpect(successfulCreationMessage).toBeVisible({ timeout: 10_000 });
9494
await playExpect(goBackToResourcesButton).toBeVisible();
9595
await goBackToResourcesButton.click();
9696

tests/playwright/src/specs/podman-machine-rootless.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ describe.skipIf(os.platform() === 'linux')('Rootless Podman machine Verification
6969
const machineBox = new ResourceConnectionCardPage(page, 'podman', MACHINE_VISIBLE_NAME);
7070
const connectionStatusLabel = await machineBox.resourceElementConnectionStatus.textContent();
7171
playExpect(connectionStatusLabel === 'RUNNING').toBeTruthy();
72-
}, 150000);
72+
}, 150_000);
7373
});

tests/playwright/src/utility/operations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export async function deletePodmanMachine(page: Page, machineVisibleName: string
207207
}
208208
await podmanResourceCard.performConnectionAction(ResourceElementActions.Delete);
209209
await playExpect(podmanResourceCard.resourceElement).toBeHidden({ timeout: 30_000 });
210-
await page.waitForTimeout(30000);
210+
await page.waitForTimeout(30_000);
211211
await handleResetDefaultConnectionDialog(page);
212212
} else {
213213
console.log(`Podman machine [${machineVisibleName}] not present, skipping deletion.`);

0 commit comments

Comments
 (0)