Currently, I am in the process of testing a react native application with a specific test suite and test cases.
The test case files I am working with are:
- login.ts
- doActionAfterLogin_A.ts
Test Suite: [login.ts, doActionAfterLogin_A.ts]
Issue at Hand: While working on login.ts, I need to ensure that the desired capability appium:noReset is set to false in order to test the flow of a fresh installation. However, for doActionAfterLogin_A.ts, I require appium:noReset to be set to true to skip the fresh installation flow.
The dilemma arises when Appium closes the browser/driver between test cases in the suite and relaunches with the same desired capabilities, resulting in appium:noReset always being false. Is there a way to:
- Prevent the browser/driver from closing between test cases
- Modify the desired capabilities between test cases
- Re-evaluate the structure of my test cases
Additional Information: Utilizing Appium, Webdriverio, Mocha, and Typescript
Thank you for your assistance!