Skip to content

Commit

Permalink
Adapt E2E tests to new structure
Browse files Browse the repository at this point in the history
  • Loading branch information
CommandMC committed Dec 18, 2023
1 parent aa7cb1d commit faace02
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
type ElectronApplication
} from '@playwright/test'

const main_js = join(__dirname, '../build/electron/main.js')
const main_js = join(__dirname, '../build/main/main.js')

/**
* Helper function to define a test requiring Heroic to be running
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
"test": "jest",
"test-watch": "jest --watch --maxWorkers=25%",
"test:ci": "jest --runInBand --silent",
"test:e2e": "vite build && cross-env CI=e2e xvfb-maybe -- playwright test",
"test:e2e": "electron-vite build && cross-env CI=e2e xvfb-maybe -- playwright test",
"release:linux": "electron-vite build && electron-builder -p always --linux deb AppImage rpm pacman tar.xz snap",
"release:mac": "electron-vite build && electron-builder -p always --mac --x64 --arm64",
"release:win": "electron-vite build && electron-builder -p always --win portable --x64",
Expand Down
6 changes: 5 additions & 1 deletion src/backend/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ const {
nileLogFile
} = createNewLogFileAndClearOldOnes()

const publicDir = resolve(__dirname, '..', app.isPackaged ? '' : '../public')
const publicDir = resolve(
__dirname,
'..',
app.isPackaged || process.env.CI === 'e2e' ? '' : '../public'
)
const gogdlAuthConfig = join(app.getPath('userData'), 'gog_store', 'auth.json')
const vulkanHelperBin = fixAsarPath(
join(publicDir, 'bin', process.platform, 'vulkan-helper')
Expand Down

0 comments on commit faace02

Please sign in to comment.