#/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>
28 lines
1.4 KiB
JavaScript
28 lines
1.4 KiB
JavaScript
/**
|
||
* @file Exécute les parcours Sokko TCG contre le vrai serveur Node et une base temporaire : d'abord sur ordinateur,
|
||
* puis le mode mobile de dépannage dans un téléphone simulé (projet `phone-cards`, après le premier, car il
|
||
* consomme des ouvertures et part en expédition avec le même joueur).
|
||
*/
|
||
|
||
import { defineConfig, devices } from "@playwright/test";
|
||
|
||
export default defineConfig({
|
||
testDir: "./e2e",
|
||
testMatch: /nebula-cards(-mobile)?\.spec\.js$/,
|
||
workers: 1,
|
||
outputDir: "test-results/cards",
|
||
reporter: [["list"], ["html", { open: "never", outputFolder: "playwright-report/cards" }]],
|
||
use: { baseURL: "http://127.0.0.1:4180", trace: "retain-on-failure", screenshot: "only-on-failure" },
|
||
webServer: {
|
||
command: "npm run build && node scripts/start-cards-e2e-server.mjs",
|
||
url: "http://127.0.0.1:4180/api/cards/config",
|
||
reuseExistingServer: false,
|
||
timeout: 120000
|
||
},
|
||
projects: [
|
||
{ name: "chromium-cards", testMatch: "nebula-cards.spec.js", use: { ...devices["Desktop Chrome"] } },
|
||
// Le téléphone garde Chromium (le seul navigateur installé), avec l'écran (393 × 852, le téléphone de référence),
|
||
// le toucher et l'agent d'un iPhone.
|
||
{ name: "phone-cards", testMatch: "nebula-cards-mobile.spec.js", dependencies: ["chromium-cards"], use: { ...devices["iPhone 14 Pro"], browserName: "chromium" } }
|
||
]
|
||
});
|