Skip to content

Commit

Permalink
15906 - Implement user flow for e2e smoke test for Receiver Settings …
Browse files Browse the repository at this point in the history
…Edit Page (#16004)
  • Loading branch information
penny-lischer authored Sep 26, 2024
1 parent 108ff2a commit 7c8500a
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,19 @@ test.describe("Organization Edit Page", {
const rowCount = await organizationEditPage.page.locator("#orgreceiversettings .usa-table tbody tr").count();
expect(rowCount).toBeGreaterThanOrEqual(1);
});

test("can edit an organization receiver", async ({ organizationEditPage }) => {
const firstOrgReceiver = await organizationEditPage.page.locator("#orgreceiversettings").nth(0).locator("td").nth(0).innerText();
await organizationEditPage.page.locator('#orgreceiversettings').getByRole('link', { name: 'Edit' }).nth(0).click();
await expect(organizationEditPage.page).toHaveURL(`/admin/orgreceiversettings/org/ignore/receiver/${firstOrgReceiver}/action/edit`);
await expect(organizationEditPage.page.getByText(`Org name: ignore`)).toBeVisible();
await expect(organizationEditPage.page.getByText(`Receiver name: ${firstOrgReceiver}`)).toBeVisible();

await expect(organizationEditPage.page.getByTestId("name")).not.toBeEmpty();
await expect(organizationEditPage.page.getByTestId("topic")).not.toBeEmpty();
await expect(organizationEditPage.page.getByTestId("customerStatus")).not.toBeEmpty();
await expect(organizationEditPage.page.getByTestId("translation")).not.toBeEmpty();
});
});
});
});

0 comments on commit 7c8500a

Please sign in to comment.