Skip to content

Commit

Permalink
fix e2e test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FunamaYukina committed Feb 7, 2025
1 parent e6274eb commit 5bb5176
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 7 deletions.
10 changes: 6 additions & 4 deletions .github/actions/deploy-app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ outputs:
runs:
using: composite
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm-setup
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: ./.github/actions/pnpm-setup
- name: Install Vercel CLI
run: pnpm add --global vercel@latest
shell: bash
Expand All @@ -40,6 +42,6 @@ runs:
- name: Deploy Project Artifacts to Vercel
id: deployment
run: |
DEPLOY_URL=$(vercel deploy --prebuilt --token=${{ inputs.vercel-token }} ${{ inputs.environment == 'production' && '--prod' || '' }})
echo "deployment-url=$DEPLOY_URL" >> $GITHUB_OUTPUT
vercel deploy --prebuilt --token=${{ inputs.vercel-token }} ${{ inputs.environment == 'production' && '--prod' || '' }} > deployment-url.txt
echo "deployment-url=$(cat deployment-url.txt)" >> $GITHUB_OUTPUT
shell: bash
3 changes: 3 additions & 0 deletions frontend/apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "@liam-hq/docs",
"private": true,
"version": "0.0.0",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@liam-hq/ui": "workspace:*",
"@next/third-parties": "15.1.5",
Expand Down
3 changes: 3 additions & 0 deletions frontend/apps/erd-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "@liam-hq/erd-sample",
"private": true,
"version": "0.0.0",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@liam-hq/cli": "workspace:*"
},
Expand Down
3 changes: 3 additions & 0 deletions frontend/apps/erd-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "@liam-hq/erd-web",
"private": true,
"version": "0.1.0",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@liam-hq/db-structure": "workspace:*",
"@liam-hq/erd-core": "workspace:*",
Expand Down
3 changes: 3 additions & 0 deletions frontend/packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "@liam-hq/e2e",
"private": true,
"version": "0.0.0",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@playwright/test": "1.50.1",
Expand Down
4 changes: 1 addition & 3 deletions frontend/packages/e2e/tests/vrt/vrt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { expect, test } from '@playwright/test'
const screenshot = async (page: Page, targetPage: TargetPage) => {
await page.goto(targetPage.path)

const cookieAcceptButton = page.getByRole('button', {
name: 'Accept All Cookies',
})
const cookieAcceptButton = page.getByRole('button', { name: 'Accept' })
if ((await cookieAcceptButton.count()) > 0) {
await cookieAcceptButton.click()
}
Expand Down
3 changes: 3 additions & 0 deletions frontend/packages/figma-to-css-variables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "@liam-hq/figma-to-css-variables",
"private": true,
"version": "0.0.0",
"publishConfig": {
"access": "public"
},
"main": "bin/index.mjs",
"dependencies": {
"style-dictionary": "4.1.3"
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "liam-frontend",
"private": true,
"version": "0.0.1",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@changesets/cli": "2.27.10",
"@changesets/get-github-info": "0.6.0",
Expand Down

0 comments on commit 5bb5176

Please sign in to comment.