-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: make the CI more stable on deployments (#532)
* chore: make the CI more stable on deployments * test: remove counter test The counter test was fixed #492 which requires you to delete the product rather than reducing the quantity to 0. * fix: Update visual regression baseline images --------- Co-authored-by: Anudeep Vattipalli <[email protected]>
- Loading branch information
1 parent
998f8cd
commit 06c4fe6
Showing
50 changed files
with
101 additions
and
99 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
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,47 @@ | ||
name: Playwright UI Tests | ||
|
||
on: | ||
deployment_status: | ||
states: ['success'] | ||
|
||
jobs: | ||
ui-tests: | ||
name: Run UI Tests | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(fromJson('["Production – catalyst-latest", "Preview – catalyst-latest"]'), github.event.deployment_status.environment) }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@main | ||
|
||
- uses: pnpm/action-setup@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@main | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Install Playwright Browsers | ||
run: | | ||
cd packages/functional | ||
npx playwright install chromium | ||
- name: Run Playwright tests | ||
env: | ||
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }} | ||
VERCEL_PROTECTION_BYPASS: ${{ secrets.VERCEL_PROTECTION_BYPASS_CATALYST_LATEST }} | ||
run: | | ||
cd packages/functional | ||
npx playwright test tests/ui/ --project=tests-chromium | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: playwright-report | ||
path: packages/functional/playwright-report/ | ||
retention-days: 30 |
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,47 @@ | ||
name: Playwright Visual Regression Tests | ||
|
||
on: | ||
deployment_status: | ||
states: ['success'] | ||
|
||
jobs: | ||
visual-regression-tests: | ||
name: Run Visual Regression Tests | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(fromJson('["Production – catalyst-storybook", "Preview – catalyst-storybook"]'), github.event.deployment_status.environment) }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@main | ||
|
||
- uses: pnpm/action-setup@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@main | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Install Playwright Browsers | ||
run: | | ||
cd packages/functional | ||
npx playwright install chromium | ||
- name: Run Playwright tests | ||
env: | ||
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }} | ||
VERCEL_PROTECTION_BYPASS: ${{ secrets.VERCEL_PROTECTION_BYPASS_STORYBOOK }} | ||
run: | | ||
cd packages/functional | ||
npx playwright test tests/visual-regression/reactant/components/ --project=tests-chromium | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: playwright-report | ||
path: packages/functional/playwright-report/ | ||
retention-days: 30 |
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
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
Binary file modified
BIN
+369 Bytes
(100%)
...ant/components/Accordion.spec.ts-snapshots/accordion-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+330 Bytes
(100%)
...ents/Accordion.spec.ts-snapshots/accordion-collapsed-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+567 Bytes
(100%)
...onents/BlogPostCard.spec.ts-snapshots/blog-post-card-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-65 Bytes
(98%)
...components/BreadCrumbs.spec.ts-snapshots/Breadcrumbs-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+776 Bytes
(100%)
...omponents/Carousel.spec.ts-snapshots/Multiple-slides-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+729 Bytes
(100%)
...t/components/Carousel.spec.ts-snapshots/Single-slide-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-39 Bytes
(97%)
...nents/Checkbox.spec.ts-snapshots/Checkbox-with-label-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-250 Bytes
(79%)
...components/Counter.spec.ts-snapshots/Counter-default-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+258 Bytes
(130%)
...omponents/Counter.spec.ts-snapshots/Counter-disabled-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+794 Bytes
(100%)
...ant/components/Footer.spec.ts-snapshots/Basic-footer-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+961 Bytes
(100%)
...components/Footer.spec.ts-snapshots/Multi-low-footer-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-760 Bytes
(93%)
...ctant/components/Form.spec.ts-snapshots/Default-form-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-61 Bytes
(99%)
...mponents/Form.spec.ts-snapshots/Form-with-validation-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-102 Bytes
(97%)
...components/Input.spec.ts-snapshots/Custom-icon-input-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-37 Bytes
(98%)
...ant/components/Input.spec.ts-snapshots/Default-input-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-36 Bytes
(98%)
...nt/components/Input.spec.ts-snapshots/Disabled-input-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-31 Bytes
(99%)
...ctant/components/Input.spec.ts-snapshots/Error-input-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+18 Bytes
(100%)
...ant/components/Input.spec.ts-snapshots/Success-input-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-13 Bytes
(99%)
...ant/components/Label.spec.ts-snapshots/Label-example-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-27 Bytes
(98%)
.../components/Label.spec.ts-snapshots/Label-with-input-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-61 Bytes
(99%)
...components/Message.spec.ts-snapshots/Default-message-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-101 Bytes
(98%)
...t/components/Message.spec.ts-snapshots/Error-message-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+536 Bytes
(110%)
...ts/NavigationMenu.spec.ts-snapshots/Basic-navigation-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+688 Bytes
(110%)
...ationMenu.spec.ts-snapshots/Bottom-navigation-center-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+686 Bytes
(110%)
...igationMenu.spec.ts-snapshots/Bottom-navigation-left-1-tests-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+686 Bytes
(110%)
...gationMenu.spec.ts-snapshots/Bottom-navigation-right-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+536 Bytes
(110%)
...Menu.spec.ts-snapshots/Custom-navigation-menu-toggle-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+531 Bytes
(110%)
...nents/NavigationMenu.spec.ts-snapshots/Logo-centered-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+537 Bytes
(110%)
...tionMenu.spec.ts-snapshots/Navigation-alignment-left-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+531 Bytes
(110%)
...ionMenu.spec.ts-snapshots/Navigation-alignment-right-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+484 Bytes
(110%)
...vigationMenu.spec.ts-snapshots/Navigation-with-badge-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+498 Bytes
(110%)
...nts/ProductCard.spec.ts-snapshots/Basic-product-card-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-106 Bytes
(98%)
...onents/RadioGroup.spec.ts-snapshots/Base-radio-group-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-153 Bytes
(98%)
...s/RadioGroup.spec.ts-snapshots/Radio-group-with-icon-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+42 Bytes
(100%)
...RectangleList.spec.ts-snapshots/Basic-rectangle-list-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+17 Bytes
(100%)
...t/components/Select.spec.ts-snapshots/Default-select-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+17 Bytes
(100%)
.../Select.spec.ts-snapshots/Select-with-disabled-items-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+132 Bytes
(100%)
...ctant/components/Sheet.spec.ts-snapshots/Basic-sheet-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+238 Bytes
(110%)
...components/Sheet.spec.ts-snapshots/Sheet-with-footer-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+197 Bytes
(100%)
...omponents/Sheet.spec.ts-snapshots/Sheet-with-overlay-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-10.3 KB
(95%)
...eshow.spec.ts-snapshots/Custom-controls-and-interval-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-10.3 KB
(95%)
...mponents/Slideshow.spec.ts-snapshots/Multiple-slides-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-10.2 KB
(95%)
.../components/Slideshow.spec.ts-snapshots/Single-slide-1-tests-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+82 Bytes
(100%)
...onents/Swatch.spec.ts-snapshots/Swatch-basic-example-1-tests-chromium-linux.png
Oops, something went wrong.