From 76277f70137e2b39d448ea243364ab26c292b184 Mon Sep 17 00:00:00 2001 From: joshuakrueger-dfx Date: Tue, 4 Aug 2026 17:31:51 +0200 Subject: [PATCH] Pin the buy e2e locale so the collection-IBAN test stops depending on account data The test asserts English labels, but without a lang parameter the UI locale comes from the test account's stored user.language. That field lives on the server and was switched to German, so the English selectors find nothing and the test fails with "element(s) not found" - on unchanged code. Passing lang=en makes the test decide its own locale. --- e2e/buy-process.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/buy-process.spec.ts b/e2e/buy-process.spec.ts index c715fea41..2041ca7a7 100644 --- a/e2e/buy-process.spec.ts +++ b/e2e/buy-process.spec.ts @@ -207,8 +207,11 @@ test.describe('Buy Process - UI Flow', () => { // asset-out is pinned: without it the screen picks the first listed asset, which has // no price rule in the local seed and the quote never reaches the payment details. + // lang=en pins the UI locale: the selectors and the baselines below are English, and without + // the parameter the language comes from the test account's stored user.language, which anyone + // can change on the server and which makes this test fail with "element(s) not found". await page.goto( - `/buy?session=${token}&blockchain=Ethereum&asset-in=EUR&asset-out=ETH&amount-in=100&personal-iban=frick`, + `/buy?session=${token}&blockchain=Ethereum&asset-in=EUR&asset-out=ETH&amount-in=100&personal-iban=frick&lang=en`, ); const paymentDetails = page