* WIP: Get existing tauri e2e tests to work on Windows
Will fix #2393
* Enable windows stage (will fail)
* WIP msedge version sync
* Move setup edge before build
* Manual debug build (no action)
* Specify v119 for npm package
* Fixes on auth test
* Working test on win10
* Clean up
* Disable yarn cache to help debug the mismatch issue
* Revert "Disable yarn cache to help debug the mismatch issue"
This reverts commit e6abc7db42.
* Explicit webviewOptions and remove tauri driver fork
* Double \\ workaround for windows
* Clean up
* Clean up and readme
* Quick fix
* Lint
* Clippy fix
* Back to tauri-action and disable windows CI tests for early merge
* Back to 10sec delay
* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu)
* Timer reset
* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu)
* Trigger CI
* Back to 1 pw worker
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import os from 'os'
 | 
						|
import path from 'path'
 | 
						|
import { spawn, ChildProcess } from 'child_process'
 | 
						|
 | 
						|
let tauriDriver: ChildProcess
 | 
						|
 | 
						|
const application =
 | 
						|
  process.env.E2E_APPLICATION || `./src-tauri/target/release/zoo-modeling-app`
 | 
						|
 | 
						|
export const config = {
 | 
						|
  hostname: '127.0.0.1',
 | 
						|
  port: 4444,
 | 
						|
  specs: ['./e2e/tauri/specs/**/*.ts'],
 | 
						|
  maxInstances: 1,
 | 
						|
  capabilities: [
 | 
						|
    {
 | 
						|
      maxInstances: 1,
 | 
						|
      'tauri:options': {
 | 
						|
        application,
 | 
						|
        webviewOptions: {}, // Windows only
 | 
						|
      },
 | 
						|
    },
 | 
						|
  ],
 | 
						|
  reporters: ['spec'],
 | 
						|
  framework: 'mocha',
 | 
						|
  mochaOpts: {
 | 
						|
    bail: true,
 | 
						|
    ui: 'bdd',
 | 
						|
    timeout: 600000,
 | 
						|
  },
 | 
						|
 | 
						|
  // ensure we are running `tauri-driver` before the session starts so that we can proxy the webdriver requests
 | 
						|
  beforeSession: () =>
 | 
						|
    (tauriDriver = spawn(
 | 
						|
      path.resolve(os.homedir(), '.cargo', 'bin', 'tauri-driver'),
 | 
						|
      [],
 | 
						|
      { stdio: [null, process.stdout, process.stderr] }
 | 
						|
    )),
 | 
						|
 | 
						|
  // clean up the `tauri-driver` process we spawned at the start of the session
 | 
						|
  afterSession: () => tauriDriver.kill(),
 | 
						|
}
 |