diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml
index 602c300dd28..f0127be808d 100644
--- a/.github/actions/test/action.yml
+++ b/.github/actions/test/action.yml
@@ -125,7 +125,7 @@ runs:
         if [[ '${{ runner.os }}' == 'linux' ]]; then
           # linux doesn't support e2e tests yet
           npm run wdio:unit
-        else if [[ '${{ runner.os }}' == 'Windows' ]]; then
+        elif [[ '${{ runner.os }}' == 'Windows' ]]; then
           # download the test source
           wget -q -O ${{ env.TEST_SOURCE_FILE }} ${{ env.TEST_SOURCE_URL }}
           # E2E tests can't input the administrative password, therefore the tests need to run as root