Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed unstable requests regression test #8841

Merged
merged 11 commits into from
Dec 19, 2024
13 changes: 4 additions & 9 deletions tests/cypress/e2e/features/requests_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,6 @@ context('Requests page', () => {
});

cy.getJobIDFromIdx(0).then((jobID) => {
const closeExportNotification = () => {
cy.contains('Export is finished').should('be.visible');
cy.contains('Export is finished').parents('.ant-notification-notice')
.find('span[aria-label="close"]').click();
};

const exportParams = {
type: 'dataset',
format: exportFormat,
Expand All @@ -342,9 +336,6 @@ context('Requests page', () => {
};
cy.exportJob(newExportParams);

closeExportNotification();
closeExportNotification();

cy.contains('.cvat-header-button', 'Requests').should('be.visible').click();
cy.url().should('include', '/requests');

Expand All @@ -355,6 +346,10 @@ context('Requests page', () => {
cy.get('.cvat-request-item-progress-success').should('exist');
});
});

cy.get('.ant-notification-notice').each((notification) => {
cy.wrap(notification).find('span[aria-label="close"]').click();
});
});
});

Expand Down
Loading