From 837443422714d83bfdc256e53b1452c93ab788d3 Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Mon, 23 Sep 2024 14:27:12 +0800 Subject: [PATCH] test(*): field select --- tests/playwright/specs/consumers/03-ConsumerPlugins.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/playwright/specs/consumers/03-ConsumerPlugins.spec.ts b/tests/playwright/specs/consumers/03-ConsumerPlugins.spec.ts index 1e0b2b7e..58554aa7 100644 --- a/tests/playwright/specs/consumers/03-ConsumerPlugins.spec.ts +++ b/tests/playwright/specs/consumers/03-ConsumerPlugins.spec.ts @@ -105,8 +105,8 @@ test.describe('consumer plugins', () => { await page.click('input#consumer-id') await page.fill('input#consumer-id', mockConsumerName) await page.waitForTimeout(300) - await expect(page.locator('.select-item')).toContainText(mockConsumerName) - await page.click('.select-item') + await expect(page.locator('label[for="consumer"] + .field-wrap .select-item')).toContainText(mockConsumerName) + await page.click('label[for="consumer"] + .field-wrap .select-item') await withNavigation(page, () => page.click(consumerListPage.$.submitButton)) await pluginListPage.goto() await expect(page.locator('.kong-ui-entities-plugins-list [data-testid="appliedTo"] .k-badge')).toContainText('Consumer')