Skip to content

test(cypress): Add E2E tests for creating annotations on images#548

Merged
mergify[bot] merged 1 commit intobox:masterfrom
mingzexiao6:add-e2e-image
Jul 31, 2020
Merged

test(cypress): Add E2E tests for creating annotations on images#548
mergify[bot] merged 1 commit intobox:masterfrom
mingzexiao6:add-e2e-image

Conversation

@mingzexiao6
Copy link
Contributor

No description provided.

@mingzexiao6 mingzexiao6 requested a review from a team as a code owner July 31, 2020 18:27

// Assert annotations button group is hidden
cy.getByTestId('bp-AnnotationsControls-regionBtn')
.parent()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should avoid selecting arbitrary parent levels where possible. Does cy.getByTestId('bp-AnnotationsControls-regionBtn').should('not.be.visible'); work instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Genius!

Copy link
Collaborator

@jstoffan jstoffan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@mergify mergify bot merged commit 5d509fb into box:master Jul 31, 2020
@mingzexiao6 mingzexiao6 deleted the add-e2e-image branch August 13, 2020 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants