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 for issue 1870 #2016

Merged
merged 2 commits into from
Aug 12, 2020

Conversation

dvkruchinin
Copy link
Contributor

Motivation and context

Add Cypress test for issue 1870

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 Aug 11, 2020

Pull Request Test Coverage Report for Build 6896

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 68.938%

Totals Coverage Status
Change from base Build 6871: 0.0%
Covered Lines: 11129
Relevant Lines: 15658

💛 - Coveralls

Comment on lines 52 to 54
.type('{leftarrow}{leftarrow}ee')
cy.get('.ant-input')
.should('have.value', newLabelAttrValue)
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 unite it to the same chain without extra cy.get()?

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, we can. I've reworked this part of the code a bit.

cy.createShape(309, 431, 616, 671)
})
it('Check what cursor doesn\'t automatically jumps at the end of the word', () => {
cy.get('.ant-row > .ant-collapse > .ant-collapse-item > .ant-collapse-header > span')
Copy link
Member

Choose a reason for hiding this comment

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

Not really reliable selector. It is better to use an identificator before. Here can be a lot of collapses in the future.

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 tried to shorten selector.

Refactoring the test code.
@bsekachev bsekachev merged commit 0856be0 into cvat-ai:develop Aug 12, 2020
@dvkruchinin dvkruchinin deleted the dkru/cypress_test_issue_1870 branch August 19, 2020 11:02
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