Playwright · Middle · Question 7 of 75
How do you change options like locale for one group of tests only?
test.describe("German UI", () => {
test.use({ locale: "de-DE" });
test("shows prices", async ({ page }) => { /* ... */ });
});- 1Call
test.use()inside adescribeblock - 2Pass
localeas an argument topage.goto - 3Edit
playwright.config.tsbefore each test
Show the answer
Correct answer: Call test.use() inside a describe block
Explanation
test.use overrides use options for a file or describe block, so the group gets its own context settings.