Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress test. Settings player step. #2539

Conversation

DmitriyOparin
Copy link
Contributor

Cypress test. Settings player step.

Motivation and context

How has this been tested?

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT

@coveralls
Copy link

coveralls commented Dec 8, 2020

Coverage Status

Coverage decreased (-0.004%) to 61.806% when pulling 4826bca on DmitriyOparin:upstream/do/cypress_test_case_29_settings_player_step into 565020c on openvinotoolkit:develop.

@dvkruchinin
Copy link
Contributor

@DmitriyOparin Please recheck the test for the current develop branch.

@DmitriyOparin DmitriyOparin changed the title Cypress test. Settings player step. [WIP] Cypress test. Settings player step. Dec 10, 2020
@DmitriyOparin
Copy link
Contributor Author

Recheck of test is success for the current develop branch.

@DmitriyOparin DmitriyOparin changed the title [WIP] Cypress test. Settings player step. Cypress test. Settings player step. Dec 10, 2020

describe(`Testing case "${caseId}"`, () => {
it('Change player step ', () => {
changePlayerStep();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is reason to make a separated function here? The code is used only here as I can see.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this function will be use in several steps. It changed now.

Comment on lines 32 to 39
// get and save current step
cy.get('.cvat-player-frame-selector').within(() => {
cy.get('[role="spinbutton"]')
.should('have.attr', 'aria-valuenow')
.then((valueStepNow) => {
startStep = Number(valueStepNow);
});
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this code you get not a current step, you get initial frame. So, I would rename "startStep" to "initialFrame" or "startFrame"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Variable renamed.

@bsekachev bsekachev merged commit 240f07c into cvat-ai:develop Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants