Skip to content

Commit

Permalink
fix: e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed Jul 17, 2023
1 parent f382b15 commit 8a74c38
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/e2e-apps-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ env:
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_UPLOAD_DRY_RUN: true
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
NEXTAUTH_URL: 'http://localhost:3000'
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_SECRET: secret-string-only-for-ci

jobs:
e2e:
Expand Down Expand Up @@ -82,6 +82,7 @@ jobs:
run: |
pnpm --filter=web build
env:
APP_CACHE_DSN: ''
NEXT_IGNORE_ESLINT: true
NEXT_IGNORE_TYPE_CHECK: true
NEXT_DISABLE_SOURCEMAPS: true
Expand Down
4 changes: 2 additions & 2 deletions apps/web/e2e/pages/index/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from '@playwright/test'
import homeJsonEn from '@wayofdev/common-i18n/locales/en/demo.json'
import homeJsonFr from '@wayofdev/common-i18n/locales/fr/demo.json'
import homeJsonEn from '@wayofdev/common-i18n/locales/en/demo.json' assert { type: 'json' }
import homeJsonFr from '@wayofdev/common-i18n/locales/fr/demo.json' assert { type: 'json' }

test.describe('Demo page', () => {
test('should have the title in english by default', async ({ page }) => {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/e2e/pages/system/404.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from '@playwright/test'
import systemJsonEn from '@wayofdev/common-i18n/locales/en/system.json'
import systemJsonFr from '@wayofdev/common-i18n/locales/fr/system.json'
import systemJsonEn from '@wayofdev/common-i18n/locales/en/system.json' assert { type: 'json' }
import systemJsonFr from '@wayofdev/common-i18n/locales/fr/system.json' assert { type: 'json' }

const pageSlug = 'this-page-does-not-exist'

Expand Down
2 changes: 1 addition & 1 deletion apps/web/next-sitemap.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.APP_URL,
siteUrl: process.env.APP_URL || 'https://localhost:3000',
generateRobotsTxt: true,
}

0 comments on commit 8a74c38

Please sign in to comment.