#/mobile/cards shows the game without the site shell: a title, a footer with the account and a discreet "Version complète" link, and a tab bar fixed at the bottom. Phones opening #/cards are sent to the same section in mobile mode unless the player chose the full version. Account, History and Administration point to the computer. The panels are the computer ones, adapted under .nebula-mobile (and body.nebula-mobile-body for dialogs) for a 393×852 reference phone: small cards with names under them when opening packs, a revealed card shown large on tap, tap-to-pick team recruitment with a single Recruit button and large stars, row lists for explorers and commons in the expedition pickers, a race track and circuit that read at phone size, and full-width actions throughout. Firefox no longer shows a mirrored back on a flipped card. Phone Playwright journeys check that every section fits the screen with no button wrapping, then open a pack, run an expedition and recruit a team by touch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.3 KiB
JavaScript
38 lines
1.3 KiB
JavaScript
/**
|
|
* @file Configure les diagnostics navigateur Playwright sans les intégrer au check de prod.
|
|
*/
|
|
|
|
import { defineConfig, devices } from "@playwright/test";
|
|
import { tmpdir } from "node:os";
|
|
import { join } from "node:path";
|
|
|
|
const port = Number(process.env.E2E_PORT || 5173);
|
|
const baseURL = `http://localhost:${port}`;
|
|
// Un dossier d'envois propre à chaque port : une exécution isolée ne relit pas les envois du serveur de développement.
|
|
const isolatedCardsEnvironment = process.env.E2E_PORT ? `CARDS_DB_PATH=:memory: CARDS_DEV_AUTH=true SHARES_DIR=${join(tmpdir(), `sokko-e2e-shares-${port}`)} ` : "";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
testIgnore: ["**/production/**", "**/nebula-cards.spec.js", "**/nebula-cards-mobile.spec.js"],
|
|
fullyParallel: true,
|
|
// Le serveur Vite partagé compile les outils lazy à la première visite.
|
|
workers: 2,
|
|
reporter: [["list"], ["html", { open: "never" }]],
|
|
use: {
|
|
baseURL,
|
|
trace: "retain-on-failure",
|
|
screenshot: "only-on-failure"
|
|
},
|
|
webServer: {
|
|
command: `${isolatedCardsEnvironment}npm run dev -- --port ${port}`,
|
|
url: baseURL,
|
|
reuseExistingServer: !process.env.E2E_PORT,
|
|
timeout: 120000
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] }
|
|
}
|
|
]
|
|
});
|