Skip to content

Commit

Permalink
Cypress. Fix some tests. Rework margin. (#3001)
Browse files Browse the repository at this point in the history
* cvat-player-buttons margin: 0 4px

* Rework test to set autosave interval

* Update copyright

* Remove workaround.
  • Loading branch information
dvkruchinin committed Mar 23, 2021
1 parent 476bd76 commit 4f7b1f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cvat-ui/src/components/annotation-page/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2020 Intel Corporation
// Copyright (C) 2020-2021 Intel Corporation
//
// SPDX-License-Identifier: MIT

Expand Down Expand Up @@ -103,7 +103,7 @@

> span {
font-size: 25px;
margin: 0 7px;
margin: 0 4px;
color: $player-buttons-color;

&:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ context('Merge/split features', () => {
cy.get('.cvat-split-track-control').click();
// 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(); // 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-objects-sidebar-state-item-4')
.should('contain', '4')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ context('Settings. "Auto save" option.', () => {
cy.get('.ant-checkbox-checked').should('not.exist');
});
cy.get('.cvat-workspace-settings-auto-save-interval').within(() => {
cy.get('[role="spinbutton"]').clear().tab(); // Clear field and press Tab
cy.get('[role="spinbutton"]').should('have.value', 1); // Interval should`t be empty
cy.get('[role="spinbutton"]').clear().type(5).should('have.value', 5);
cy.get('[role="spinbutton"]').clear().type(0).tab();
cy.get('[role="spinbutton"]').should('have.value', 1); // Interval should`t be less then 1
cy.get('[role="spinbutton"]').clear().type(5).tab();
cy.get('[role="spinbutton"]').should('have.value', 5);
});
});
});
Expand Down

0 comments on commit 4f7b1f9

Please sign in to comment.