-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(designer): Fix issue where characters later in a token name would…
… carry less relevence in a search (#4736) * fix(designer): Fix issue where characters later in a token name would carry less relevence in a search * Add test for regression * name of test * Fix serialization test
- Loading branch information
Showing
11 changed files
with
70 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import test, { expect } from '@playwright/test'; | ||
import { GoToMockWorkflow } from './utils/GoToWorkflow'; | ||
|
||
test.describe( | ||
'Token Picker Tests', | ||
{ | ||
tag: '@mock', | ||
}, | ||
async () => { | ||
test('Token picker search should have robust name matching', async ({ page }) => { | ||
await page.goto('/'); | ||
|
||
await GoToMockWorkflow(page, 'Panel'); | ||
await page.getByLabel('Parse JSON operation, Data').click(); | ||
await page.getByLabel('Content').click(); | ||
await page.locator('button').filter({ hasText: '' }).click(); | ||
await expect(page.getByRole('button', { name: 'EILCO Admin Nominations-OCSA' })).toBeVisible(); | ||
await page.getByPlaceholder('Search').click(); | ||
await page.getByPlaceholder('Search').fill('OCSA'); | ||
await expect(page.getByRole('button', { name: 'EILCO Admin Nominations-OCSA' })).toBeVisible(); | ||
await page.getByPlaceholder('Search').click(); | ||
await page.getByPlaceholder('Search').fill('_L2'); | ||
await expect(page.getByRole('button', { name: 'EILCO Admin Nominations-OCSA' })).toBeVisible(); | ||
await page.getByPlaceholder('Search').click(); | ||
await page.getByPlaceholder('Search').fill('OCSR'); | ||
await expect(page.getByRole('button', { name: 'EILCO Admin Nominations-OCSA' })).toBeVisible(); | ||
}); | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters