feature/ci (#84)

Co-authored-by: openhands <openhands@all-hands.dev>
Reviewed-on: https://codeberg.org/johba/harb/pulls/84
This commit is contained in:
johba 2026-02-02 19:24:57 +01:00
parent beefe22f90
commit 4277f19b68
41 changed files with 3149 additions and 298 deletions

View file

@ -31,6 +31,20 @@ export async function createWalletContext(
const context = await browser.newContext();
// Override screen.width to ensure desktop mode (the app uses screen.width for mobile detection)
// In headless CI environments, screen.width may not match the viewport
await context.addInitScript(() => {
Object.defineProperty(window.screen, 'width', {
configurable: true,
value: 1280,
});
Object.defineProperty(window.screen, 'availWidth', {
configurable: true,
value: 1280,
});
console.info('[wallet-provider] Set screen.width to 1280 for desktop mode');
});
await context.addInitScript(() => {
window.localStorage.setItem('authentificated', 'true');
});