removing playwright if statement

This commit is contained in:
adam.zakrzewski
2023-06-19 15:01:33 +02:00
parent 672dbe4e39
commit 651070040b

View File

@@ -45,15 +45,11 @@ runs:
npm start > /dev/null &\ npm start > /dev/null &\
if [ ${{ inputs.test-runner }} == "playwright" ]; then echo "Running protractor tests with options ${{ inputs.options }}"
echo "Running playwright tests with options ${{ inputs.options }}" echo "./node_modules/.bin/protractor \"./protractor.conf.js\" ${{ inputs.options }} || exit 1"
sleep 90 ./node_modules/.bin/protractor "./protractor.conf.js" ${{ inputs.options }} $E2E_PROTRACTOR_OPTS || exit 1
npx nx run ${{ inputs.options }}-e2e:e2e sleep 90
else npx nx run ${{ inputs.options }}-e2e:e2e
echo "Running protractor tests with options ${{ inputs.options }}"
echo "./node_modules/.bin/protractor \"./protractor.conf.js\" ${{ inputs.options }} || exit 1"
./node_modules/.bin/protractor "./protractor.conf.js" ${{ inputs.options }} $E2E_PROTRACTOR_OPTS || exit 1
fi
- name: Upload E2Es results - name: Upload E2Es results
if: ${{ always() }} if: ${{ always() }}