Skip to content

Commit

Permalink
feat: complete FAQ testing
Browse files Browse the repository at this point in the history
  • Loading branch information
zerogravit1 committed Dec 18, 2024
1 parent be68f13 commit 2172022
Show file tree
Hide file tree
Showing 2 changed files with 517 additions and 24 deletions.
66 changes: 66 additions & 0 deletions test/e2e/pages/faq.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,39 @@ export class FAQPage {

readonly pdfs: Record<string, Locator>;

readonly spaIdFormat: Locator;
readonly medicaidSpaAttachments: Locator;
readonly medicaidSpaRai: Locator;
readonly chipSpaAttachments: Locator;
readonly chipSpaRai: Locator;
readonly publicHealthEmergency: Locator;
readonly withdrawSpaRai: Locator;
readonly withdrawPackageSpa: Locator;
readonly withdrawChipSpaRai: Locator;
readonly withdrawPackageChipSpa: Locator;
readonly abpSpaTemplates: Locator;
readonly abpSpaGuides: Locator;
readonly mpcSpaTemplates: Locator;
readonly mpcSpaGuides: Locator;
readonly chipSpaTemplates: Locator;
readonly chipSpaGuides: Locator;

readonly waiverIdFormat: Locator;
readonly waiverRenewalIdFormat: Locator;
readonly waiverAmendmentIdFormat: Locator;
readonly waiverIdHelp: Locator;
readonly waiverCId: Locator;
readonly waiverBAttachments: Locator;
readonly waiverBRaiAttachments: Locator;
readonly waiverExtensionIdFormat: Locator;
readonly waiverExtensionStatus: Locator;
readonly tempExtensionBAttachments: Locator;
readonly tempExtensionCAttachments: Locator;
readonly appK: Locator;
readonly appKAttachments: Locator;
readonly withdrawWaiverRai: Locator;
readonly withdrawPackageWaiver: Locator;

constructor(page:Page) {
this.page = page;

Expand All @@ -25,6 +58,39 @@ export class FAQPage {
this.fileFormats = page.locator("#acceptable-file-formats");
this.onboardingMaterials = page.locator("#onboarding-materials");

this.spaIdFormat = page.locator("#spa-id-format");
this.medicaidSpaAttachments = page.locator("#medicaid-spa-attachments");
this.medicaidSpaRai = page.locator("#medicaid-spa-rai-attachments");
this.chipSpaAttachments = page.locator("#chip-spa-attachments");
this.chipSpaRai = page.locator("#chip-spa-rai-attachments");
this.publicHealthEmergency = page.locator("#public-health-emergency");
this.withdrawSpaRai = page.locator("#withdraw-spa-rai-response");
this.withdrawPackageSpa = page.locator("#withdraw-package-spa");
this.withdrawChipSpaRai = page.locator("#withdraw-chip-spa-rai-response");
this.withdrawPackageChipSpa = page.locator("#withdraw-package-chip-spa");
this.abpSpaTemplates = page.locator("#abp-spa-templates");
this.abpSpaGuides = page.locator("#abp-implementation-guides-spa");
this.mpcSpaTemplates = page.locator("#mpc-spa-templates");
this.mpcSpaGuides = page.locator("#mpc-spa-implementation-guides");
this.chipSpaTemplates = page.locator("#chip-spa-templates");
this.chipSpaGuides = page.locator("#chip-spa-implentation-guides");

this.waiverIdFormat = page.locator("#initial-waiver-id-format");
this.waiverRenewalIdFormat = page.locator("#waiver-renewal-id-format");
this.waiverAmendmentIdFormat = page.locator("#waiver-amendment-id-format");
this.waiverIdHelp = page.locator("#waiver-id-help");
this.waiverCId = page.locator("#waiver-c-id");
this.waiverBAttachments = page.locator("#waiverb-attachments");
this.waiverBRaiAttachments = page.locator("#waiverb-rai-attachments");
this.waiverExtensionIdFormat = page.locator("#waiver-extension-id-format");
this.waiverExtensionStatus = page.locator("#waiver-extension-status");
this.tempExtensionBAttachments = page.locator("#temporary-extensions-b-attachments");
this.tempExtensionCAttachments = page.locator("#temporary-extensions-c-attachments");
this.appK = page.locator("#appk");
this.appKAttachments = page.locator("#appk-attachments");
this.withdrawWaiverRai = page.locator("#withdraw-waiver-rai-response");
this.withdrawPackageWaiver = page.locator("#withdraw-package-waiver");

// HREFs of PDFs
this.pdfs = {
statePlans: page.locator('a[href*="state-plan-macpro"]'),
Expand Down
Loading

0 comments on commit 2172022

Please sign in to comment.