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

chore(e2e-dev-runtime): bump @testing-library/cypress and adjust current data updates testing setup #26500

Merged
merged 3 commits into from Aug 21, 2020

Conversation

pieh
Copy link
Contributor

@pieh pieh commented Aug 17, 2020

Description

This PR does 2 things:

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 17, 2020
Comment on lines +32 to +34
if (!(webhookBody && webhookBody[`fake-data-update`])) {
await api.reset()
}
Copy link
Contributor Author

@pieh pieh Aug 17, 2020

Choose a reason for hiding this comment

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

This is meant to result in "initial" data state, unless we want to trigger refresh/update explicitly for this plugin

@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 17, 2020

Gatsby Cloud Build Report

client-only-paths

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 18s

Performance

Lighthouse report

Metric Score
Performance 💚 100
Accessibility 🔶 85
Best Practices 💚 100
SEO 🔶 70

🔗 View full report

@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 17, 2020

Gatsby Cloud Build Report

using-styled-components

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 11s

Performance

Lighthouse report

Metric Score
Performance 💚 100
Accessibility 💚 90
Best Practices 💚 100
SEO 💚 90

🔗 View full report

@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 17, 2020

Gatsby Cloud Build Report

using-reach-skip-nav

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 11s

Performance

Lighthouse report

Metric Score
Performance 💚 100
Accessibility 💚 100
Best Practices 💚 100
SEO 🔶 82

🔗 View full report

@gatsby-cloud-staging
Copy link

gatsby-cloud-staging bot commented Aug 17, 2020

Gatsby Cloud Build Report

gatsby-master

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 16s

Performance

Lighthouse report

Metric Score
Performance 💚 97
Accessibility 🔶 87
Best Practices 💚 93
SEO 🔶 73

🔗 View full report

@pieh pieh added type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Aug 17, 2020
@@ -15,17 +15,17 @@ describe(`Gatsby Preview (Updating)`, () => {
it(`displays initial data`, () => {
cy.get(`li:eq(0) a`).click().waitForRouteChange()

cy.queryByText(`Hello World (1)`).should(`exist`)
cy.findByText(`Hello World (1)`).should(`exist`)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's one of breaking changes in @testing-library/cypress@6 - https://github.com/testing-library/cypress-testing-library/releases/tag/v6.0.0

This comment applies to all replacements like that here

@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 17, 2020

Gatsby Cloud Build Report

gatsby

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 5m

Comment on lines +59 to +61
},
"resolutions": {
"cypress": "3.4.1"
Copy link
Contributor Author

@pieh pieh Aug 17, 2020

Choose a reason for hiding this comment

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

Fix/workaround for https://app.circleci.com/pipelines/github/gatsbyjs/gatsby/48158/workflows/3227d59e-b7ae-4eeb-b109-06a9712b44c2/jobs/491859 ( because of deps spaghetti it tries to install 2 instances of cypress and cypress use single tmp location for binary download and this results in 2 different downloads writing things to same filepath which corrupts it). This is somewhat forcing single instance of cypress to workaround this problem

Some existing tickets about this problem:

@pieh pieh marked this pull request as ready for review August 17, 2020 08:29
Copy link
Contributor

@pvdz pvdz left a comment

Choose a reason for hiding this comment

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

lgtm

@pieh pieh merged commit ebf08ee into master Aug 21, 2020
@LekoArts LekoArts deleted the e2e-dev-pre-ds-chores branch November 9, 2020 08:28
pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
…ent data updates testing setup (gatsbyjs#26500)

* chore(e2e-dev-runtime): bump @testing-library/cypress

* chore(e2e-dev-runtime): scope fake-data source plugin data refreshes

* force single cypress version

ref: testing-library/cypress-testing-library#98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants