diff --git a/__e2e__/flows/onboarding-avatar-creator.yml b/__e2e__/flows/onboarding-avatar-creator.yml index 6412b0d4eb..2204abb9df 100644 --- a/__e2e__/flows/onboarding-avatar-creator.yml +++ b/__e2e__/flows/onboarding-avatar-creator.yml @@ -30,13 +30,14 @@ appId: xyz.blueskyweb.app - assertVisible: "What are your interests?" - tapOn: id: "onboardingContinue" -- tapOn: - id: "onboardingContinue" -- tapOn: - id: "onboardingContinue" -- tapOn: - id: "onboardingContinue" -- assertVisible: "You're ready to go!" +- assertVisible: "Suggested for you" +# mock server doesn't have suggestions api +- tapOn: "Skip to next step" +- swipe: + direction: "LEFT" +- swipe: + direction: "LEFT" +- assertVisible: "Complete onboarding and start using your account" - tapOn: id: "onboardingFinish" - tapOn: diff --git a/__e2e__/flows/onboarding.yml b/__e2e__/flows/onboarding.yml index 518a2edd8c..a5f4217455 100644 --- a/__e2e__/flows/onboarding.yml +++ b/__e2e__/flows/onboarding.yml @@ -16,7 +16,8 @@ appId: xyz.blueskyweb.app id: "e2eStartOnboarding" - tapOn: "Select an avatar" - waitForAnimationToEnd -- assertVisible: "Search your library…" +- assertVisible: "Photos" +- assertVisible: "Collections" - tapOn: point: "50%,22%" - waitForAnimationToEnd @@ -27,7 +28,14 @@ appId: xyz.blueskyweb.app - assertVisible: "What are your interests?" - tapOn: id: "onboardingContinue" -- assertVisible: "You're ready to go!" +- assertVisible: "Suggested for you" +# mock server doesn't have suggestions api +- tapOn: "Skip to next step" +- swipe: + direction: "LEFT" +- swipe: + direction: "LEFT" +- assertVisible: "Complete onboarding and start using your account" - tapOn: id: "onboardingFinish" - tapOn: diff --git a/__e2e__/setupApp.yml b/__e2e__/setupApp.yml index 728d548fb3..00f53c526e 100644 --- a/__e2e__/setupApp.yml +++ b/__e2e__/setupApp.yml @@ -1,18 +1,18 @@ appId: xyz.blueskyweb.app --- - launchApp: - appId: "xyz.blueskyweb.app" - clearState: true + appId: "xyz.blueskyweb.app" + clearState: true - waitForAnimationToEnd - tapOn: "http://localhost:8081" - waitForAnimationToEnd - extendedWaitUntil: visible: "Continue" - swipe: - from: "Bluesky" - direction: DOWN + from: "Bluesky" + direction: DOWN + duration: 100 - tapOn: - id: e2eProxyHeaderInput + id: e2eProxyHeaderInput - inputText: ${output.result} - pressKey: Enter -- hideKeyboard diff --git a/docs/build.md b/docs/build.md index f84e76f806..fe95bb989a 100644 --- a/docs/build.md +++ b/docs/build.md @@ -75,7 +75,7 @@ After you do `yarn ios` and `yarn android` once, you can later just run `yarn we - Start in various console tabs: - `yarn e2e:mock-server` - - `yarn e2e:metro` + - `yarn e2e:start` - Run once: `yarn e2e:build` - Each test run: `yarn e2e:run` diff --git a/docs/testing.md b/docs/testing.md index ae0a424fbd..bba63e44c7 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -12,7 +12,7 @@ values. ### Running Maestro tests - In one tab, run `yarn e2e:mock-server` -- In a second tab, run `yarn e2e:metro` +- In a second tab, run `yarn e2e:build` - In a third tab, run `yarn e2e:run` ## Using Flashlight for Performance Testing diff --git a/package.json b/package.json index c6f7ad43ea..938b7da721 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,9 @@ "lint-native:fix": "swiftlint --fix ./modules && ktlint --format ./modules", "typecheck": "tsc --project ./tsconfig.check.json", "e2e:mock-server": "NODE_ENV=development ./jest/dev-infra/with-test-redis-and-db.sh ts-node --project tsconfig.e2e.json __e2e__/mock-server.ts", - "e2e:metro": "EXPO_PUBLIC_ENV=e2e NODE_ENV=test RN_SRC_EXT=e2e.ts,e2e.tsx expo run:ios", - "e2e:metro-android": "EXPO_PUBLIC_ENV=e2e NODE_ENV=test RN_SRC_EXT=e2e.ts,e2e.tsx expo run:android", + "e2e:build": "EXPO_PUBLIC_ENV=e2e NODE_ENV=test RN_SRC_EXT=e2e.ts,e2e.tsx expo run:ios", + "e2e:build-android": "EXPO_PUBLIC_ENV=e2e NODE_ENV=test RN_SRC_EXT=e2e.ts,e2e.tsx expo run:android", + "e2e:start": "EXPO_PUBLIC_ENV=e2e NODE_ENV=test RN_SRC_EXT=e2e.ts,e2e.tsx expo start", "e2e:run": "maestro test __e2e__", "perf:test": "NODE_ENV=test maestro test", "perf:test:run": "NODE_ENV=test maestro test __e2e__/perf-test.yml", diff --git a/src/screens/Onboarding/StepFinished/index.tsx b/src/screens/Onboarding/StepFinished/index.tsx index d2ccb9db91..c1cb3f02f0 100644 --- a/src/screens/Onboarding/StepFinished/index.tsx +++ b/src/screens/Onboarding/StepFinished/index.tsx @@ -330,6 +330,7 @@ function ValueProposition({ )}