Skip to content

Commit

Permalink
Make the app adjustment work again on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Lassen committed Nov 22, 2024
1 parent 650d905 commit cf0e822
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions commands/host/1x-playwright-host-install
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ else
ddev_hostname=`ddev status -j | ddev exec jq -r .raw.hostnames[0]`
# @todo: better templating of this, e.g. we normally *don't* test in parallel in 4 browsers ...
# Make this work on MacOS and Linux >.<
cd $DDEV_APPROOT
if [[ $OSTYPE == darwin* ]]; then
pushd test/playwright && sed -i '' "s@// baseURL: 'http://127.0.0.1:3000',@baseURL: 'https://${ddev_hostname}',\n ignoreHTTPSErrors: true,@g" playwright.config.ts && popd
pushd $DDEV_APPROOT/test/playwright && sed -i '' "s@// baseURL: 'http://127.0.0.1:3000',@baseURL: 'https://${ddev_hostname}',\n ignoreHTTPSErrors: true,@g" playwright.config.ts && popd
else
pushd test/playwright && sed -i '' "s@// baseURL: 'http://127.0.0.1:3000',@baseURL: 'https://${ddev_hostname}',\n ignoreHTTPSErrors: true,@g" playwright.config.ts && popd
pushd $DDEV_APPROOT/test/playwright && sed -i "s@// baseURL: 'http://127.0.0.1:3000',@baseURL: 'https://${ddev_hostname}',\n ignoreHTTPSErrors: true,@g" playwright.config.ts && popd
fi
fi

Expand Down
5 changes: 2 additions & 3 deletions commands/host/1x-playwright-install
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ else
ddev_hostname=`ddev status -j | ddev exec jq -r .raw.hostnames[0]`
# @todo: better templating of this, e.g. we normally *don't* test in parallel in 4 browsers ...
# Make this work on MacOS and Linux >.<
cd $DDEV_APPROOT
if [[ $OSTYPE == darwin* ]]; then
pushd test/playwright && sed -i '' "s@// baseURL: 'http://127.0.0.1:3000',@baseURL: 'https://${ddev_hostname}',\n ignoreHTTPSErrors: true,@g" playwright.config.ts && popd
pushd $DDEV_APPROOT/test/playwright && sed -i '' "s@// baseURL: 'http://127.0.0.1:3000',@baseURL: 'https://${ddev_hostname}',\n ignoreHTTPSErrors: true,@g" playwright.config.ts && popd
else
pushd test/playwright && sed -i '' "s@// baseURL: 'http://127.0.0.1:3000',@baseURL: 'https://${ddev_hostname}',\n ignoreHTTPSErrors: true,@g" playwright.config.ts && popd
pushd $DDEV_APPROOT/test/playwright && sed -i "s@// baseURL: 'http://127.0.0.1:3000',@baseURL: 'https://${ddev_hostname}',\n ignoreHTTPSErrors: true,@g" playwright.config.ts && popd
fi

fi
Expand Down

0 comments on commit cf0e822

Please sign in to comment.