Cypress. Adapting tests to run in CI nightly. (#3370)

* Cypress. Skipping test "Export, import an annotation task" for Firefox.

* Updated case 37 for Firefox

* Redesign the test
main
Dmitry Kruchinin 5 years ago committed by GitHub
parent d2c77394c2
commit d47c5e468d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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})

@ -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}`;
@ -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')

Loading…
Cancel
Save