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. Object propagate. #2867

Merged

Conversation

dvkruchinin
Copy link
Contributor

Motivation and context

Add Cypress test.

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) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

…o dkru/case-53-propagate-not-on-last-frame-origin
@bsekachev bsekachev self-assigned this Feb 25, 2021
@dvkruchinin dvkruchinin mentioned this pull request Feb 25, 2021
8 tasks
@coveralls
Copy link

coveralls commented Feb 25, 2021

Coverage Status

Coverage increased (+0.04%) to 71.045% when pulling 7034719 on dvkruchinin:dkru/case-53-propagate-not-on-last-frame into 1e33901 on openvinotoolkit:develop.

startPropagation();
cy.get('.cvat-propagate-confirm-object-on-frames')
.find('input')
.should('have.attr', 'value', maxFrameNumber)
Copy link
Member

Choose a reason for hiding this comment

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

Let's remove this check. It is not actually true because default it set to 50.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No problem. Done.

startPropagation();
cy.get('.cvat-propagate-confirm-object-on-frames')
.find('input')
.should('have.attr', 'value', propagateOnOneFrame)
Copy link
Member

Choose a reason for hiding this comment

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

The same. I do not see any necessity to check this value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.


it('From the 1st frame propagate again on 2 frames.', () => {
startPropagation();
cy.get('.cvat-propagate-confirm-object-on-frames')
Copy link
Member

Choose a reason for hiding this comment

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

Can we do opposite thing in this test entering the value in cvat-propagate-confirm-object-up-to-frame? (and checking cvat-propagate-confirm-object-up-to-frame)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. I did this when propagate to 2 frames in the test.

@bsekachev bsekachev merged commit 81cd6ae into cvat-ai:develop Feb 26, 2021
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.

3 participants