-
Notifications
You must be signed in to change notification settings - Fork 3
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
ndebrah-fearless
wants to merge
15
commits into
main
Choose a base branch
from
playwright-tests-spa
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Playwright tests spa #845
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
41780f2
Adding high-level test steps for CHIP and Medicaid SPAs.
ndebrah-fearless b07c66b
Added test steps and strategies to build code around the creation of …
ndebrah-fearless 32c484f
Added login check to the CHIP and Medicaid scripts
ndebrah-fearless c56408d
Made changes to login check and added login process to Appendix K Ame…
ndebrah-fearless a76272a
Made further changes to login check
ndebrah-fearless 81fd93e
Added code for generating the Medicaid and CHIP SPA details
ndebrah-fearless d27e234
Added Attachments and Submission steps to the SPA scripts
ndebrah-fearless 3a2f5d1
Created basic code structure for Medicaid and CHIP SPA creation scripts
ndebrah-fearless 8c4750d
Merge branch 'main' into playwright-tests-spa
ndebrah-fearless c627546
Removed login instances and finished basic shell of the script
ndebrah-fearless fef91e5
Merge branch 'playwright-tests-spa' of https://github.com/Enterprise-…
ndebrah-fearless 81ef809
Removed unused instances of Page objects
ndebrah-fearless bb2030c
Merge branch 'main' into playwright-tests-spa
ndebrah-fearless da9988a
Removed unused variables and updated branch
ndebrah-fearless 2652a7c
Merge branch 'main' into playwright-tests-spa
ndebrah-fearless File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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", () => { }); | ||
}); |
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 |
---|---|---|
@@ -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"; | ||
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. | ||
}); | ||
}); |
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 |
---|---|---|
@@ -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. | ||
}); | ||
}); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.