mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-02 03:29:03 +00:00
Fix the flakiness in service ingestion playwright (#23334)
(cherry picked from commit d9f34bb1fafcbaee5d38846a54514679bdbf689c)
This commit is contained in:
parent
997c187c5d
commit
75e7b832d5
@ -11,13 +11,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { expect, Page } from '@playwright/test';
|
||||
import { escapeESReservedCharacters, getEncodedFqn } from './entity';
|
||||
import { settingClick, SettingOptionsType } from './sidebar';
|
||||
|
||||
export const searchServiceFromSettingPage = async (
|
||||
page: Page,
|
||||
service: string
|
||||
) => {
|
||||
const serviceResponse = page.waitForResponse(`/api/v1/search/query?q=*`);
|
||||
const serviceResponse = page.waitForResponse(
|
||||
`/api/v1/search/query?q=**${getEncodedFqn(
|
||||
escapeESReservedCharacters(service)
|
||||
)}**`
|
||||
);
|
||||
await page.fill('[data-testid="searchbar"]', service);
|
||||
|
||||
await serviceResponse;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user