Skip to content

Commit

Permalink
Cypress. Adapting tests to run in CI nightly. (cvat-ai#3370)
Browse files Browse the repository at this point in the history
* Cypress. Skipping test "Export, import an annotation task" for Firefox.

* Updated case 37 for Firefox

* Redesign the test
  • Loading branch information
dvkruchinin authored Jul 2, 2021
1 parent d2c7739 commit d47c5e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ context('Object make a copy.', () => {
it('Copy a shape with holding "Ctrl".', () => {
const keyCodeC = 67;
const keyCodeV = 86;
cy.get('#cvat_canvas_shape_18').trigger('mousemove').should('have.class', 'cvat_canvas_shape_activated');
cy.get('.cvat_canvas_shape').first().trigger('mousemove').should('have.class', 'cvat_canvas_shape_activated');
cy.get('body').type('{ctrl}', {release: false}); // Hold
cy.get('body')
.trigger('keydown', {keyCode: keyCodeC, ctrlKey: true})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/// <reference types="cypress" />

context('Export, import an annotation task.', () => {
context('Export, import an annotation task.', { browser: '!firefox' }, () => {
const caseId = '97';
const labelName = 'car';
const taskName = `Case ${caseId}`;
Expand Down Expand Up @@ -60,7 +60,7 @@ context('Export, import an annotation task.', () => {
cy.deleteTask(taskName);
});

describe(`Testing "${labelName}"`, () => {
describe(`Testing "${taskName}"`, () => {
it('Export a task.', () => {
cy.contains('.cvat-item-task-name', taskName)
.parents('.cvat-tasks-list-item')
Expand Down

0 comments on commit d47c5e4

Please sign in to comment.