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. Delete unlock and lock object. #2526

Conversation

DmitriyOparin
Copy link
Contributor

@DmitriyOparin DmitriyOparin commented Dec 3, 2020

Cypress test. Delete unlock and lock object.
Add cssSelectors for elements.

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 3, 2020

Coverage Status

Coverage increased (+0.007%) to 61.824% when pulling ac58b36 on DmitriyOparin:upstream/do/cypress_test_case_24_delete_unlock_lock_object into b09d4e0 on openvinotoolkit:develop.

};

function clickRemoveOnDropdownMenu() {
cy.get('.ant-dropdown')
Copy link
Member

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)

Copy link
Contributor Author

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(() => {
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 comment.
Please, avoid using ant-* classes because they can be changed in other antd versions.

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

function checkFailDeleteLockObject(shortcut) {
deleteObjectViaShortcut(shortcut, 'lock');
checkExistObject('exist');
cy.get('.ant-notification-topRight').should('exist');
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

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

@DmitriyOparin DmitriyOparin changed the title Cypress test. Delete unlock and lock object. [WIP] Cypress test. Delete unlock and lock object. Dec 7, 2020
@DmitriyOparin DmitriyOparin changed the title [WIP] Cypress test. Delete unlock and lock object. Cypress test. Delete unlock and lock object. Dec 7, 2020
@bsekachev bsekachev merged commit be93804 into cvat-ai:develop Dec 7, 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.

3 participants