From cbbbb15320f37520d4c309a23989760c9be62c95 Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Mon, 15 Jul 2024 17:25:17 +0800 Subject: [PATCH] feat(vault): vault provider select --- package.json | 2 +- tests/playwright/specs/vaults/01-Vaults.spec.ts | 6 ++++-- yarn.lock | 8 ++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 0fc49b2..ca93af5 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@kong-ui-public/entities-shared": "^3.2.0", "@kong-ui-public/entities-snis": "^3.3.5", "@kong-ui-public/entities-upstreams-targets": "^3.3.5", - "@kong-ui-public/entities-vaults": "^3.4.5", + "@kong-ui-public/entities-vaults": "^3.5.0", "@kong-ui-public/forms": "^4.0.2", "@kong-ui-public/i18n": "^2.2.2", "@kong-ui-public/misc-widgets": "^2.1.9", diff --git a/tests/playwright/specs/vaults/01-Vaults.spec.ts b/tests/playwright/specs/vaults/01-Vaults.spec.ts index e88a3b3..c9bdd48 100644 --- a/tests/playwright/specs/vaults/01-Vaults.spec.ts +++ b/tests/playwright/specs/vaults/01-Vaults.spec.ts @@ -34,7 +34,8 @@ test.describe('vaults', () => { ) await expect(page.locator('.vault-form-provider-cards-container')).toBeVisible() - await page.click('[data-testid="vault-form-provider-kong"] + label') + await page.getByTestId('provider-select').click() + await page.click('[data-testid="vault-form-provider-env"]') await fillEntityForm({ page, formData: { @@ -100,7 +101,8 @@ test.describe('vaults', () => { ) await expect(page.locator('.vault-form-provider-cards-container')).toBeVisible() - await page.click('[data-testid="vault-form-provider-kong"] + label') + await page.getByTestId('provider-select').click() + await page.click('[data-testid="vault-form-provider-env"]') await fillEntityForm({ page, formData: { diff --git a/yarn.lock b/yarn.lock index cb83151..4a1f2a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -519,10 +519,10 @@ "@kong-ui-public/entities-shared" "^3.4.5" "@kong/icons" "^1.14.2" -"@kong-ui-public/entities-vaults@^3.4.5": - version "3.4.5" - resolved "https://registry.yarnpkg.com/@kong-ui-public/entities-vaults/-/entities-vaults-3.4.5.tgz#833bf4101a94c8933b2312066836abf078250899" - integrity sha512-svWuqjJPFuoiQPp7kUCwQ168B2x88xYNI6JRT7m/C5tFvtU3KHKj6Of7MUo9pL9Xos/WgPrMkj3bTTqtVffKrw== +"@kong-ui-public/entities-vaults@^3.5.0": + version "3.5.0" + resolved "https://registry.yarnpkg.com/@kong-ui-public/entities-vaults/-/entities-vaults-3.5.0.tgz#51721cb542bb1435bf679a987de9bb264c01c21f" + integrity sha512-TPH23bZhMnzHOOWYKaqs6yYumOus3fKpif0GBCcNRbWP2i74SxB+iG0gp2hQ3XyZIGEWluGCd9z5fvOKsFrjtA== dependencies: "@kong-ui-public/entities-shared" "^3.4.5" "@kong/icons" "^1.14.2"