-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Cypress test for issue 1870 #2016
Conversation
Pull Request Test Coverage Report for Build 6896
💛 - Coveralls |
.type('{leftarrow}{leftarrow}ee') | ||
cy.get('.ant-input') | ||
.should('have.value', newLabelAttrValue) |
There was a problem hiding this comment.
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()
?
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Motivation and context
Add Cypress test for issue 1870
How has this been tested?
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.