Repository navigation
ci(e2e): Replace maestro with e2e in the expo native integration tests #10032
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
b03de03
ci(e2e): replace maestro with tester.army e2e in the expo native e2e
wobsoriano dc38e07
ci(e2e): install the expo native e2e runner at the workspace root
wobsoriano 04c7888
ci(e2e): wait for the identifier field and skip temp video files on u…
wobsoriano 48db6cd
ci(e2e): handle overlapping screens and compose rows on the api 34 em…
wobsoriano 61f7f93
ci(e2e): TEMP bust caches to measure a cold run
wobsoriano 0db4c37
Revert "ci(e2e): TEMP bust caches to measure a cold run"
wobsoriano 0f64d1d
ci(e2e): create a user per test and retry taps dropped during ios tra…
wobsoriano 8082fe1
ci(e2e): drop the runner scripts and the second android emulator
wobsoriano 878dfa5
ci(e2e): retype the email code when the screen does not advance
wobsoriano 0eac98c
ci(e2e): type the email code once again
wobsoriano 091c2a0
ci(e2e): split the expo native helpers into page objects
wobsoriano e24d05a
ci(e2e): flatten the expo native test folder and split out user creation
wobsoriano 43fe8be
ci(e2e): group the expo native tests by component
wobsoriano 85ff9d2
ci(e2e): TEMP bust caches to measure a cold run
wobsoriano 1d82241
Revert "ci(e2e): TEMP bust caches to measure a cold run"
wobsoriano bc14841
Merge remote-tracking branch 'origin/main' into rob/maestro-to-tester…
wobsoriano 9815c29
ci(e2e): port the biometric availability flow
wobsoriano 784727f
ci(e2e): name the expo native tests after the bridge behaviour they c…
wobsoriano 20a74dd
ci(e2e): TEMP bust caches to measure a cold run
wobsoriano 9d8c102
Revert "ci(e2e): TEMP bust caches to measure a cold run"
wobsoriano 07467ae
ci(e2e): create test users that skip the new-device email code
wobsoriano 334076b
ci(e2e): drop the email code step from the native sign-in helper
wobsoriano d4a4ab3
ci(e2e): TEMP bust caches to measure a cold run
wobsoriano ae62846
Revert "ci(e2e): TEMP bust caches to measure a cold run"
wobsoriano 16dee05
ci(e2e): type the password with key presses and retry field focus on …
wobsoriano 50af268
ci(e2e): TEMP bust caches to measure a cold run
wobsoriano f6b7e6e
Revert "ci(e2e): TEMP bust caches to measure a cold run"
wobsoriano 309c972
ci(e2e): give the native sign-in 45 seconds to reach the JS SDK
wobsoriano fb9643c
ci(e2e): address review on test user cleanup, path filter and the det…
wobsoriano d505001
ci(e2e): only delete leftover users by username prefix and report fai…
wobsoriano 3bd87e2
Merge branch 'main' into rob/maestro-to-tester-army-e2e
wobsoriano 0e92cc2
ci(e2e): retry leftover user deletion and warn when it fails
wobsoriano 4835e4b
Merge branch 'main' into rob/maestro-to-tester-army-e2e
wobsoriano db7c31b
ci(e2e): stop recording retry videos in the expo native e2e
wobsoriano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| --- | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import { mobile } from '@e2e-dev/mobile'; | ||
|
mikepitre marked this conversation as resolved.
|
||
| import type { E2EConfig } from 'e2e'; | ||
|
|
||
| const app = { bundleId: 'com.clerk.exponativebuildfixture' }; | ||
| const devices = process.env.CLERK_TEST_DEVICES?.split(','); | ||
|
|
||
| export default { | ||
| tests: 'tests/expo-native/*.e2e.ts', | ||
| targets: [ | ||
| { name: 'ios', engine: mobile({ platform: 'ios', device: devices }), app }, | ||
| { name: 'android', engine: mobile({ platform: 'android', device: devices }), app }, | ||
| ], | ||
| workers: devices?.length ?? 1, | ||
| timeout: 300_000, | ||
| } satisfies E2EConfig; | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { expect } from 'e2e'; | ||
|
|
||
| import { testWithUser as test } from './fixtures.ts'; | ||
|
|
||
| test.describe('@clerk/expo <AuthView />', () => { | ||
| test.beforeEach(({ po }) => po.app.reset()); | ||
|
|
||
| test('rehosts the React logo and still signs in after the host view is detached and reattached', async ({ | ||
| po, | ||
| screen, | ||
| user, | ||
| }) => { | ||
| await po.authView.open(); | ||
| await expect(screen.getByText('E2E Custom Logo')).toBeVisible({ timeout: 10_000 }); | ||
| await po.authView.dismiss(); | ||
| await po.authView.open(); | ||
| await expect(screen.getByText('E2E Custom Logo')).toBeVisible({ timeout: 15_000 }); | ||
| await po.authView.signIn(user); | ||
| await po.app.expectSignedIn(); | ||
| await po.app.signOut(); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import { test as base } from '@e2e-dev/mobile'; | ||
|
|
||
| import type { PageObjects } from './page-objects/index.ts'; | ||
| import { createPageObjects } from './page-objects/index.ts'; | ||
| import type { TestUser } from './users.ts'; | ||
| import { createTestUser, deleteTestUser } from './users.ts'; | ||
|
|
||
| export const test = base.extend<{ po: PageObjects }>({ | ||
| po: async (fixtures, provide) => { | ||
| await provide(createPageObjects(fixtures)); | ||
| }, | ||
| }); | ||
|
|
||
| export const testWithUser = test.extend<{ user: TestUser }>({ | ||
| user: async (_fixtures, provide) => { | ||
| const user = await createTestUser(); | ||
| await provide(user); | ||
| await deleteTestUser(user); | ||
| }, | ||
| }); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.