Skip to content

Conversation

@prushforth
Copy link
Member

@prushforth prushforth commented Aug 5, 2022

@ben-lu-uw @bershanskiy I'm going to chip away at this problem by migrating tests one by one to playwright-test. Please let me know if you see improvements in code / code style that I may have overlooked due to cargo cult copying. Thank you 🙏

Closes #608

First pass at migrating away from jest.  Tests to be migrated one
by one, in a draft PR, just like the ants.

Add package.json, package-lock.json, jest.config.js,
jest-playwright.config.js to commit, which were missed in last
commit for some reason

Migrate announceMovement.test.js to playwright test

Migrate axisInferring.test.js to playwright test

Migrate drag.test.js to playwright test, restore e2e/data directory

Migrate featureIndexOverlay.test.js to playwright test

Migrate featureLinks.test.js to playwright test

Migrate fullscreenControl.test.js to playwright test

Migrate history.test.js to playwright test

Migrate layerAttributes.test.js to playwright test.  There was a
flaky path that would not respond to hover.

Migrate layerContextMenu.test.js to playwright test.  Playwright
no longer would automatically right click a disabled layer.  Added
{ button: "right", force: true } option, seems to work now.

Migrate linkTypes.test.js to playwright test.

Migrate mapElement.test.js, mapContextMenu.test.js to playwright test.

Migrate mapSpan.test.js to playwright test.  Had to add a timeout

Migrate metaDefault.test.js to playwright test.  Had to add a timeout

Migrate mismatchedLayerWithMap.test.js to playwright test. Unsure
how to goto a blank page that is editable, so I had to create
empty.html and go to that.  Had to add a
{ button: "right", force: true } to get the right button click to
work again.

Migrate missingMetaParameters.test.js to playwright test.

Work in progress on popupNavigation.test.js

Migrate popupTabNavigation.test.js to playwright test

Migrate projectionChange.test.js to playwright test
Remove path from devDependencies (what was it for?)

Migrate reticle.test.js to playwright test
Migrate styleParsing.test.js to playwright test
Migrate scroll.test.js to playwright test

Migrate tabFeatureNavigation.test.js to playwright test

Migrate tms.test.js to playwright test

Migrate zoomChangeProjection.test.js to playwright test
Migrate clientTemplatedTileLayer.test.js to playwright test
Migrate mapMLLayerControl.test.js to playwright test
Migrate multipleExtents.test.js to playwright test
Migrate multipleQueryExtents.test.js to playwright test
Migrate queryLink.test.js to playwright test

Split multipleQueryExtents.test.js into multipleHeterogenousQueryExtents
to improve parallelism

Try to improve speed of drag.test.js without breaking it

Migrate customTCRS.test.js to playwright test
Migrate mapml-viewer.test.js to playwright test
Migrate viewerContextMenu.test.js to playwright test

Restore jest for unit tests, add jest execution to gh action
Tweak multipleHeterogeneousQueryExtents.test.js, which is still a bit
fragile

Restore more of jest for unit tests, fix the ci-testing invocation of it.
Migrate layers/mapMLFeatures.test.js, layers/mapMLStaticTileLayer.test.js,
layers/mapMLTemplatedFeatures.test.js, layers/mapMLTemplatedFeaturesFilter.test.js,
layers/mapMLTemplatedImageLayer.test.js, layers/mapMLTemplatedTileLayer.test.js
to playwright test, along shared tests layers/general/*.js, which are
imported into each of the above tests and executed as parameterized
tests.

Migrate step/*.test.js to playwright test
Add package-lock.json in the vain hope it will quit changing
@prushforth prushforth self-assigned this Aug 8, 2022
@prushforth prushforth changed the title Upgrade playwright, (temporarily) remove jest*, upgrade grunt html Upgrade playwright, grunt-html Aug 8, 2022
@prushforth prushforth marked this pull request as ready for review August 8, 2022 21:11
@prushforth prushforth merged commit c535209 into Maps4HTML:main Aug 8, 2022
@prushforth prushforth deleted the upgrade-playwright branch August 8, 2022 21:12
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.

Migrate from jest-playwright to Playwright test-runner

1 participant