test: Fix gsheet tests (#27146)
## Description - Fix gsheet tests - Fix workflows to not upload the result file in case of success #### Type of change - spec file changes - Workflow file changes ## Testing > #### How Has This Been Tested? - [x] Cypress ## Checklist: #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [ ] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
This commit is contained in:
parent
1d15570298
commit
5312ee11f3
4
.github/workflows/ci-test-custom-script.yml
vendored
4
.github/workflows/ci-test-custom-script.yml
vendored
|
|
@ -475,13 +475,13 @@ jobs:
|
|||
path: ~/dockerlogs
|
||||
|
||||
- name: Rename reports
|
||||
if: always()
|
||||
if: failure() && env.failed_spec_env != ''
|
||||
run: |
|
||||
mkdir -p ~/results
|
||||
mv ${{ github.workspace }}/app/client/results ~/results/${{ matrix.job }}
|
||||
|
||||
- name: Upload cypress report
|
||||
if: always()
|
||||
if: failure() && env.failed_spec_env != ''
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: results-${{github.run_attempt}}
|
||||
|
|
|
|||
6
.github/workflows/ci-test-hosted.yml
vendored
6
.github/workflows/ci-test-hosted.yml
vendored
|
|
@ -122,7 +122,7 @@ jobs:
|
|||
fi
|
||||
done
|
||||
fi
|
||||
done < ~/failed_spec_ci/failed_spec_ci-${{ matrix.job }}
|
||||
done < ~/failed_spec_ci/failed_spec_ci
|
||||
failed_spec_env=${failed_spec_env#,}
|
||||
echo "failed_spec_env=$failed_spec_env" >> $GITHUB_ENV
|
||||
|
||||
|
|
@ -395,13 +395,13 @@ jobs:
|
|||
env: "NODE_ENV=development"
|
||||
|
||||
- name: Rename reports
|
||||
if: always()
|
||||
if: failure() && env.failed_spec_env != ''
|
||||
run: |
|
||||
mkdir -p ~/results
|
||||
mv ${{ github.workspace }}/app/client/results ~/results/${{ matrix.job }}
|
||||
|
||||
- name: Upload cypress report
|
||||
if: always()
|
||||
if: failure() && env.failed_spec_env != ''
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: results-${{github.run_attempt}}
|
||||
|
|
|
|||
4
.github/workflows/ci-test-limited.yml
vendored
4
.github/workflows/ci-test-limited.yml
vendored
|
|
@ -527,13 +527,13 @@ jobs:
|
|||
path: ~/dockerlogs
|
||||
|
||||
- name: Rename reports
|
||||
if: always()
|
||||
if: failure() && env.failed_spec_env != ''
|
||||
run: |
|
||||
mkdir -p ~/results
|
||||
mv ${{ github.workspace }}/app/client/results ~/results/${{ matrix.job }}
|
||||
|
||||
- name: Upload cypress report
|
||||
if: always()
|
||||
if: failure() && env.failed_spec_env != ''
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: results-${{github.run_attempt}}
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ describe("GSheet-Functional Tests With All Access", function () {
|
|||
inputFieldName: "Cell range",
|
||||
});
|
||||
dataSources.RunQuery();
|
||||
dataSources.RunQueryNVerifyResponseViews(8);
|
||||
dataSources.RunQueryNVerifyResponseViews(4);
|
||||
dataSources.AssertQueryTableResponse(0, "eac7efa5dbd3d667f26eb3d3ab504464");
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ describe("GSheet-Functional Tests With Read/Write Access", function () {
|
|||
inputFieldName: "Cell range",
|
||||
});
|
||||
dataSources.RunQuery();
|
||||
dataSources.RunQueryNVerifyResponseViews(8);
|
||||
dataSources.RunQueryNVerifyResponseViews(4);
|
||||
dataSources.AssertQueryTableResponse(0, "eac7efa5dbd3d667f26eb3d3ab504464");
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ describe("GSheet-Functional Tests With Read Access", function () {
|
|||
inputFieldName: "Cell range",
|
||||
});
|
||||
dataSources.RunQuery();
|
||||
dataSources.RunQueryNVerifyResponseViews(8);
|
||||
dataSources.RunQueryNVerifyResponseViews(4);
|
||||
dataSources.AssertQueryTableResponse(0, "eac7efa5dbd3d667f26eb3d3ab504464");
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ describe("GSheet-Functional Tests With Selected Access", function () {
|
|||
inputFieldName: "Cell range",
|
||||
});
|
||||
dataSources.RunQuery();
|
||||
dataSources.RunQueryNVerifyResponseViews(8);
|
||||
dataSources.RunQueryNVerifyResponseViews(4);
|
||||
dataSources.AssertQueryTableResponse(0, "eac7efa5dbd3d667f26eb3d3ab504464");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user