Expand AITURK Turkish settings and desktop surfaces for beta 5
This commit is contained in:
@@ -27,7 +27,7 @@ import * as path from 'node:path'
|
||||
import { _electron, type ElectronApplication, type Page } from '@playwright/test'
|
||||
|
||||
import { resolveElectronBinary } from './electron-binary'
|
||||
import { startMockServer, type MockServerOptions } from './mock-server'
|
||||
import { type MockServerOptions, startMockServer } from './mock-server'
|
||||
import { installErrorBannerGuard } from './test'
|
||||
|
||||
const DESKTOP_ROOT = path.resolve(import.meta.dirname, '..')
|
||||
@@ -259,6 +259,8 @@ export function buildAppEnv(sandbox: Sandbox, extra: Record<string, string> = {}
|
||||
|
||||
return {
|
||||
...clean,
|
||||
// AITURK ignores inherited Hermes state; use the same explicit sandbox.
|
||||
AITURK_IDE_HOME: sandbox.hermesHome,
|
||||
HERMES_HOME: sandbox.hermesHome,
|
||||
HERMES_DESKTOP_USER_DATA_DIR: sandbox.userDataDir,
|
||||
HERMES_DESKTOP_IGNORE_EXISTING: '1',
|
||||
@@ -366,6 +368,7 @@ export interface MockBackendFixture {
|
||||
}
|
||||
|
||||
export interface MockBackendOptions {
|
||||
mockServer?: MockServerOptions
|
||||
/**
|
||||
* Optional YAML lines to inject under the `display:` section of the
|
||||
* generated config.yaml. Used by the interim-message e2e test to toggle
|
||||
@@ -385,10 +388,6 @@ export interface MockBackendOptions {
|
||||
* 3. Launch the desktop app
|
||||
* 4. Return handles for test interaction
|
||||
*/
|
||||
export interface MockBackendOptions {
|
||||
mockServer?: MockServerOptions
|
||||
}
|
||||
|
||||
export async function setupMockBackend(options: MockBackendOptions = {}): Promise<MockBackendFixture> {
|
||||
// 1. Start mock server
|
||||
const mock = await startMockServer(options.mockServer)
|
||||
@@ -643,6 +642,7 @@ export async function waitForAppReady(fixture: MockBackendFixture | NoProviderFi
|
||||
// `position: fixed; inset: 0`. If the hit element or an ancestor
|
||||
// is a full-viewport fixed overlay, we're still covered.
|
||||
let node: Element | null = el
|
||||
|
||||
while (node) {
|
||||
const cs = window.getComputedStyle(node)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user