Skip to content

Commit

Permalink
Trying to fix cases 103, 104
Browse files Browse the repository at this point in the history
  • Loading branch information
dvkruchinin committed Sep 3, 2021
1 parent 8d77997 commit 821bce4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ Cypress.Commands.add('closeModalUnsupportedPlatform', () => {
Cypress.Commands.add('exportTask', ({ as, type, format, archiveCustomeName }) => {
cy.interactMenu('Export task dataset');
cy.intercept('GET', `/api/v1/tasks/**/${type}**`).as(as);
cy.get('.cvat-modal-export-task').find('.cvat-modal-export-select').click();
cy.get('.cvat-modal-export-task').should('be.visible').find('.cvat-modal-export-select').click();
cy.contains('.cvat-modal-export-option-item', format).should('be.visible').click();
cy.get('.cvat-modal-export-task').find('.cvat-modal-export-select').should('contain.text', format);
if (type === 'dataset') {
Expand Down
4 changes: 2 additions & 2 deletions tests/cypress/support/commands_projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Cypress.Commands.add('exportProject', ({ projectName, as, type, dumpType, archiv
cy.projectActions(projectName);
cy.intercept('GET', `/api/v1/projects/**/${type}**`).as(as);
cy.get('.cvat-project-actions-menu').contains('Export project dataset').click();
cy.get('.cvat-modal-export-project').find('.cvat-modal-export-select').click();
cy.contains('.cvat-modal-export-option-item', dumpType).click();
cy.get('.cvat-modal-export-project').should('be.visible').find('.cvat-modal-export-select').click();
cy.contains('.cvat-modal-export-option-item', dumpType).should('be.visible').click();
cy.get('.cvat-modal-export-select').should('contain.text', dumpType);
if (type === 'dataset') {
cy.get('.cvat-modal-export-project').find('[type="checkbox"]').should('not.be.checked').check();
Expand Down

0 comments on commit 821bce4

Please sign in to comment.