-
Notifications
You must be signed in to change notification settings - Fork 3k
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. Delete unlock and lock object. #2526
Cypress test. Delete unlock and lock object. #2526
Conversation
}; | ||
|
||
function clickRemoveOnDropdownMenu() { | ||
cy.get('.ant-dropdown') |
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.
.ant-dropdown
is too abstract. Please, use another selector. You can add any css classes to the application (i.e. .cvat-object-item-menu
)
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.
All cssSelectors replaced from "ant*" to "cvat*"
}; | ||
|
||
function actionOnConfirmWindow(textBuntton) { | ||
cy.get('.ant-modal-confirm').within(() => { |
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.
The same comment.
Please, avoid using ant-*
classes because they can be changed in other antd versions.
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.
done
function checkFailDeleteLockObject(shortcut) { | ||
deleteObjectViaShortcut(shortcut, 'lock'); | ||
checkExistObject('exist'); | ||
cy.get('.ant-notification-topRight').should('exist'); |
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.
The same
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.
done
…nlock_lock_object
Cypress test. Delete unlock and lock object.
Add cssSelectors for elements.
Motivation and context
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.