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(e2e): introduce cypress for web components & react storybook #7096

Merged
merged 14 commits into from
Sep 10, 2021

Conversation

jeffchew
Copy link
Member

@jeffchew jeffchew commented Sep 9, 2021

Related Ticket(s)

Refs #6139

Description

This PR fully moves the existing test-e2e package to a dedicated cypress test setup for web components and react storybooks. A few tests have been included for masthead, locale-modal, and leadspace. They are largely focused on snapshot testing, though percy has been disabled for now as rendering of dynamic states are still not supported in percy for web components (see percy/cli#280).

Actual cypress tests can be created now though, and also the current tests uses the built-in cypress screenshot feature:

image

And video that shows how the tests are run:

masthead.e2e.js.mp4

Changelog

New

  • Cypress testing for web components and react storybook

Changed

  • disabled video recording by default to speed up tests

Removed

  • Removed test-e2e package

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Sep 9, 2021

Deploy preview created for package Web Components - Codesandbox Examples:
https://webcomponents-codesandbox.s3-web.us-east.cloud-object-storage.appdomain.cloud/deploy-previews/7096/

Built with commit: 1d8c28e4e4660639b4d6e6256ab9ddc2d4943820

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Sep 9, 2021

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Sep 9, 2021

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Sep 9, 2021

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Sep 9, 2021

…st/e2e-web-components

# Conflicts:
#	packages/tests-e2e/CHANGELOG.md
#	packages/tests-e2e/package.json
@jeffchew jeffchew changed the title test(e2e): introduce cypress for web components storybook test(e2e): introduce cypress for web components & react storybook Sep 9, 2021
@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Sep 9, 2021

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

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

should there be any lockfile and offline package mirror changes that go with this as well? I get unstaged changes when running a yarn install

@jeffchew
Copy link
Member Author

should there be any lockfile and offline package mirror changes that go with this as well? I get unstaged changes when running a yarn install

It should have been updated, but I can double-check. Web components and react are using existing dependencies for cypress already which is probably why there isn't much difference, but I would think that puppeteer would have been deleted.

@jeffchew jeffchew added the Ready to merge Label for the pull requests that are ready to merge label Sep 10, 2021
@jeffchew
Copy link
Member Author

@emyarod I ran a reset locally and didn't see any new changes. Did you run a reset on your end?

@emyarod
Copy link
Member

emyarod commented Sep 10, 2021

@jeffchew yeah mine is still running but I will update when it's finished

@emyarod
Copy link
Member

emyarod commented Sep 10, 2021

@jeffchew hm yeah I still get unstaged changes after a reset

image

no idea why it installs correctly on master now but not after checking out the feature branch

@kodiakhq kodiakhq bot merged commit 97258d3 into carbon-design-system:master Sep 10, 2021
@jeffchew jeffchew deleted the test/e2e-web-components branch September 13, 2021 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants