Skip to content

Commit

Permalink
Tried to make cypress test stable: features/annotation_actions.js (#8208
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bsekachev authored Jul 23, 2024
1 parent 59c8c3f commit 292e1c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion tests/cypress/e2e/features/annotations_actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@ context('Testing annotations actions workflow', () => {
as: 'exportAnnotations',
type: 'annotations',
format: FORMAT_NAME,
scrollList: true,
};
cy.exportJob(exportAnnotation);
cy.downloadExport().then((file) => {
Expand Down
10 changes: 6 additions & 4 deletions tests/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -1259,13 +1259,15 @@ Cypress.Commands.add('exportTask', ({
Cypress.Commands.add('exportJob', ({
type, format, archiveCustomName,
targetStorage = null, useDefaultLocation = true,
scrollList = false,
}) => {
cy.interactMenu('Export job dataset');
cy.get('.cvat-modal-export-job').should('be.visible').find('.cvat-modal-export-select').click();
if (scrollList) {
cy.contains('.cvat-modal-export-option-item', format).scrollIntoView();
}
cy.get('.ant-select-dropdown')
.not('.ant-select-dropdown-hidden')
.not('.ant-slide-up')
.within(() => {
cy.contains('.cvat-modal-export-option-item', format).scrollIntoView();
});
cy.contains('.cvat-modal-export-option-item', format).should('be.visible').click();
cy.get('.cvat-modal-export-job').find('.cvat-modal-export-select').should('contain.text', format);
if (type === 'dataset') {
Expand Down

0 comments on commit 292e1c4

Please sign in to comment.