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:
Saroj 2023-09-11 18:37:02 +05:30 committed by GitHub
parent 1d15570298
commit 5312ee11f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 11 deletions

View File

@ -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}}

View File

@ -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}}

View File

@ -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}}

View File

@ -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");
});

View File

@ -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");
});

View File

@ -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");
});

View File

@ -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");
});