Skip to content

Commit

Permalink
Fix playwright test build
Browse files Browse the repository at this point in the history
  • Loading branch information
hvangeffen committed Sep 23, 2024
1 parent aaef16a commit a7c8fb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playwright-ct.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig, devices } from '@playwright/experimental-ct-vue'
import getViteConfig from './vite.config'
const viteConfig = getViteConfig({
const viteConfig = await getViteConfig({
command: 'build',
mode: 'test',
})
Expand Down
5 changes: 4 additions & 1 deletion vite-pwa.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ function downloadImage(url: string, location: string) {

async function getWebOcConfig(env: Record<string, string>) {
try {
const provider = new PiWebserviceProvider(env.VITE_FEWS_WEBSERVICES_URL)
const webserivcesUrl = env.VITE_FEWS_WEBSERVICES_URL
if (!webserivcesUrl) return

const provider = new PiWebserviceProvider(webserivcesUrl)
const response = await provider.getWebOcConfiguration()
const config = response?.general
if (!config) return
Expand Down

0 comments on commit a7c8fb3

Please sign in to comment.