Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playwright tests spa #845

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions test/e2e/tests/home/appendixKamendment.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
import { test } from "@playwright/test";
import { HomePage, LoginPage } from "pages";

test.describe.skip("Form Submission", async () => {
// comment this out until we need it
// test.beforeAll();
test("Create and submit an Appendix K Amendment Waiver", () => {});

test.beforeAll(async ({ page }) => {
/* Login */
// Navigate to the OneMAC Home Page using the home.page.ts file.
// Login to MAKO as a State User, using the loginPage.ts script to navigate to the Login prompt.
// Refer to the users.ts file to view the available users for MAKO.

const homePage = new HomePage(page);
const loginPage = new LoginPage(page);
const email = "Testing";
const password = "Testing";

await homePage;
await loginPage.login(email, password);

});
test("Create and submit an Appendix K Amendment Waiver", () => { });
});
45 changes: 43 additions & 2 deletions test/e2e/tests/home/chipspa.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,48 @@
import { test } from "@playwright/test";
import { HomePage, LoginPage } from "pages";

test.describe.skip("Form Submission", async () => {
// comment this out until we need it
// test.beforeAll();
test("Create and submit a CHIP SPA", () => {});
test.beforeAll(async ({ page }) => {
/* Login */
// Navigate to the OneMAC Home Page using the home.page.ts file.
// Login to MAKO as a State User, using the loginPage.ts script to navigate to the Login prompt.
// Refer to the users.ts file to view the available users for MAKO.

const homePage = new HomePage(page);
const loginPage = new LoginPage(page);
const email = "Testing";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passwords should never be committed to a repo. Rewrite.

const password = "Testing";

await homePage;
await loginPage.login(email, password);

});
test("Create and submit a CHIP SPA", () => {
/* Login */
// Navigate to the OneMAC Home Page using the home.page.ts file.
// Login to MAKO as a State User, using the loginPage.ts script to navigate to the Login prompt.
// Refer to the users.ts file to view the available users for MAKO.

/* Dashboard */
// Select New Submission on the Dashboard page.
// Select State Plan Amendment (SPA) on the Submission Type page.
// Select CHIP SPA on the SPA Type page.
// Select All Other CHIP SPA Submissions for CHIP SPA Type.
// This should take the user to the CHIP SPA Details page.

/* CHIP SPA Details */
// Enter the SPA ID in the following formats: SS-YY-NNNN, SS-YY-NNNN-XXXX where SS is the state and YY is the current year.
// Enter the Proposed Effective Date of CHIP SPA. Default date is the date of SPA creation.

/* Attachments */
// Generate a sample CMS Form 179 file and attach it to the CMS Form 179 field.
// Generate a sample SPA Pages file and attach it to the SPA Pages field.
// Generate a sample Cover Letter file and attach it to the Cover Letter field.

/* Submission */
// Click Submit. The user should then be returned to the Dashboard page.
// Verify the submission of the SPA by searching for the newly created SPA using the Dashboard.
// Confirm that a search of the newly-created SPA opens a Package Details page of the Medicaid SPA.
});
});
42 changes: 39 additions & 3 deletions test/e2e/tests/home/medicaidspa.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,43 @@
import { test } from "@playwright/test";
import { HomePage, LoginPage } from "pages";

test.describe.skip("Form Submission", async () => {
// comment this out until we need it
// test.beforeAll();
test("Create and submit a Medicaid SPA", () => {});
test.beforeAll(async ({ page }) => {
/* Login */
// Navigate to the OneMAC Home Page using the home.page.ts file.
// Login to MAKO as a State User, using the loginPage.ts script to navigate to the Login prompt.
// Refer to the users.ts file to view the available users for MAKO.

const homePage = new HomePage(page);
const loginPage = new LoginPage(page);
const email = "Testing";
const password = "Testing";

await homePage;
await loginPage.login(email, password);

});
test("Create and submit a Medicaid SPA", () => {


/* Dashboard */
// Select New Submission on the Dashboard page.
// Select State Plan Amendment (SPA) on the Submission Type page.
// Select Medicaid SPA on the SPA Type page.
// Select All Other Medicaid SPA Submissions for Medicaid SPA Type.
// This should take the user to the Medicaid SPA Details page.

/* Medicaid SPA Details */
// Enter the SPA ID in the following formats: SS-YY-NNNN, SS-YY-NNNN-XXXX where SS is the state and YY is the current year.
// Enter the Proposed Effective Date of Medicaid SPA. Default date is the date of SPA creation.

/* Attachments */
// Generate a sample CMS Form 179 file and attach it to the CMS Form 179 field.
// Generate a sample SPA Pages file and attach it to the SPA Pages field.

/* Submission */
// Click Submit. The user should then be returned to the Dashboard page.
// Verify the submission of the SPA by searching for the newly created SPA using the Dashboard.
// Confirm that a search of the newly-created SPA opens a Package Details page of the Medicaid SPA.
});
});
Loading