fix(web): localize single-file confirmations (#2894)

This commit is contained in:
José Almeida
2026-08-22 20:45:13 +00:00
committed by GitHub
parent 59452fc890
commit 779e3eff28
29 changed files with 910 additions and 205 deletions
+6 -2
View File
@@ -170,7 +170,9 @@ test.describe("File editor auto-update on file change", () => {
await openChangesTab(testPage);
await openFileDiff(testPage, "diff_update_test.txt");
await waitForDiffText(testPage, "FIRST_MODIFICATION", 15_000);
const editFile = testPage.getByRole("button", { name: "Edit", exact: true });
const editFile = testPage
.getByTestId("review-file-actions")
.getByRole("button", { name: "Edit", exact: true });
await expect(editFile).toBeVisible();
await editFile.click();
@@ -226,7 +228,9 @@ test.describe("File editor auto-update on file change", () => {
// Open the editor from the already-loaded diff. A late git-status update is
// allowed to focus Changes, so routing through the Files tab would race that
// intentional focus transition instead of testing editor refresh behavior.
const editFile = testPage.getByRole("button", { name: "Edit", exact: true });
const editFile = testPage
.getByTestId("review-file-actions")
.getByRole("button", { name: "Edit", exact: true });
await expect(editFile).toBeVisible();
await editFile.click();
const editorTab = testPage.locator(".dv-default-tab[type='file-editor']", {