-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Malibu-36/Bug: Fix tests failing in PR (#221)
- Loading branch information
1 parent
659c65d
commit 8671ea7
Showing
15 changed files
with
233 additions
and
120 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 |
---|---|---|
|
@@ -27,17 +27,16 @@ jobs: | |
env: | ||
POSTMARK_API_KEY: ${{ secrets.POSTMARK_API_KEY }} | ||
PUBLIC_SITE_NAME: TACO [TEST] | ||
EMAIL_SENDER_SIGNATURE: [email protected] | ||
EMAIL_SENDER_SIGNATURE: ${{ secrets.EMAIL_SENDER_SIGNATURE }} | ||
PUBLIC_SENTRY_DSN: ${{ secrets.PUBLIC_SENTRY_DSN }} | ||
PUBLIC_SENTRY_ENV: test | ||
PUBLIC_SITE_URL: http://localhost:5173/ | ||
PUBLIC_SITE_URL: http://localhost:5173 | ||
DATABASE_URL: postgresql://postgres:postgres@localhost:0432/db | ||
NODE_ENV: test | ||
ORIGIN: ${{ vars.ORIGIN }} | ||
SECRET_KEY: ${{ secrets.SECRET_KEY }} | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
PUBLIC_RECAPTCHA_SITE_KEY: ${{ secrets.PUBLIC_RECAPTCHA_SITE_KEY }} | ||
RECAPTCHA_SECRET_KEY: ${{ secrets.RECAPTCHA_SECRET_KEY }} | ||
ORIGIN: http://localhost:3000 | ||
OPENAI_API_KEY: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -57,4 +56,18 @@ jobs: | |
run: npx prisma migrate deploy | ||
|
||
- name: Run tests | ||
id: test | ||
run: npx playwright test | ||
continue-on-error: true | ||
|
||
- name: Save artifacts | ||
if: steps.test.outcome == 'failure' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: playwright-report | ||
path: playwright-report | ||
retention-days: 7 | ||
|
||
- name: Fail if test fails | ||
if: steps.test.outcome == 'failure' | ||
run: exit 1 |
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 |
---|---|---|
|
@@ -14,3 +14,7 @@ vite.config.ts.timestamp-* | |
# Sentry Auth Token | ||
.sentryclirc | ||
.vscode | ||
|
||
playwright-report/ | ||
test-results/ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
{/if} | ||
<div class="relative shadow-sm"> | ||
<input | ||
data-testid={id} | ||
{id} | ||
{name} | ||
{type} | ||
|
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
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.