-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: complete reorg feat: added new test id fix: correct lint fix: remove commented out files fix: update snapshot fix: remove e2e tests from coverage calc fix: update path
- Loading branch information
1 parent
affc73b
commit b4962e4
Showing
70 changed files
with
811 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
import { test } from "@playwright/test"; // add expect when writing assertions | ||
|
||
// TODO | ||
test.describe.skip("Dashboard page", { tag: ["@dashboard"] }, () => { | ||
test.describe.skip("UI validations", () => { | ||
test.skip("nav banner updated", async () => {}); | ||
|
||
test.skip("page header", async () => {}); | ||
|
||
test.skip("SPA and Waiver tabs", async () => {}); | ||
|
||
test.skip("search field", async () => {}); | ||
|
||
test.skip("columns button", async () => {}); | ||
|
||
test.skip("filters buttons", async () => {}); | ||
|
||
test.skip("export button", async () => {}); | ||
|
||
test.describe.skip("dashboard table", () => { | ||
test.describe.skip("spas", () => { | ||
test.skip("column headers", async () => {}); | ||
|
||
test.skip("table data", async () => {}); | ||
|
||
test.skip("table footer", async () => {}); | ||
}); | ||
|
||
test.describe.skip("waivers", () => { | ||
test.skip("column headers", async () => {}); | ||
|
||
test.skip("table data", async () => {}); | ||
|
||
test.skip("table footer", async () => {}); | ||
}); | ||
}); | ||
}); | ||
|
||
test.describe.skip("navigation validation", () => { | ||
test.skip("switch to waivers", async () => {}); | ||
|
||
test.skip("switch to SPAs", async () => {}); | ||
|
||
test.skip("new submission button", async () => {}); | ||
|
||
test.skip("package actions", async () => {}); // from table | ||
|
||
test.describe.skip("load spa package details", () => { | ||
test.describe.skip("medicaid spa", async () => {}); | ||
|
||
test.describe.skip("chip spa", async () => {}); | ||
}); | ||
|
||
test.describe.skip("load waiver package details", () => { | ||
test.describe.skip("1915(b)", () => {}); | ||
|
||
test.describe.skip("1915(c)", () => {}); | ||
}); | ||
}); | ||
|
||
test.describe.skip("workflow validation", () => { | ||
test.describe.skip("table actions", () => { | ||
test.describe.skip("spas", () => { | ||
test.describe.skip("sort", () => {}); | ||
|
||
test.describe.skip("change record count", () => {}); | ||
|
||
test.describe.skip("page navigation", () => {}); | ||
|
||
test.describe.skip("show/hide columns", () => {}); // add export validation here | ||
|
||
test.describe.skip("filters", () => {}); | ||
}); | ||
|
||
test.describe.skip("waivers", () => { | ||
test.describe.skip("sort", () => {}); | ||
|
||
test.describe.skip("change record count", () => {}); | ||
|
||
test.describe.skip("page navigation", () => {}); | ||
|
||
test.describe.skip("show/hide columns", () => {}); // add export validation here | ||
|
||
test.describe.skip("filters", () => {}); | ||
}); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { test, expect } from "@playwright/test"; | ||
|
||
test.describe("Medicaid SPA - Sub Doc", () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto("/"); | ||
await page.getByTestId("Dashboard-d").click(); | ||
await page.locator('a[href*="details/Medicaid%20SPA/CO-22-2020"]').click(); | ||
}); | ||
|
||
test.describe("UI - Validation", () => { | ||
test.describe.skip("Status", () => { | ||
test("should display Status items", () => {}); | ||
}); | ||
test.describe("form actions", () => { | ||
test("should display the details page", async ({ page }) => { | ||
// elements before to be validated | ||
|
||
await expect( | ||
page.locator( | ||
'a[href*="upload-subsequent-documents/Medicaid SPA/CO-22-2020?origin=details"]', | ||
), | ||
).toBeVisible(); | ||
await expect( | ||
page.locator( | ||
'a[href*="upload-subsequent-documents/Medicaid SPA/CO-22-2020?origin=details"]', | ||
), | ||
).toContainText("Upload Subsequent Document"); | ||
|
||
// elements after to be validated | ||
}); | ||
}); | ||
|
||
test.describe.skip("package details", () => {}); | ||
|
||
test.describe.skip("package activity", () => {}); | ||
}); | ||
|
||
test.describe("Naviation - Validation", () => { | ||
test("navigate to withdraw package page", () => { | ||
// see below | ||
}); | ||
|
||
test("navigate to sub doc page", async ({ page }) => { | ||
await page | ||
.locator( | ||
'a[href*="/actions/upload-subsequent-documents/Medicaid SPA/CO-22-2020?origin=details"]', | ||
) | ||
.click(); | ||
|
||
await expect(page.getByTestId("detail-section")).toBeVisible(); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
test.describe.skip("Form Submission", () => { | ||
test("Verify that the given details displayed on the package details page for any form type", async () => {}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
test.describe.skip("Form Submission", () => { | ||
test("Create and submit a CHIP SPA", async () => {}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { test, expect } from "@playwright/test"; | ||
|
||
test.describe("Medicaid SPA Details page", { tag: ["@SPA", "@FCexample"] }, () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto("/dashboard"); | ||
// await page.goto("/new-submission/spa/medicaid/create?origin=spas"); | ||
await page.getByTestId("new-sub-button").click(); | ||
await page.getByTestId("card-inner-wrapper").first().click(); | ||
await page.waitForTimeout(500); | ||
await page.getByTestId("card-inner-wrapper").first().click(); | ||
await page.waitForTimeout(500); | ||
await page.getByTestId("card-inner-wrapper").last().click(); | ||
await page.waitForTimeout(500); | ||
}); | ||
|
||
test("file choose sample", async ({ page }) => { | ||
const fileName = "upload-sample.png"; | ||
|
||
await expect(page.getByTestId("attachment-section")).toBeVisible(); | ||
await expect(page.getByTestId("cmsForm179-click")).toBeVisible(); | ||
|
||
const filePath = `../fixtures/${fileName}`; | ||
await page.getByTestId("cmsForm179-upload").setInputFiles(filePath); | ||
await expect(page.getByTestId(`${fileName}-chip`)).toBeVisible(); | ||
}); | ||
}); |
5 changes: 5 additions & 0 deletions
5
test/e2e/forms/waiver/1915-b/comprehensive/capitated-amend-waiver.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
test.describe.skip("Form Submission", () => { | ||
test("Create and submit a Capitated Amendment Waiver", async () => {}); | ||
}); |
5 changes: 5 additions & 0 deletions
5
test/e2e/forms/waiver/1915-b/comprehensive/capitated-initial-waiver.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
test.describe.skip("Form Submission", () => { | ||
test("Create and submit a Capitated Initial Waiver", async () => {}); | ||
}); |
5 changes: 5 additions & 0 deletions
5
test/e2e/forms/waiver/1915-b/comprehensive/capitated-renewal-waiver.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
test.describe.skip("Form Submission", () => { | ||
test("Create and submit a Capitated Renewal Waiver", async () => {}); | ||
}); |
5 changes: 5 additions & 0 deletions
5
test/e2e/forms/waiver/1915-b/ffs/contracting-amend-waiver.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
test.describe.skip("Form Submission", () => { | ||
test("Create and submit a Contracting Amendment Waiver", async () => {}); | ||
}); |
5 changes: 5 additions & 0 deletions
5
test/e2e/forms/waiver/1915-b/ffs/contracting-initial-waiver.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
test.describe.skip("Form Submission", () => { | ||
test("Create and submit a Contracting Initial Waiver", async () => {}); | ||
}); |
5 changes: 5 additions & 0 deletions
5
test/e2e/forms/waiver/1915-b/ffs/contracting-renewal-waiver.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
test.describe.skip("Form Submission", () => { | ||
test("Create and submit a Contracting Renewal Waiver", async () => {}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
test.describe.skip("Form Submission", () => { | ||
test("Create and submit a Appendix K Amendment Waiver", async () => {}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
test.describe.skip("Form Submission", () => { | ||
test("Create and submit a Temporary Extension Waiver", async () => {}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { test, expect } from "@playwright/test"; | ||
import { HomePage } from "../pages/home.page"; | ||
|
||
let homePage: HomePage; | ||
|
||
test.describe("home page", { tag: ["@home", "@e2e", "@sample"] }, () => { | ||
test.beforeEach(async ({ page }) => { | ||
homePage = new HomePage(page); | ||
|
||
await page.goto("/"); | ||
}); | ||
|
||
test("has title", async ({ page }) => { | ||
await expect(page).toHaveTitle("OneMAC"); | ||
}); | ||
|
||
test("should not display a menu", async () => { | ||
await expect(homePage.desktop.signInBtn).not.toBeVisible(); | ||
}); | ||
|
||
test("see freqiently asked questions header when in FAQ page", async ({ page }) => { | ||
const popup = page.waitForEvent("popup"); | ||
await homePage.desktop.faqLink.click(); | ||
const foundFaqHeading = await popup; | ||
|
||
await expect( | ||
foundFaqHeading.getByRole("heading", { name: "Frequently Asked Questions" }), | ||
).toBeVisible(); | ||
}); | ||
|
||
test("see dashboard link when logged in", async ({ page }) => { | ||
await expect(page.getByTestId("Dashboard-d")).toBeVisible(); | ||
await expect(homePage.desktop.homeLink).toBeVisible(); | ||
}); | ||
}); |
Oops, something went wrong.