Skip to content

Commit

Permalink
test(*): fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder committed Dec 22, 2023
1 parent 3655cef commit 40f8a81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/playwright/specs/plugins/01-Plugins.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 40f8a81

Please sign in to comment.