mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-27 16:55:06 +00:00
improve SingleFiledSearch, GlossaryVersion and NotificationAlert cypress tests to avoid flakiness (#15603)
This commit is contained in:
parent
a6deffdd7c
commit
e6cdd6e9a6
@ -227,9 +227,7 @@ export const addInternalDestination = (
|
||||
).should('be.visible');
|
||||
cy.get(
|
||||
`[data-testid="team-user-select-dropdown-${destinationNumber}"] [data-testid="search-input"]`
|
||||
)
|
||||
.click()
|
||||
.type(searchText);
|
||||
).type(searchText);
|
||||
// Added wait for debounce functionality
|
||||
cy.wait(600);
|
||||
verifyResponseStatusCode('@getSearchResult', 200);
|
||||
|
||||
@ -237,9 +237,9 @@ export const searchForField = (
|
||||
.type(searchCriteria);
|
||||
|
||||
// checking filter is working
|
||||
cy.get(
|
||||
`.ant-select-item-option-active[title="${searchCriteria}"]`
|
||||
).should('be.visible');
|
||||
cy.get(`.ant-select-dropdown [title="${searchCriteria}"]`).should(
|
||||
'be.visible'
|
||||
);
|
||||
|
||||
// select value from dropdown
|
||||
if (!isLocalSearch) {
|
||||
|
||||
@ -131,9 +131,9 @@ export const removeOwner = (ownerName: string, dataTestId?: string) => {
|
||||
|
||||
cy.get('[data-testid="select-owner-tabs"]').should('be.visible');
|
||||
|
||||
cy.get(
|
||||
'[data-testid="select-owner-tabs"] [data-testid="remove-owner"]'
|
||||
).click();
|
||||
cy.get('[data-testid="select-owner-tabs"] [data-testid="remove-owner"]')
|
||||
.scrollIntoView()
|
||||
.click();
|
||||
verifyResponseStatusCode('@patchOwner', 200);
|
||||
|
||||
cy.get(`[data-testid=${dataTestId ?? 'owner-link'}]`).should(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user