From 859092aa495897ffdef3490b1b31520cb6a691d4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 21 Nov 2024 22:32:12 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump @playwright/test from 1.48.2 to 1.49.0 Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.48.2 to 1.49.0. - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.48.2...v1.49.0) --- updated-dependencies: - dependency-name: "@playwright/test" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 6e145ec..cea1b36 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "devDependencies": { "@kong/design-tokens": "^1.17.2", "@kong/eslint-config-kong-ui": "^1.1.2", - "@playwright/test": "^1.48.2", + "@playwright/test": "^1.49.0", "@types/lodash-es": "^4.17.12", "@types/node": "^20.3.1", "@vitejs/plugin-vue": "^5.1.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bdefc52..f4e0630 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -94,8 +94,8 @@ importers: specifier: ^1.1.2 version: 1.1.2(eslint@9.9.1)(typescript@5.4.5) '@playwright/test': - specifier: ^1.48.2 - version: 1.48.2 + specifier: ^1.49.0 + version: 1.49.0 '@types/lodash-es': specifier: ^4.17.12 version: 4.17.12 @@ -832,8 +832,8 @@ packages: '@peculiar/x509@1.12.3': resolution: {integrity: sha512-+Mzq+W7cNEKfkNZzyLl6A6ffqc3r21HGZUezgfKxpZrkORfOqgRXnS80Zu0IV6a9Ue9QBJeKD7kN0iWfc3bhRQ==} - '@playwright/test@1.48.2': - resolution: {integrity: sha512-54w1xCWfXuax7dz4W2M9uw0gDyh+ti/0K/MxcCUxChFh37kkdxPdfZDw5QBbuPUJHr1CiHJ1hXgSs+GgeQc5Zw==} + '@playwright/test@1.49.0': + resolution: {integrity: sha512-DMulbwQURa8rNIQrf94+jPJQ4FmOVdpE5ZppRNvWVjvhC+6sOeo28r8MgIpQRYouXRtt/FCCXU7zn20jnHR4Qw==} engines: {node: '>=18'} hasBin: true @@ -2175,13 +2175,13 @@ packages: typescript: optional: true - playwright-core@1.48.2: - resolution: {integrity: sha512-sjjw+qrLFlriJo64du+EK0kJgZzoQPsabGF4lBvsid+3CNIZIYLgnMj9V6JY5VhM2Peh20DJWIVpVljLLnlawA==} + playwright-core@1.49.0: + resolution: {integrity: sha512-R+3KKTQF3npy5GTiKH/T+kdhoJfJojjHESR1YEWhYuEKRVfVaxH3+4+GvXE5xyCngCxhxnykk0Vlah9v8fs3jA==} engines: {node: '>=18'} hasBin: true - playwright@1.48.2: - resolution: {integrity: sha512-NjYvYgp4BPmiwfe31j4gHLa3J7bD2WiBz8Lk2RoSsmX38SVIARZ18VYjxLjAcDsAhA+F4iSEXTSGgjua0rrlgQ==} + playwright@1.49.0: + resolution: {integrity: sha512-eKpmys0UFDnfNb3vfsf8Vx2LEOtflgRebl0Im2eQQnYMA4Aqd+Zw8bEOB+7ZKvN76901mRnqdsiOGKxzVTbi7A==} engines: {node: '>=18'} hasBin: true @@ -3393,9 +3393,9 @@ snapshots: tslib: 2.8.1 tsyringe: 4.8.0 - '@playwright/test@1.48.2': + '@playwright/test@1.49.0': dependencies: - playwright: 1.48.2 + playwright: 1.49.0 '@popperjs/core@2.11.8': {} @@ -4736,11 +4736,11 @@ snapshots: optionalDependencies: typescript: 5.4.5 - playwright-core@1.48.2: {} + playwright-core@1.49.0: {} - playwright@1.48.2: + playwright@1.49.0: dependencies: - playwright-core: 1.48.2 + playwright-core: 1.49.0 optionalDependencies: fsevents: 2.3.2 From f671d5032205497be720ac603817dc1015f628d2 Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Fri, 22 Nov 2024 13:54:30 +0800 Subject: [PATCH 2/2] test(*): wait for editor --- tests/playwright/specs/routes-expressions/01-Routes.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/playwright/specs/routes-expressions/01-Routes.spec.ts b/tests/playwright/specs/routes-expressions/01-Routes.spec.ts index 5b14eee..178966b 100644 --- a/tests/playwright/specs/routes-expressions/01-Routes.spec.ts +++ b/tests/playwright/specs/routes-expressions/01-Routes.spec.ts @@ -70,6 +70,7 @@ test.describe('route creation page', () => { // the editor shows invalid because it is empty await expect(page.locator('.expression-editor')).toHaveClass(/invalid/) + await page.waitForSelector('.monaco-editor') const editor = page.locator('.monaco-editor').first() @@ -113,6 +114,7 @@ test.describe('route creation page', () => { await page.locator('#expressions-tab').click() // should not contain the paths field await expect(configBlock).not.toContainText(/paths:/) + await page.waitForSelector('.monaco-editor') const editor = page.locator('.monaco-editor').first() @@ -162,6 +164,7 @@ test.describe('route creation page', () => { // switch to the expressions tab await page.locator('#expressions-tab').click() + await page.waitForSelector('.monaco-editor') const editor = page.locator('.monaco-editor').first() @@ -186,6 +189,7 @@ test.describe('route creation page', () => { // switch to the expressions tab await page.locator('#expressions-tab').click() + await page.waitForSelector('.monaco-editor') const editor = page.locator('.monaco-editor').first() @@ -213,6 +217,7 @@ test.describe('route creation page', () => { // switch to the expressions tab await page.locator('#expressions-tab').click() + await page.waitForSelector('.monaco-editor') const editor = page.locator('.monaco-editor').first() @@ -245,6 +250,7 @@ test.describe('route creation page', () => { // switch to the expressions tab await page.locator('#expressions-tab').click() + await page.waitForSelector('.monaco-editor') const editor = page.locator('.monaco-editor').first()