mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 20:51:26 +00:00
fix(cypress): what's new pop-up alert box (#13848)
* fix(cypress): what's new popoup alert box * remove manual timeout as not required such
This commit is contained in:
parent
1cbcdd01d2
commit
c5e7ff4c70
@ -81,9 +81,9 @@ Cypress.Commands.add('goToHomePage', (doNotNavigate) => {
|
||||
interceptURL('GET', '/api/v1/feed*', 'feed');
|
||||
interceptURL('GET', '/api/v1/users/*?fields=*', 'userProfile');
|
||||
!doNotNavigate && cy.visit('/');
|
||||
cy.get('[data-testid="whats-new-alert-card"]', {
|
||||
timeout: 500, // need to add timeout as alert pop-oup card has an 1s of animation to appear on screen
|
||||
}).should('be.visible');
|
||||
cy.get('[data-testid="whats-new-alert-card"]')
|
||||
.scrollIntoView()
|
||||
.should('be.visible');
|
||||
cy.get('[data-testid="close-whats-new-alert"]').click();
|
||||
cy.get('[data-testid="whats-new-alert-card"]').should('not.exist');
|
||||
// verifyResponseStatusCode('@feed', 200);
|
||||
|
Loading…
x
Reference in New Issue
Block a user