Skip to content

Comments

ci: setup cypress, e2e tests workflow, and local webpack e2e test#418

Closed
zxl629 wants to merge 65 commits intomainfrom
lzhouq/feat/e2e-webpack
Closed

ci: setup cypress, e2e tests workflow, and local webpack e2e test#418
zxl629 wants to merge 65 commits intomainfrom
lzhouq/feat/e2e-webpack

Conversation

@zxl629
Copy link
Contributor

@zxl629 zxl629 commented Jan 6, 2025

Issue #, if available:

Description of changes:

Example pipeline run

(The error observed in the pipeline run is due to bad credentials when staging samples from another repository, it is unrelated to the changes in this PR.)

This change is a part of the E2E test roll out plan for amplify-data repository. It can be summarized into three parts:

  1. Sets up cypress for future E2E tests.
  2. Adds a sample app to test webpack bundler support.
  3. Incorporates cypress e2e test as a release blocker in Git workflows.

This change also adds the necessary GitHub actions config, scripts, and testing dependencies. Once this PR is merged, tests will run in the pipeline.

This change also modifies the current documentation for E2E tests, providing detailed instructions for cypress testing.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@changeset-bot
Copy link

changeset-bot bot commented Jan 6, 2025

🦋 Changeset detected

Latest commit: dfbb769

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

path: amplify-data
- name: Setup node and build the repository
uses: ./amplify-data/.github/actions/node-and-build
- name: Load Verdaccio with AmplifyData
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder if we still need to use Verdaccio here since we are already pointing the @aws-amplify/data-schema dependency in our Cypress sample apps package.json file to the local package.

@zxl629 zxl629 marked this pull request as ready for review January 8, 2025 01:57
@zxl629 zxl629 requested review from a team as code owners January 8, 2025 01:57
@zxl629 zxl629 closed this Jan 14, 2025
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.

1 participant