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

Check ground truth annotations in GT job #7770

Merged

Conversation

novda
Copy link
Contributor

@novda novda commented Apr 15, 2024

Motivation and context

Update ground truth job test by covering the case in #7714

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
  • I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

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.

@novda novda requested a review from azhavoro as a code owner April 15, 2024 17:27
@bsekachev
Copy link
Member

Please, add also a check that we have object menu for GT objects in GT job, and does not have, in a regular job.

@novda novda requested review from bsekachev and removed request for azhavoro April 16, 2024 11:49
Comment on lines 320 to 322
cy.get(`#cvat-objects-sidebar-state-item-${groundTruthRectangles[index].id}`)
.find('.ant-dropdown-trigger').click();
cy.get('.cvat-object-item-menu').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.

May we move it inside checkRectangle to reduce code duplication?

Copy link
Contributor Author

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();
Copy link
Member

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

@bsekachev bsekachev merged commit 70c2fb8 into cvat-ai:develop Apr 18, 2024
32 checks passed
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.

2 participants