Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflow-scripts/maestro-android.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ async function executeFlowInFolder(flowFolder) {
const files = fs.readdirSync(flowFolder);
for (const file of files) {
const filePath = `${flowFolder}/${file}`;

if (IS_DEBUG) {
const file = fs.readFileSync(filePath, 'utf8');
file.includes('- exclude-from-debug');
continue;
}

if (fs.lstatSync(filePath).isDirectory()) {
await executeFlowInFolder(filePath);
} else {
Expand Down
3 changes: 2 additions & 1 deletion .github/workflow-scripts/maestro-ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ function executeTestsWithRetries(
const recProcess = startVideoRecording(jsengine, currentAttempt);
try {
const timeout = 1000 * 60 * 10; // 10 minutes
const command = `$HOME/.maestro/bin/maestro --udid="${udid}" test "${maestroFlow}" --format junit -e APP_ID="${appId}"`;
const excludeTagsFlag = IS_DEBUG ? '--exclude-tags=exclude-from-debug' : '';
const command = `$HOME/.maestro/bin/maestro --udid="${udid}" test "${maestroFlow}" ${excludeTagsFlag} --format junit -e APP_ID="${appId}"`;
console.log(command);
childProcess.execSync(`MAESTRO_DRIVER_STARTUP_TIMEOUT=1500000 ${command}`, {
stdio: 'inherit',
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ jobs:
flavor: ${{ matrix.flavor }}

test_e2e_ios_rntester:
if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }}
# Uncomment before landing
#if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }}
runs-on: macos-14-large
needs:
[test_ios_rntester]
Expand Down Expand Up @@ -439,11 +440,12 @@ jobs:
uses: ./.github/actions/build-android
with:
release-type: ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
run-e2e-tests: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }}
run-e2e-tests: true # ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }}
gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}

test_e2e_android_rntester:
if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }}
# Uncomment before landing
# if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }}
runs-on: 4-core-ubuntu
needs: [build_android]
strategy:
Expand Down
4 changes: 3 additions & 1 deletion packages/rn-tester/.maestro/legacy-native-module.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp
tags:
- exclude-from-debug # when running in debug mode, the app is showing a logbox which makes the API tab not tappable
---
- launchApp
- assertVisible:
Expand All @@ -12,7 +14,7 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebo
speed: 40
- tapOn:
id: "Legacy Native Module"
- tapOn:
- tapOn:
text: "voidFunc"
- assertVisible:
id: "voidFunc-result"
Expand Down
Loading