Skip to content

Commit

Permalink
Try to fix E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gilhanan committed Oct 28, 2023
1 parent 7ab0669 commit 74e1e5c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ jobs:
name: E2E Tests
needs: [setup-azure-resource, build]
runs-on: ubuntu-latest
env:
RECAPTCHA_SITE_KEY: ${{ secrets.RECAPTCHA_SITE_KEY }}}
RECAPTCHA_SECRET_KEY: ${{ secrets.RECAPTCHA_SECRET_KEY }}
SMTP_USER: ${{ secrets.SMTP_USER }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
SMTP_RECEIVER: ${{ secrets.SMTP_RECEIVER }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
4 changes: 0 additions & 4 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ export default defineConfig({
command: "npm start",
url: baseURL,
reuseExistingServer: !process.env.CI,
env: {
RECAPTCHA_SITE_KEY: "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",
RECAPTCHA_SECRET_KEY: "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe",
},
},
use: {
baseURL,
Expand Down
5 changes: 3 additions & 2 deletions src/app/contact/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { reCaptchaSiteKey } from "@shared/constants";
import { ContactForm } from "@contact/components/ContactForm";

export default function ContactPage() {
return <ContactForm reCaptchaSiteKey={reCaptchaSiteKey} />;
return (
<ContactForm reCaptchaSiteKey={process.env.RECAPTCHA_SITE_KEY || ""} />
);
}
1 change: 0 additions & 1 deletion src/app/shared/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export const reCaptchaSiteKey = process.env.RECAPTCHA_SITE_KEY || "";
export const reCaptchaHeaderKey = "X-Recaptcha-Token";

0 comments on commit 74e1e5c

Please sign in to comment.