Skip to content
Snippets Groups Projects

Add Menu test and folder

Closed Miguel Pelayo requested to merge issue/automated_testing_kit-3389607:3389607-menu into 1.0.x
3 unresolved threads

Closes #3389607

Merge request reports

Closed by André AngelantoniAndré Angelantoni 7 months ago (Sep 29, 2024 10:29pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Miguel Pelayo added 1 commit

    added 1 commit

    • adb9ccb9 - Update atk_menu.spec.js as eslint feature

    Compare with previous version

  • André Angelantoni resolved all threads

    resolved all threads

  • 31 test("(ATK-PW-1150) Create a new menu item and validate it @ATK-PW-1150 @menu @smoke @alters-db", async ({ page, context, }) => {
    32 const uniqueToken = atkUtilities.createRandomString(6);
    33 const testId = "(ATK-PW-1150)";
    34
    35 //
    36 // Log in with the administrator account.
    37 //
    38 await atkCommands.logInViaForm(page, context, qaUserAccounts.admin);
    39
    40 //
    41 // Begin registration.
    42 //
    43 await page.goto(baseUrl + "/admin/structure/menu/manage/main/add");
    44 await page.getByLabel("Menu link title").fill("Test" + uniqueToken);
    45 await page.getByLabel("Link", { exact: true }).fill("<front>");
    46 await page.getByText("Link Loading… The location").click();
  • 35 //
    36 // Log in with the administrator account.
    37 //
    38 await atkCommands.logInViaForm(page, context, qaUserAccounts.admin);
    39
    40 //
    41 // Begin registration.
    42 //
    43 await page.goto(baseUrl + "/admin/structure/menu/manage/main/add");
    44 await page.getByLabel("Menu link title").fill("Test" + uniqueToken);
    45 await page.getByLabel("Link", { exact: true }).fill("<front>");
    46 await page.getByText("Link Loading… The location").click();
    47 await page.getByRole("button", { name: "Save" }).click();
    48 await page.getByRole("link", { name: "Back to site" }).click();
    49 await page.locator(`text=${"Test" + uniqueToken}`);
    50 });
  • 18
    19 const baseUrl = playwrightConfig.use.baseURL;
    20
    21 // Standard accounts that use user accounts created
    22 // by QA Accounts. QA Accounts are created when the QA
    23 // Accounts module is enabled.
    24 import qaUserAccounts from "../data/qaUsers.json";
    25
    26 test.describe("Menu tests.", () => {
    27
    28 //
    29 // Validate Menu items are added.
    30 //
    31 test("(ATK-PW-1150) Create a new menu item and validate it @ATK-PW-1150 @menu @smoke @alters-db", async ({ page, context, }) => {
    32 const uniqueToken = atkUtilities.createRandomString(6);
    33 const testId = "(ATK-PW-1150)";
  • assigned to @mpelayo

  • Miguel Pelayo added 1 commit

    added 1 commit

    Compare with previous version

  • added 1 commit

    • 058920d1 - Add parentheses back, remove from other id.

    Compare with previous version

  • added 1 commit

    • ee29e89e - 3389607: Remove click() on text test.

    Compare with previous version

  • added 1 commit

    • ab5a192a - 3389607: Add missing semicolon.

    Compare with previous version

  • added 2 commits

    Compare with previous version

  • Made many more changes in !8 (merged).

  • Please register or sign in to reply
    Loading