Skip to content

Commit

Permalink
Rename last findXXX to expectXXX
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-grace committed Mar 19, 2024
1 parent c580a85 commit 179e918
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/e2e/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ export class App {
await fileOptionMenu.editButton.click();
}

async findThirdPartyModuleWarning(
async expectThirdPartModuleWarning(
expectedName: string,
expectedVersion: string
): Promise<void> {
Expand Down
4 changes: 2 additions & 2 deletions src/e2e/multiple-files.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 }) => {
Expand Down

0 comments on commit 179e918

Please sign in to comment.