-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support e2e test - webdriverio #2975
Conversation
I would defer it because:
In reply to: 524431584 [](ancestors = 524431584) Refers to: vnext/e2e/package.json:33 in b478643. [](commit_id = b478643, deletion_comment = False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/azp run |
No pipelines are associated with this pull request. |
Hello @licanhua! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Fix #2135
This PR is using mocha + WebDriverIO.
Another option is using Jest+selenium-webdriver, which is described in selenium-appium.
Please refer to Examples of selenium-webdriver to see the difference of the two project.
Have problem to merge #2928 with master, so I create a new pullrequest.
This pullrequest use webdriverio other than selenium-webdriver.
Provides test infrasture for e2e testing.
Test infrasture requirements:
- wdio <-> testcase <> webdriverio lib <-> WinAppDriver <-> ReactUWPTestApp
test running: wdio
test libraries: webdriverio
test driver on windows: WinAppDriver
testapp: ReactUWPTestApp
- ReactUWPTestApp
Two level structure. Provides MainPage and ReactTestPage. MainPage is pure Xaml, and ReactTestPage loads RN page. TestInventory helps setup the relationship from the button in mainpage to what JS bundle would be loaded and what automationid would expose to test case.
![image](https://user-images.githubusercontent.com/6290692/63489248-716a2200-c466-11e9-8a8e-8027eeb88717.png)
![image](https://user-images.githubusercontent.com/6290692/63489268-7c24b700-c466-11e9-8eaf-81f50339c247.png)
- e2e test organization
A. RN testapp like TextInputTestPage is in ReactUWPTestApp
B. js test library and pageobjects is in e2e/testlib
C. testcases are in e2e/tests
Recommendations to write tests
which will be finally bundled and launched by the testapp
54 Add/Update test case in e2e/tests.
How to run the test case:
document update and test pipeline setup is not in the scope.
Microsoft Reviewers: Open in CodeFlow