Skip to content

Commit

Permalink
Drop invalid page editor page object method
Browse files Browse the repository at this point in the history
  • Loading branch information
twschiller committed Oct 6, 2024
1 parent 40642f2 commit f402421
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions end-to-end-tests/pageObjects/pageEditor/pageEditorPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,34 +238,6 @@ export class PageEditorPage extends BasePageObject {
await deactivateModModal.deactivateButton.click();
}

@ModifiesModFormState
async createModFromModComponent({
modNameRoot,
modComponentName,
modUuid,
}: {
modNameRoot: string;
modComponentName: string;
modUuid: UUID;
}) {
const modName = `${modNameRoot} ${modUuid}`;

const modListItem =
this.modListingPanel.getModListItemByName(modComponentName);
await modListItem.menuButton.click();
await this.getByRole("menuitem", { name: "Add to mod" }).click();

await this.getByText("Select...Choose a mod").click();
await this.getByRole("option", { name: /Create new mod.../ }).click();
await this.getByRole("button", { name: "Move" }).click();

// Create mod modal is shown
const createModModal = new CreateModModal(this.getByRole("dialog"));
const modId = await createModModal.createMod(modName, modUuid);

return { modName, modId };
}

/**
* This method is meant to be called exactly once after the test is done to clean up any saved mods created during the
* test.
Expand Down

0 comments on commit f402421

Please sign in to comment.