Cypress. Fix some tests. Rework margin. (#3001)

* cvat-player-buttons margin: 0 4px

* Rework test to set autosave interval

* Update copyright

* Remove workaround.
main
Dmitry Kruchinin 5 years ago committed by GitHub
parent 476bd76348
commit 4f7b1f91ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,4 @@
// Copyright (C) 2020 Intel Corporation // Copyright (C) 2020-2021 Intel Corporation
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
@ -103,7 +103,7 @@
> span { > span {
font-size: 25px; font-size: 25px;
margin: 0 7px; margin: 0 4px;
color: $player-buttons-color; color: $player-buttons-color;
&:hover { &:hover {

@ -129,7 +129,6 @@ context('Merge/split features', () => {
cy.get('.cvat-split-track-control').click(); cy.get('.cvat-split-track-control').click();
// A single click does not reproduce the split a track scenario in cypress test. // A single click does not reproduce the split a track scenario in cypress test.
cy.get('#cvat_canvas_shape_3').click().click(); cy.get('#cvat_canvas_shape_3').click().click();
cy.get('#cvat_canvas_shape_3').click(); // TODO: workaraund. Need to figure out and make it work with just single click
cy.get('#cvat_canvas_shape_4').should('exist').and('be.hidden'); cy.get('#cvat_canvas_shape_4').should('exist').and('be.hidden');
cy.get('#cvat-objects-sidebar-state-item-4') cy.get('#cvat-objects-sidebar-state-item-4')
.should('contain', '4') .should('contain', '4')

@ -24,9 +24,10 @@ context('Settings. "Auto save" option.', () => {
cy.get('.ant-checkbox-checked').should('not.exist'); cy.get('.ant-checkbox-checked').should('not.exist');
}); });
cy.get('.cvat-workspace-settings-auto-save-interval').within(() => { cy.get('.cvat-workspace-settings-auto-save-interval').within(() => {
cy.get('[role="spinbutton"]').clear().tab(); // Clear field and press Tab cy.get('[role="spinbutton"]').clear().type(0).tab();
cy.get('[role="spinbutton"]').should('have.value', 1); // Interval should`t be empty cy.get('[role="spinbutton"]').should('have.value', 1); // Interval should`t be less then 1
cy.get('[role="spinbutton"]').clear().type(5).should('have.value', 5); cy.get('[role="spinbutton"]').clear().type(5).tab();
cy.get('[role="spinbutton"]').should('have.value', 5);
}); });
}); });
}); });

Loading…
Cancel
Save