Skip to content

Commit

Permalink
15905 - Implement user flow for e2e smoke test for Sender Settings Page
Browse files Browse the repository at this point in the history
  • Loading branch information
penny-lischer committed Sep 25, 2024
1 parent e5cd452 commit 94bc11c
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,20 @@ test.describe("Organization Edit Page", {
const rowCount = await organizationEditPage.page.locator("#orgsendersettings .usa-table tbody tr").count();
expect(rowCount).toBeGreaterThanOrEqual(1);
});

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

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

test.describe("'Organization Receiver Settings' section", () => {
Expand Down

0 comments on commit 94bc11c

Please sign in to comment.