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

Use driver pattern for e2e tests #829

Merged
merged 1 commit into from
Dec 17, 2023
Merged

Use driver pattern for e2e tests #829

merged 1 commit into from
Dec 17, 2023

Conversation

HarelM
Copy link
Collaborator

@HarelM HarelM commented Dec 14, 2023

I've moved all the logic relevant to WBIO into a single file in order to be able to replace it.
I have tried to upgrade WDIO in order to use the latest version and it got stuck on my computer.
Furthermore, I was not able to run it locally which made this whole cycle very long.
After this will be merged I will replace WDIO with cypress.
This doesn't change anything, only moves some code in the tests to a single file, removes unneeded files and uses the driver pattern, which will later allow switching the underline WDIO with Cypress.

cc: @nyurik

* Initial commit

* Fix spec

* Move driver

* Fix config location

* Fix helper location

* More usage of driver

* Add click

* Fix click

* Migrate more tests

* Add setValue to driver

* Move more code to driver

* add isExisting to driver

* Change modal tests to use driver

* Fix tests

* Fix test

* Fix invalid alert wait

* Fix missing wd

* Fix tests

* Fix missing fs

* Fix test

* Fix path

* Move screenshort to driver

* Migrate keyboard

* Migrate skiplinks to driver

* Fix tests

* Try fix skip-links

* add config

* Add helper

* Fix driver?

* remove helper

* remove wd-helper

* Remove redundant file

* Remove webdriver extsions
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 73f7798:

Sandbox Source
maputnik Configuration

@HarelM HarelM changed the title Use driver pattern for e2e tests (#2) Use driver pattern for e2e tests Dec 15, 2023
Copy link
Member

@nyurik nyurik left a comment

Choose a reason for hiding this comment

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

this looks good to me. Minor linting aside (i'm surprised it doesn't get caught by CI), seems like its ready to merge. Let me know if you want to add any more changes to this, and should be ok

@HarelM
Copy link
Collaborator Author

HarelM commented Dec 17, 2023

I'll take care of linting later on.
Please merge.

@nyurik nyurik merged commit 18f45e9 into maplibre:master Dec 17, 2023
8 checks passed
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.

2 participants