Skip to content

Commit

Permalink
Merge pull request #1274 from culturecreates/develop
Browse files Browse the repository at this point in the history
Debugging cypress tests workflow
  • Loading branch information
sahalali authored Aug 22, 2024
2 parents c3c14ee + 9e61d9f commit 7014112
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/run-cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Trigger End-to-end Tests Workflow
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.DOCKER_PAT }}
event-type: trigger-end-to-end-tests
client-payload: |
{
"baseUrl": "${{ github.event.inputs.baseUrl }}",
"grep": "${{ github.event.inputs.grep }}",
"grepTags": "${{ github.event.inputs.grepTags }}",
"numContainers": "${{ github.event.inputs.numContainers }}"
}
run: |
curl -X POST https://api.github.com/repos/kmdvs/cypress-gha-tests/actions/workflows/e2eTests.yml/dispatches \
-H "Authorization: token ${{secrets.DOCKER_PAT}}" \
-H "Accept: application/vnd.github.v3+json" \
-d '{
"ref": "main",
"inputs": {
"baseUrl": "${{ github.event.inputs.baseUrl }}",
"grep": "${{ github.event.inputs.grep }}",
"grepTags": "${{ github.event.inputs.grepTags }}",
"numContainers": "${{ github.event.inputs.numContainers }}"
}
}'
2 changes: 2 additions & 0 deletions src/pages/Dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ function Dashboard() {
const accessTokenFromCookie = Cookies.get('accessToken');
const refreshTokenFromCookie = Cookies.get('refreshToken');
const calendarIdFromCookie = Cookies.get('calendarId');

const calId = calendarId || calendarIdFromCookie;
if (calendarId) Cookies.set('calendarId', calId);

if (!checkToken(accessToken, accessTokenFromCookie)) navigate(PathName.Login);

Expand Down

0 comments on commit 7014112

Please sign in to comment.