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

[MDS-5505] e2e test major projects refactor #2780

Merged
merged 5 commits into from
Nov 6, 2023

Conversation

henryoforeh-dev
Copy link
Contributor

@henryoforeh-dev henryoforeh-dev commented Nov 6, 2023

Objective

MDS-5505

  • Revamped the end-to-end (E2E) upload and download tests for major projects to incorporate mocked and stubbed responses.
  • Enabled all e2e tests to run in pipeline.
  • Assessed the dependability of the tests by executing them five times consecutively in GitHub Actions, with all runs resulting in successful outcomes.


cy.get('[data-cy="home-link-button-major-projects"]', { timeout: 5000 }).click({ force: true });
cy.get('[data-cy="home-link-button-major-projects"]', { timeout: 10000 }).click({ force: true });
Copy link
Collaborator

Choose a reason for hiding this comment

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

one thing- is this running 2 separate tests, the first which uploads the file and the second which downloads? If so, would it be faster to run it as one test that uploads and then downloads, taking out the login and navigation in the middle? I know that unit-test thinking promotes making tests smaller and independent, but cypress recommends combining pieces of the process into a longer one to enhance performance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Combined the 2 tests into one to enhance performance.

cy.get('input[type="file"]').attachFile({
fileContent: fileContent,
fileName: fileName,
mimeType: 'application/pdf',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did eslint not catch this file for formatting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to allow eslint to reformat. My frontend git tool had no verify checked all the while.

Copy link
Collaborator

@matbusby-fw matbusby-fw left a comment

Choose a reason for hiding this comment

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

🙌🏻

@henryoforeh-dev henryoforeh-dev merged commit a0ce275 into develop Nov 6, 2023
8 checks passed
@henryoforeh-dev henryoforeh-dev deleted the MDS-5505-e2e-test-major-projects branch November 6, 2023 20:51
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.

3 participants