-
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
Check ground truth annotations in GT job #7770
Check ground truth annotations in GT job #7770
Conversation
Please, add also a check that we have object menu for GT objects in GT job, and does not have, in a regular job. |
cy.get(`#cvat-objects-sidebar-state-item-${groundTruthRectangles[index].id}`) | ||
.find('.ant-dropdown-trigger').click(); | ||
cy.get('.cvat-object-item-menu').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.
May we move it inside checkRectangle
to reduce code duplication?
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.
Moved
cy.goCheckFrameNumber(frame); | ||
checkRectangle(groundTruthRectangles[index], true); | ||
cy.get(`#cvat-objects-sidebar-state-item-${groundTruthRectangles[index].id}`) | ||
.find('.ant-dropdown-trigger').click(); |
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.
Instead of using .antd
defined class, I will suggest to add CVAT class name to this element (e.g. cvat-object-item-menu-button
) and use it.
Also we do not need click the element, just checking that it exists and visible is enough
Motivation and context
Update ground truth job test by covering the case in #7714
How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.