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

test(protocol-designer, labware-library): update cypress #14971

Merged
merged 13 commits into from May 6, 2024

Conversation

shlokamin
Copy link
Member

@shlokamin shlokamin commented Apr 22, 2024

Overview

This PR updates cypress from 6.6.0 to 13.7.1, and fixes various tests to accommodate the 5 major version bumps.

For reasons I do not understand (praise the Gods of package management) this PR fixes the jsdom issue we were seeing before where styled-components in the testing environment would get rendered with their active styles by default. So, a lot of the file changes here are reverting tests back to what they were prior to the vite migration.

closes AUTH-219 and AUTH-220

Changelog

  • Update cypress to 13.7.1

Review requests

Verify e2e tests pass

Risk assessment

Low

@@ -5,7 +5,7 @@ port ?= 6060

# These variables can be overriden when make is invoked to customize the
# behavior of jest
tests ?=
tests ?= src
Copy link
Member Author

Choose a reason for hiding this comment

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

i made this change because other tests in /components subdirs were getting picked up (protocol-designer/*/components, app/*/components)

@shlokamin shlokamin marked this pull request as ready for review April 29, 2024 20:52
@shlokamin shlokamin requested review from a team as code owners April 29, 2024 20:52
@shlokamin shlokamin requested review from koji and jerader and removed request for a team April 29, 2024 20:52

describe('Reservoir', () => {
before(() => {
// TODO(IL, 2021-05-15): give Dropdown component semantic selectors for E2E
Copy link
Contributor

Choose a reason for hiding this comment

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

still need this comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

no probably not, ill get rid of it!

Copy link
Contributor

@koji koji left a comment

Choose a reason for hiding this comment

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

Thank you for updating cypress!
The changes look good to me.

Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

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

i like the cypress tests a lot more this way, after the merge conflict is fixed this lgtm!

@shlokamin shlokamin merged commit 2066225 into edge May 6, 2024
33 checks passed
@shlokamin shlokamin deleted the chore_update-cypress branch May 6, 2024 18:25
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.

None yet

3 participants