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

Build: Swap order of e2e tests around #17840

Merged
merged 3 commits into from
Mar 31, 2022
Merged

Build: Swap order of e2e tests around #17840

merged 3 commits into from
Mar 31, 2022

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Mar 31, 2022

Issue: e2e pnp tests are failing

What I did

  • swap order of e2e tests around

this makes them pass, we think that perhaps some tests are leaking into each other.
We plan to migrate off of cypress in the future,
so I'm not going to spend more time on improving this.

this makes them pass, we think that perhaps some tests are leaking into each other.
We plan to migrate off of cypress in the future,
so I'm not going to spend more time on improving this.
@nx-cloud
Copy link

nx-cloud bot commented Mar 31, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 450fb4a. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@ndelangen ndelangen added maintenance User-facing maintenance tasks run e2e extended test suite Run the e2e extended test suite in CircleCI workflows labels Mar 31, 2022
@ndelangen ndelangen self-assigned this Mar 31, 2022
@shilman shilman changed the title swap order of e2e tests around Build: Swap order of e2e tests around Mar 31, 2022
@@ -77,6 +77,7 @@
"fast-deep-equal": "^3.1.3",
"global": "^4.4.0",
"lodash": "^4.17.21",
"regenerator-runtime": "^0.13.7",
Copy link
Member

Choose a reason for hiding this comment

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

why is this necessary in addon-docs?

@yannbf
Copy link
Member

yannbf commented Mar 31, 2022

Nice stuff @ndelangen <3

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

awesome 👏

@shilman shilman merged commit d20eb1b into next Mar 31, 2022
@shilman shilman deleted the tech/fix-e2e-tests branch March 31, 2022 14:14
@ndelangen
Copy link
Member Author

Just for future reference, turns out that there's a something not quite right here:

if (name !== 'page') {
// Section might be collapsed
cy.get(`#${kindId}`).then(async ($item) => {
if ($item.attr('aria-expanded') === 'false') {
await $item.click();
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(300);
}
});
}

There seems to be some order of operation error, and that's the true cause some tests aren't passing.. the wrong story is selected, and thus (as one would expect) the test fails.

By waiting a bit longer, the story is correctly selected, and the test proceeds as designed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks run e2e extended test suite Run the e2e extended test suite in CircleCI workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants