Skip to content

Commit 77bc2d5

Browse files
authored
Updated Playwright tests (#3070)
Signed-off-by: Benjamin Perez <[email protected]>
1 parent 972f5fc commit 77bc2d5

File tree

4 files changed

+23
-13
lines changed

4 files changed

+23
-13
lines changed

portal-ui/e2e/buckets.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ test("create a new bucket", async ({ page }) => {
3434

3535
await page.getByLabel("Bucket Name*").fill(bucketName);
3636
await page.getByRole("button", { name: "Create Bucket" }).click();
37+
await page.waitForTimeout(2000);
38+
await page.locator("#refresh-buckets").click();
3739
await page.getByPlaceholder("Search Buckets").fill(bucketName);
3840

3941
await expect(page.locator(`#manageBucket-${bucketName}`)).toBeTruthy();

portal-ui/e2e/pom/BucketsListPage.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export class BucketsListPage {
3737

3838
async clickOnBucketRow(bucketName: string) {
3939
const bucketRow = this.locateBucket(bucketName);
40+
await this.page.waitForTimeout(2500);
41+
await this.refreshBucketsBtn.click();
4042
await bucketRow.click();
4143
}
4244
async goToCreateBucket() {

portal-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"proxy": "http://localhost:9090/",
6666
"devDependencies": {
6767
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
68-
"@playwright/test": "1.35.0",
68+
"@playwright/test": "^1.38.1",
6969
"@types/lodash": "^4.14.199",
7070
"@types/luxon": "^3.3.0",
7171
"@types/minio": "7.1.1",

portal-ui/yarn.lock

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,15 +2014,12 @@
20142014
"@nodelib/fs.scandir" "2.1.5"
20152015
fastq "^1.6.0"
20162016

2017-
"@playwright/test@1.35.0":
2018-
version "1.35.0"
2019-
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.35.0.tgz#532603399a0dd46731fbc31a0df5ce357dafa486"
2020-
integrity sha512-6qXdd5edCBynOwsz1YcNfgX8tNWeuS9fxy5o59D0rvHXxRtjXRebB4gE4vFVfEMXl/z8zTnAzfOs7aQDEs8G4Q==
2017+
"@playwright/test@^1.38.1":
2018+
version "1.38.1"
2019+
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.38.1.tgz#8ef4263e355cd1d8ad7905d471d268e8acb82ed6"
2020+
integrity sha512-NqRp8XMwj3AK+zKLbZShl0r/9wKgzqI/527bkptKXomtuo+dOjU9NdMASQ8DNC9z9zLOMbG53T4eihYr3XR+BQ==
20212021
dependencies:
2022-
"@types/node" "*"
2023-
playwright-core "1.35.0"
2024-
optionalDependencies:
2025-
fsevents "2.3.2"
2022+
playwright "1.38.1"
20262023

20272024
"@pmmmwh/react-refresh-webpack-plugin@^0.5.3":
20282025
version "0.5.11"
@@ -9385,10 +9382,19 @@ pkg-up@^3.1.0:
93859382
dependencies:
93869383
find-up "^3.0.0"
93879384

9388-
9389-
version "1.35.0"
9390-
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.35.0.tgz#b7871b742b4a5c8714b7fa2f570c280a061cb414"
9391-
integrity sha512-muMXyPmIx/2DPrCHOD1H1ePT01o7OdKxKj2ebmCAYvqhUy+Y1bpal7B0rdoxros7YrXI294JT/DWw2LqyiqTPA==
9385+
9386+
version "1.38.1"
9387+
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.38.1.tgz#75a3c470aa9576b7d7c4e274de3d79977448ba08"
9388+
integrity sha512-tQqNFUKa3OfMf4b2jQ7aGLB8o9bS3bOY0yMEtldtC2+spf8QXG9zvXLTXUeRsoNuxEYMgLYR+NXfAa1rjKRcrg==
9389+
9390+
9391+
version "1.38.1"
9392+
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.38.1.tgz#82ecd9bc4f4f64dbeee8a11c31793748e2528130"
9393+
integrity sha512-oRMSJmZrOu1FP5iu3UrCx8JEFRIMxLDM0c/3o4bpzU5Tz97BypefWf7TuTNPWeCe279TPal5RtPPZ+9lW/Qkow==
9394+
dependencies:
9395+
playwright-core "1.38.1"
9396+
optionalDependencies:
9397+
fsevents "2.3.2"
93929398

93939399
pngjs@^3.3.1:
93949400
version "3.4.0"

0 commit comments

Comments
 (0)