Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

test(e2e): repointer les deux dernières assertions Windows sur le dialogue v4

Etienne Lescot2bdcc60568d4
diff --git a/tests/e2e/windows-native-checklist.spec.ts b/tests/e2e/windows-native-checklist.spec.ts
index d1fdf58be..9c9c5710e 100644
--- a/tests/e2e/windows-native-checklist.spec.ts
+++ b/tests/e2e/windows-native-checklist.spec.ts
@@ -210,7 +210,7 @@ test.describe("Windows native checklist smoke tests", () => {
await expect(
editorWindow.getByText("Background").or(editorWindow.getByText("Arrière-plan")),
).toBeVisible();
- await expect(editorWindow.getByTestId("testId-export-button")).toBeVisible();
+ await expect(editorWindow.getByRole("button", { name: "Export", exact: true })).toBeVisible();
} finally {
await closeApp(app);
if (testVideoInRecordings && fs.existsSync(testVideoInRecordings)) {
@@ -308,7 +308,7 @@ test.describe("Windows native checklist smoke tests", () => {
});
await editorWindow.waitForLoadState("domcontentloaded");
await expect(editorWindow.getByText("Loading video...")).not.toBeVisible({ timeout: 20_000 });
- await expect(editorWindow.getByTestId("testId-export-button")).toBeVisible();
+ await expect(editorWindow.getByRole("button", { name: "Export", exact: true })).toBeVisible();
} finally {
await closeApp(app);
if (testVideoInRecordings && fs.existsSync(testVideoInRecordings)) {