From 40f8a81e796e0410443a476b593cd4559a536a7a Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Fri, 22 Dec 2023 14:34:06 +0800 Subject: [PATCH] test(*): fix test cases --- tests/playwright/specs/plugins/01-Plugins.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/playwright/specs/plugins/01-Plugins.spec.ts b/tests/playwright/specs/plugins/01-Plugins.spec.ts index 19a0d26..8475be1 100644 --- a/tests/playwright/specs/plugins/01-Plugins.spec.ts +++ b/tests/playwright/specs/plugins/01-Plugins.spec.ts @@ -107,7 +107,7 @@ test.describe('plugins', () => { async () => await page.click('.kong-ui-entities-plugins-list [data-testid="toolbar-add-plugin"]') ) - const pluginIcon = page.locator('.plugin-card-content [data-testid="Basic Authentication"] img.plugin-card-icon') + const pluginIcon = page.locator('.plugin-select-card [data-testid="Basic Authentication"] img.plugin-card-icon') await expect(pluginIcon).toBeVisible() @@ -407,8 +407,8 @@ test.describe('plugins', () => { await filterInput.fill('bas') await expect(page.getByTestId('k-collapse-title')).toHaveCount(1) await expect(page.getByTestId('k-collapse-title')).toContainText('Authentication') - await expect(page.locator('.plugin-card-content')).toHaveCount(1) - await expect(page.locator('.plugin-card-content .card-title')).toContainText('Basic Authentication') + await expect(page.locator('.plugin-select-card')).toHaveCount(1) + await expect(page.locator('.plugin-select-card .plugin-card-title')).toContainText('Basic Authentication') await filterInput.fill('sad') await expect(page.getByTestId('plugins-empty-state')).toBeVisible()