From 179e918954ddcdffc85aaf2646eaf09c354e6dd3 Mon Sep 17 00:00:00 2001 From: Grace Date: Tue, 19 Mar 2024 13:27:39 +0000 Subject: [PATCH] Rename last `findXXX` to `expectXXX` --- src/e2e/app.ts | 2 +- src/e2e/multiple-files.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/e2e/app.ts b/src/e2e/app.ts index 3ab33db90..8f8bb9d85 100644 --- a/src/e2e/app.ts +++ b/src/e2e/app.ts @@ -428,7 +428,7 @@ export class App { await fileOptionMenu.editButton.click(); } - async findThirdPartyModuleWarning( + async expectThirdPartModuleWarning( expectedName: string, expectedVersion: string ): Promise { diff --git a/src/e2e/multiple-files.test.ts b/src/e2e/multiple-files.test.ts index b87e4f6a8..a33f94bfa 100644 --- a/src/e2e/multiple-files.test.ts +++ b/src/e2e/multiple-files.test.ts @@ -48,7 +48,7 @@ test.describe("multiple-files", () => { acceptDialog: LoadDialogType.CONFIRM, }); await app.editFile("module.py"); - await app.findThirdPartyModuleWarning("a", "1.0.0"); + await app.expectThirdPartModuleWarning("a", "1.0.0"); await app.toggleSettingThirdPartyModuleEditing(); try { @@ -60,7 +60,7 @@ test.describe("multiple-files", () => { await app.loadFiles("testData/updated/module.py", { acceptDialog: LoadDialogType.CONFIRM, }); - await app.findThirdPartyModuleWarning("a", "1.1.0"); + await app.expectThirdPartModuleWarning("a", "1.1.0"); }); test("Copes with currently open file being deleted", async ({ app }) => {