-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into MERX-960-back-btn-pagination
- Loading branch information
Showing
154 changed files
with
3,408 additions
and
8,945 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"saleor-dashboard": patch | ||
--- | ||
|
||
Now we login accounts before playwright jobs are being started. This means playwright shards only consume account files, skipping the authentication part, it avoids account suspending by the API due to multiple attempnts in the same time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"saleor-dashboard": minor | ||
--- | ||
|
||
Always add comment after tests to CORE release PR, even if previous job fails. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Prepare accounts | ||
description: Prepare accounts that are used by Playwright | ||
inputs: | ||
BASE_URL: | ||
description: "Dashboard base url" | ||
required: true | ||
API_URL: | ||
description: "API url" | ||
required: true | ||
E2E_USER_NAME: | ||
description: "Username for e2e tests" | ||
required: true | ||
E2E_USER_PASSWORD: | ||
description: "Password for e2e tests" | ||
required: true | ||
E2E_PERMISSIONS_USERS_PASSWORD: | ||
description: "Permissions user password for e2e tests" | ||
required: true | ||
E2E_ENCODE_PASS: | ||
description: "Password for encoding credentials" | ||
required: true | ||
|
||
outputs: | ||
ACCOUNTS: | ||
description: "Encrypted accounts" | ||
value: ${{ steps.accounts.outputs.ACCOUNTS }} | ||
|
||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
|
||
- name: Prepare accounts | ||
shell: bash | ||
id: accounts | ||
env: | ||
BASE_URL: ${{ inputs.BASE_URL }} | ||
API_URL: ${{ inputs.API_URL }} | ||
E2E_USER_NAME: ${{ inputs.E2E_USER_NAME }} | ||
E2E_USER_PASSWORD: ${{ inputs.E2E_USER_PASSWORD }} | ||
E2E_ENCODE_PASS: ${{ inputs.E2E_ENCODE_PASS }} | ||
E2E_PERMISSIONS_USERS_PASSWORD: ${{ inputs.E2E_PERMISSIONS_USERS_PASSWORD }} | ||
run: | | ||
ACCOUNTS=$(node playwright/auth.js login) | ||
echo "ACCOUNTS=${ACCOUNTS}" >> "$GITHUB_OUTPUT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Restore accounts | ||
description: Restore accounts to be consumed by Playwright | ||
inputs: | ||
ACCOUNTS: | ||
description: "Accounts encrypted string" | ||
required: true | ||
E2E_ENCODE_PASS: | ||
description: "Password for encoding credentials" | ||
required: true | ||
BASE_URL: | ||
description: "Dashboard base url" | ||
required: true | ||
API_URL: | ||
description: "API url" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
|
||
- name: Restore accounts | ||
shell: bash | ||
env: | ||
E2E_ENCODE_PASS: ${{ inputs.E2E_ENCODE_PASS }} | ||
ACCOUNTS: ${{ inputs.ACCOUNTS }} | ||
API_URL: ${{ inputs.API_URL }} | ||
BASE_URL: ${{ inputs.BASE_URL }} | ||
run: | | ||
node playwright/auth.js restore "$ACCOUNTS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.