Skip to content

Commit 19d53e2

Browse files
Merge pull request #2 from py-dev-nandini-12/feature/enhanced-form
Update deployment workflow and modify form validation error message
2 parents 8dcfd16 + db1474b commit 19d53e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflow/deploy-e2e.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
id: deploy
2323
run: |
2424
vercel pull --yes --environment=preview --token ${{ secrets.VERCEL_TOKEN_MY_PROJECT }}
25-
DEPLOY_URL=$(vercel deploy --prod --token ${{ secrets.VERCEL_TOKEN_MY_PROJECT }} | tail -1)
25+
DEPLOY_URL=$(vercel deploy --staging --token ${{ secrets.VERCEL_TOKEN_MY_PROJECT }} | tail -1)
2626
echo "DEPLOYMENT_URL=${DEPLOY_URL}" >> $GITHUB_ENV
2727
echo "Deployed to: $DEPLOY_URL"
2828
2929
env:
30-
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
31-
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
30+
# VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
31+
# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
3232
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN_MY_PROJECT }}
3333

3434
e2e:

tests/form.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ test('Shows validation error if fields are missing', async ({ page }) => {
2626
await page.click('button[type="submit"]');
2727

2828
// Expect an error message
29-
await expect(page.locator('p')).toHaveText('Name and Email are required');
29+
await expect(page.locator('p')).toHaveText('Submission failed. Please try again.');
3030
});
3131

0 commit comments

Comments
 (0)