Skip to content

Commit 41aa324

Browse files
authored
chore: eval wdio.config.js to get simulator name (#1512)
1 parent b9d036c commit 41aa324

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/test-matrix.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ scripts_dir=$(cd -P "$(dirname "$0")" && pwd)
1010

1111
function build_and_run {
1212
if [[ $1 == "ios" ]]; then
13-
${PACKAGE_MANAGER} $1 --simulator 'iPhone 14' --no-packager
13+
local simulator=$(TEST_ARGS=ios node -e 'console.log(require("./test/specs/wdio.config")["capabilities"]["appium:deviceName"]);')
14+
${PACKAGE_MANAGER} $1 --simulator "${simulator}" --no-packager
1415
else
1516
${PACKAGE_MANAGER} $1 --no-packager
1617
fi

0 commit comments

Comments
 (0)