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

Tracking general cypress test failures #668

Open
jywarren opened this issue Jun 7, 2022 · 5 comments
Open

Tracking general cypress test failures #668

jywarren opened this issue Jun 7, 2022 · 5 comments

Comments

@jywarren
Copy link
Member

jywarren commented Jun 7, 2022

Some recent PRs that should be unrelated to tests like http-server are failing cypress tests: https://github.com/publiclab/leaflet-environmental-layers/runs/6688364021?check_suite_focus=true

no test runs on recent PRs have succeeded; some have limited layer-specific failures like #667

while others like the http-server one above are failing ALL cypress tests with the error:

     Error: Trying to stub property 'requestData' of undefined

I'm re-running #662 just to see if it's intermittent.

Those with limited layer-specific failures include:

The tests failing are:

  • aqicn.spec.js
  • fractrackerMobile.spec.js
  • purpleAirMarker
@jywarren
Copy link
Member Author

jywarren commented Jun 7, 2022

PurpleAir

Confirmed purpleAirMarker layer shows a 302 error on the demo, message at https://purpleair-over-quota-2.appspot.com/

jquery.min.js:2          GET https://www.purpleair.com/data.json?fetchData=true&minimize=true&sensorsActive2=10080&orderby=L&nwlat=39.2173592639196&selat=38.47186888757717&nwlng=-77.65136718750001&selng=-76.24374389648439 net::ERR_FAILED 302

Should look at the PurpleAir API again to see what's up.

AQICN

The AQICN layer looks fine though - markers appear normally. But, the error had been:

Aqicn layer
       has circle markers in minimal mode:
AssertionError: Timed out retrying: Too many elements found. Found '1143', expected '2'.

Plus it failing to find a marker labeled "Spain".

It searches in this region: https://publiclab.github.io/leaflet-environmental-layers/example/index.html#lat=51.15&lon=13.45&zoom=4&layers=Standard

FracTracker

The FracTracker Mobile layer is a spreadsheet layer: https://spreadsheets.google.com/feeds/list/19j4AQmjWuELuzn1GIn0TFRcK42HjdHF_fsIa8jtM1yw/o4rmdye/public/values?alt=json and the Google Sheets spreadsheet API v3 was deprecated -- see:

@jywarren
Copy link
Member Author

jywarren commented Jun 7, 2022

On the AQICN front, it's supposed to be checking data from this fixtures file, which we intercept via a spy: https://github.com/publiclab/leaflet-environmental-layers/blob/main/cypress/fixtures/aqicn.json

For whatever reason, the test is no longer properly finding the fixture data...?

https://github.com/publiclab/leaflet-environmental-layers/blob/main/cypress/integration/aqicn.spec.js

@jywarren
Copy link
Member Author

jywarren commented Jun 7, 2022

Cypress has deprecated cy.server() and cy.route() in v6, but we're on v4... https://docs.cypress.io/api/commands/intercept https://docs.cypress.io/api/commands/server

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

No branches or pull requests

1 participant