Skip to content

Commit

Permalink
test fix and e2e builds fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pauliusguzas committed Nov 29, 2024
1 parent 4d6e8b0 commit dd5d205
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
18 changes: 9 additions & 9 deletions packages/app-harness/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
},
"scripts": {
"bootstrap": "cd ../.. && yarn bootstrap",
"build:android-test": "npx rnv build -p android -s test -c harness --packageManager yarn --ci --yes -r",
"build:androidtv-test": "npx rnv build -p androidtv -s test -c harness --packageManager yarn --ci --yes -r",
"build:ios-test": "npx rnv build -p ios -s test -c harness --packageManager yarn --ci --yes -r",
"build:macos-test": "npx rnv build -p macos -s test -c harness --packageManager yarn --ci --yes -r",
"build:tvos-test": "npx rnv build -p tvos -s test -c harness --packageManager yarn --ci --yes -r",
"build:android-test": "npx rnv build -p android -s test -c harness --packageManager yarn --ci -r",
"build:androidtv-test": "npx rnv build -p androidtv -s test -c harness --packageManager yarn --ci -r",
"build:ios-test": "npx rnv build -p ios -s test -c harness --packageManager yarn --ci -r",
"build:macos-test": "npx rnv build -p macos -s test -c harness --packageManager yarn --ci -r",
"build:tvos-test": "npx rnv build -p tvos -s test -c harness --packageManager yarn --ci -r",
"e2e:android": "APPIUM_HOME=./ PLATFORM=android JAVA_HOME=$(/usr/libexec/java_home) wdio wdio.conf.cjs",
"e2e:androidtv": "APPIUM_HOME=./ PLATFORM=androidtv JAVA_HOME=$(/usr/libexec/java_home) wdio wdio.conf.cjs",
"e2e:ios": "APPIUM_HOME=./ PLATFORM=ios wdio wdio.conf.cjs",
Expand All @@ -30,10 +30,10 @@
"report": "yarn report:generate && yarn report:open",
"report:generate": "npx allure generate --clean reporting/allure-results -o reporting/allure-report",
"report:open": "npx allure open reporting/allure-report",
"run:android-test": "npx rnv run -p android -s test -c harness --packageManager yarn --ci --yes -r",
"run:androidtv-test": "npx rnv run -p androidtv -s test -c harness --packageManager yarn --ci --yes -r",
"run:ios-test": "npx rnv run -p ios -s test -c harness --packageManager yarn --ci --yes -r",
"run:tvos-test": "npx rnv run -p tvos -s test -c harness --packageManager yarn --ci --yes -r",
"run:android-test": "npx rnv run -p android -s test -c harness --packageManager yarn --ci -r",
"run:androidtv-test": "npx rnv run -p androidtv -s test -c harness --packageManager yarn --ci -r",
"run:ios-test": "npx rnv run -p ios -s test -c harness --packageManager yarn --ci -r",
"run:tvos-test": "npx rnv run -p tvos -s test -c harness --packageManager yarn --ci -r",
"run:web-test": "npx rnv run -p web -s test -c harness --packageManager yarn --ci",
"start:web-test": "npx rnv start -p web -s test -c harness --packageManager yarn --ci",
"tsc": "tsc --noEmit --composite false",
Expand Down
4 changes: 2 additions & 2 deletions packages/app-harness/test/specs/e2e.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ describe('Test App Harness', () => {
await FlexnRunner.expectToBeDisplayedByText('OK');
} else if (process.env.PLATFORM === 'ios') {
await FlexnRunner.clickById('app-harness-home-cast-support-button');
await FlexnRunner.expectToBeDisplayedByText('Cast to');
await FlexnRunner.expectToBeDisplayedByText('No devices available');
} else {
await FlexnRunner.expectToHaveTextById('app-harness-home-cast-support-text', 'Not supported');
}
}
});
});
18 changes: 9 additions & 9 deletions packages/template-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
},
"scripts": {
"bootstrap": "cd ../.. && yarn bootstrap",
"build:android-test": "npx rnv build -p android -s test -c template --packageManager yarn --ci --yes -r",
"build:androidtv-test": "npx rnv build -p androidtv -s test -c template --packageManager yarn --ci --yes -r",
"build:ios-test": "npx rnv build -p ios -s test -c template --packageManager yarn --ci --yes -r",
"build:macos-test": "npx rnv build -p macos -s test -c template --packageManager yarn --ci --yes -r",
"build:tvos-test": "npx rnv build -p tvos -s test -c template --packageManager yarn --ci --yes -r",
"build:android-test": "npx rnv build -p android -s test -c template --packageManager yarn --ci -r",
"build:androidtv-test": "npx rnv build -p androidtv -s test -c template --packageManager yarn --ci -r",
"build:ios-test": "npx rnv build -p ios -s test -c template --packageManager yarn --ci -r",
"build:macos-test": "npx rnv build -p macos -s test -c template --packageManager yarn --ci -r",
"build:tvos-test": "npx rnv build -p tvos -s test -c template --packageManager yarn --ci -r",
"e2e:android": "APPIUM_HOME=./ PLATFORM=android JAVA_HOME=$(/usr/libexec/java_home) wdio wdio.conf.cjs",
"e2e:androidtv": "APPIUM_HOME=./ PLATFORM=androidtv JAVA_HOME=$(/usr/libexec/java_home) wdio wdio.conf.cjs",
"e2e:ios": "APPIUM_HOME=./ PLATFORM=ios wdio wdio.conf.cjs",
Expand All @@ -87,10 +87,10 @@
"report": "yarn report:generate && yarn report:open",
"report:generate": "npx allure generate --clean reporting/allure-results -o reporting/allure-report",
"report:open": "npx allure open reporting/allure-report",
"run:android-test": "npx rnv run -p android -s test -c template --packageManager yarn --ci --yes -r",
"run:androidtv-test": "npx rnv run -p androidtv -s test -c template --packageManager yarn --ci --yes -r",
"run:ios-test": "npx rnv run -p ios -s test -c template --packageManager yarn --ci --yes -r",
"run:tvos-test": "npx rnv run -p tvos -s test -c template --packageManager yarn --ci --yes -r",
"run:android-test": "npx rnv run -p android -s test -c template --packageManager yarn --ci -r",
"run:androidtv-test": "npx rnv run -p androidtv -s test -c template --packageManager yarn --ci -r",
"run:ios-test": "npx rnv run -p ios -s test -c template --packageManager yarn --ci -r",
"run:tvos-test": "npx rnv run -p tvos -s test -c template --packageManager yarn --ci -r",
"run:web-test": "npx rnv run -p web -s test -c template --packageManager yarn --ci",
"start:web-test": "npx rnv start -p web -s test -c template --packageManager yarn --ci",
"tsc": "tsc --noEmit --composite false",
Expand Down

0 comments on commit dd5d205

Please sign in to comment.