-
Notifications
You must be signed in to change notification settings - Fork 237
test: [SDK-4347] add Appium E2E test support to Flutter demo app #1136
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
fadi-george
merged 31 commits into
main
from
fadi/sdk-4347-use-appium-tests-for-flutter
Apr 14, 2026
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
c26185c
chore(demo): use env vars for OneSignal app id
fadi-george dc0af72
ci: add e2e tests and accessibility labels
fadi-george c411667
ci: update E2E tests with new secrets and accessibility
fadi-george 2d57f81
ci(e2e): migrate to shared Appium workflow
fadi-george 8cc894b
refactor(demo): remove log level colors from UI
fadi-george b099447
test(demo): add semantic identifier to main scroll view
fadi-george 0941cb8
feat(demo): improve info icon accessibility in section cards
fadi-george a90a5ce
test(demo): add section keys for Appium testing
fadi-george e6b9c62
refactor(demo): replace custom Row with SwitchListTile
fadi-george b4710c7
test(demo): add semantics and improve button labels
fadi-george bbdf209
refactor(demo): remove tag parameter from LogManager
fadi-george 9aee160
test(demo): add semantics to delete button in PairItem
fadi-george f2be61a
test(demo): add semantics to SectionCard widget
fadi-george 65981b5
test(demo): add semantics to PairItem text widgets
fadi-george f9daaa9
test(demo): add sectionKey to improve semantic identifiers
fadi-george b81921b
test(demo): add semantics to remove dialog checkboxes
fadi-george 0bb596f
test(demo): add semantics and rename sections for appium
fadi-george 166ee42
test(demo): add semantic labels to dialog inputs
fadi-george e88c07b
test(demo): clarify clear button label for triggers
fadi-george 7be7dfc
refactor(demo): replace LogManager with debugPrint
fadi-george 6749f3f
test(demo): add location shared check button
fadi-george 2470653
test(demo): enhance UI elements for appium testing
fadi-george c212619
test(demo): add snackbar feedback and update theme
fadi-george af4f183
test(demo): fix tooltip key for custom events
fadi-george 7e789a2
style(demo): update app bar to use primary color
fadi-george c069ed8
test(demo): rename "activity" to "screen" in UI text
fadi-george 02495c2
Potential fix for pull request finding 'CodeQL / Workflow does not co…
fadi-george b7fd679
Potential fix for pull request finding 'CodeQL / Workflow does not co…
fadi-george 9f7b8ad
ci(e2e): add E2E_MODE env var and update test setup
fadi-george 0938d10
test(e2e): improve semantic IDs and app config
fadi-george 6d5ea78
test(demo): add sectionKey props to CollapsibleList widgets
fadi-george 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,124 @@ | ||
| name: E2E Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - rel/** | ||
| workflow_dispatch: | ||
| inputs: | ||
| platform: | ||
| description: 'Platform to test' | ||
| required: true | ||
| default: 'android' | ||
| type: choice | ||
| options: | ||
| - android | ||
| - ios | ||
| - both | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build-android: | ||
| if: >- | ||
| github.event_name == 'push' || | ||
| github.event.inputs.platform == 'android' || | ||
| github.event.inputs.platform == 'both' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Set up Flutter | ||
| uses: ./.github/actions/setup-flutter | ||
|
|
||
| - name: Set up Java | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: temurin | ||
| java-version: '17' | ||
|
|
||
| - name: Create demo .env | ||
| working-directory: examples/demo | ||
| run: | | ||
| echo "ONESIGNAL_APP_ID=${{ vars.APPIUM_ONESIGNAL_APP_ID }}" > .env | ||
| echo "ONESIGNAL_API_KEY=${{ secrets.APPIUM_ONESIGNAL_API_KEY }}" >> .env | ||
|
fadi-george marked this conversation as resolved.
|
||
| echo "E2E_MODE=true" >> .env | ||
|
|
||
| - name: Build release APK | ||
| working-directory: examples/demo | ||
| run: flutter build apk --release | ||
|
|
||
| - name: Upload APK | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: demo-apk | ||
| path: examples/demo/build/app/outputs/flutter-apk/app-release.apk | ||
| retention-days: 1 | ||
|
|
||
| build-ios: | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| if: >- | ||
| github.event_name == 'push' || | ||
| github.event.inputs.platform == 'ios' || | ||
|
claude[bot] marked this conversation as resolved.
|
||
| github.event.inputs.platform == 'both' | ||
| runs-on: macos-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Set up Flutter | ||
| uses: ./.github/actions/setup-flutter | ||
|
|
||
| - name: Create demo .env | ||
| working-directory: examples/demo | ||
| run: | | ||
| echo "ONESIGNAL_APP_ID=${{ vars.APPIUM_ONESIGNAL_APP_ID }}" > .env | ||
| echo "ONESIGNAL_API_KEY=${{ secrets.APPIUM_ONESIGNAL_API_KEY }}" >> .env | ||
| echo "E2E_MODE=true" >> .env | ||
|
|
||
| - name: Install CocoaPods dependencies | ||
| working-directory: examples/demo/ios | ||
| run: pod install | ||
|
|
||
| - name: Build iOS app | ||
| working-directory: examples/demo | ||
| run: | | ||
| flutter build ios --release --no-codesign | ||
| cd build/ios/iphoneos | ||
| mkdir Payload | ||
| cp -r Runner.app Payload/ | ||
| zip -r Runner.ipa Payload | ||
|
|
||
| - name: Upload IPA | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: demo-ipa | ||
| path: examples/demo/build/ios/iphoneos/Runner.ipa | ||
| retention-days: 1 | ||
|
|
||
| e2e-android: | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| needs: build-android | ||
| uses: OneSignal/sdk-shared/.github/workflows/appium-e2e.yml@main | ||
| secrets: inherit | ||
| with: | ||
| platform: android | ||
| app-artifact: demo-apk | ||
| app-filename: app-release.apk | ||
| sdk-type: flutter | ||
| build-name: flutter-android-${{ github.ref_name }}-${{ github.run_number }} | ||
|
|
||
| e2e-ios: | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| needs: build-ios | ||
| uses: OneSignal/sdk-shared/.github/workflows/appium-e2e.yml@main | ||
| secrets: inherit | ||
| with: | ||
| platform: ios | ||
| app-artifact: demo-ipa | ||
| app-filename: Runner.ipa | ||
| sdk-type: flutter | ||
| build-name: flutter-ios-${{ github.ref_name }}-${{ github.run_number }} | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
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 |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| ONESIGNAL_API_KEY=your_rest_api_key | ||
| ONESIGNAL_APP_ID=your-onesignal-app-id # default app id: 77e32082-ea27-42e3-a898-c72e141824ef if empty | ||
| ONESIGNAL_API_KEY=your-onesignal-api-key |
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
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.