Skip to content

Commit

Permalink
Fixing test automation issues (#1472)
Browse files Browse the repository at this point in the history
* remove sub status on tests

- it's no longer used so it should be removed.

* fix logic flakiness and change browser
  • Loading branch information
Valencia2019 committed May 8, 2024
1 parent 94e0b3e commit 415ec76
Show file tree
Hide file tree
Showing 16 changed files with 5 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ jobs:
with:
working-directory: tests/cypress
spec: cypress/e2e/${{ matrix.containers }}
browser: chrome
browser: chromium
config: baseUrl=${{ env.APPLICATION_ENDPOINT }}
- name: Upload screenshots
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -495,7 +495,7 @@ jobs:
with:
working-directory: tests/cypress
spec: cypress/e2e/a11y/${{ matrix.containers }}.spec.js
browser: chrome
browser: chromium
config: baseUrl=${{ env.APPLICATION_ENDPOINT }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Feature: Validate Waiver Form is checking ID format without period
Then verify the "1915(b) Waiver Amendment Number" error message line 2 is "For amendments, the last two digits start with ‘01’ and ascends."
Then verify the submit button is disabled
Then clear the ID Input box
Then into "1915(b) Waiver Amendment Number" type "MD-12323.R01.01"
Then into "1915(b) Waiver Amendment Number" type "MD-12323.R01.03"
Then verify ID error message is not present
Then verify the submit button is not disabled

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Feature: Validate Waiver Form is checking ID format without period
Then verify the "1915(b) Waiver Amendment Number" error message line 2 is "For amendments, the last two digits start with ‘01’ and ascends."
Then verify the submit button is disabled
Then clear the ID Input box
Then into "1915(b) Waiver Amendment Number" type "MD-12323.R01.01"
Then into "1915(b) Waiver Amendment Number" type "MD-12323.R01.03"
Then verify ID error message is not present
Then verify the submit button is not disabled

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,5 @@ Feature: Waiver Package Details View: Appendix K Amendment for a CMS User
Then click Enable Formal RAI Response Withdraw package action
Then Click on Submit Button
Then verify the status on the card is "Pending"
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then verify package actions header is visible
Then verify Disable Formal RAI Response Withdraw package action exists
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ Feature: Waiver Package Details View: Appendix K Amendment for a State User
Then click the Waiver Number link in the first row
Then verify the package details page is visible
Then verify 2 action cards exist
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then verify package actions header is visible
Then verify withdraw package action exists
Then verify Withdraw Formal RAI Response package action exists
Expand Down Expand Up @@ -271,7 +270,6 @@ Feature: Waiver Package Details View: Appendix K Amendment for a State User
Then search for "MD-22958.R00.02"
Then click the Waiver Number link in the first row
Then verify the package details page is visible
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then click Withdraw Formal RAI Response package action
Then into "Additional Information" type "Automated test to withdraw the RAI Response."
Then Click the Submit Button without waiting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,5 @@ Feature: CHIP SPA CMS Details View - Card View with Actions
Then click Enable Formal RAI Response Withdraw package action
Then Click on Submit Button
Then verify the status on the card is "Pending"
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then verify package actions header is visible
Then verify Disable Formal RAI Response Withdraw package action exists
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ Feature: CHIP SPA State Details View - Card View with Actions
# Then click the SPA ID link in the first row
# Then verify the package details page is visible
# Then verify 2 action cards exist
# Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
# Then verify package actions header is visible
# Then verify withdraw package action exists
# Then verify Withdraw Formal RAI Response package action exists
Expand Down Expand Up @@ -253,7 +252,6 @@ Feature: CHIP SPA State Details View - Card View with Actions
# Then search for "MD-23-7650-VM"
# Then click the SPA ID link in the first row
# Then verify the package details page is visible
# Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
# Then click Withdraw Formal RAI Response package action
# Then into "Additional Information" type "Automated test to withdraw the RAI Response."
# Then Click the Submit Button without waiting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,5 @@ Feature: Waiver Package Details View: Initial Waivers
Then click Enable Formal RAI Response Withdraw package action
Then Click on Submit Button
Then verify the status on the card is "Pending"
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then verify package actions header is visible
Then verify Disable Formal RAI Response Withdraw package action exists
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ Feature: Waiver Package Details View: Initial Waivers
Then click the Waiver Number link in the first row
Then verify the package details page is visible
Then verify 2 action cards exist
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then verify package actions header is visible
Then verify withdraw package action exists
Then verify Withdraw Formal RAI Response package action exists
Expand Down Expand Up @@ -288,7 +287,6 @@ Feature: Waiver Package Details View: Initial Waivers
Then search for "MD-22116.R00.00"
Then click the Waiver Number link in the first row
Then verify the package details page is visible
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then click Withdraw Formal RAI Response package action
Then into "Additional Information" type "Automated test to withdraw the RAI Response."
Then Click the Submit Button without waiting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ Feature: Medicaid SPA CMS Details View - Card View with Actions
Then click Enable Formal RAI Response Withdraw package action
Then Click on Submit Button
Then verify the status on the card is "Pending"
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then verify package actions header is visible
Then verify Disable Formal RAI Response Withdraw package action exists

Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ Feature: Medicaid SPA State Details View - Card View with Actions
Then search for "MD-23-7652-VM"
Then click the SPA ID link in the first row
Then verify the package details page is visible
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then click Withdraw Formal RAI Response package action
Then into "Additional Information" type "Automated test to withdraw the RAI Response."
Then Click the Submit Button without waiting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,5 @@ Feature: Waiver Package Details View: Waiver Renewal for a CMS User
Then click Enable Formal RAI Response Withdraw package action
Then Click on Submit Button
Then verify the status on the card is "Pending"
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then verify package actions header is visible
Then verify Disable Formal RAI Response Withdraw package action exists
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ Feature: Waiver Package Details View: Waiver Renewals for a State User
Then click the Waiver Number link in the first row
Then verify the package details page is visible
Then verify 2 action cards exist
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then verify package actions header is visible
Then verify withdraw package action exists
Then verify Withdraw Formal RAI Response package action exists
Expand Down Expand Up @@ -275,7 +274,6 @@ Feature: Waiver Package Details View: Waiver Renewals for a State User
Then search for "MD-22116.R01.00"
Then click the Waiver Number link in the first row
Then verify the package details page is visible
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then click Withdraw Formal RAI Response package action
Then into "Additional Information" type "Automated test to withdraw the RAI Response."
Then Click the Submit Button without waiting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,5 @@ Feature: Waiver Package Details View: 1915 b Waiver Amendment for a CMS User
Then click Enable Formal RAI Response Withdraw package action
Then Click on Submit Button
Then verify the status on the card is "Pending"
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then verify package actions header is visible
Then verify Disable Formal RAI Response Withdraw package action exists
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ Feature: Waiver Package Details View: 1915 b Waiver Amendment for a State User
Then click the Waiver Number link in the first row
Then verify the package details page is visible
Then verify 2 action cards exist
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then verify package actions header is visible
Then verify withdraw package action exists
Then verify Withdraw Formal RAI Response package action exists
Expand Down Expand Up @@ -243,7 +242,6 @@ Scenario: Screen Enhance: 1915 b Waiver Amendment Details View - Withdraw RAI Re
Then search for "MD-22204.R00.02"
Then click the Waiver Number link in the first row
Then verify the package details page is visible
Then verify the sub status on the card is Withdraw Formal RAI Response Enabled
Then click Withdraw Formal RAI Response package action
Then into "Additional Information" type "Automated test to withdraw the RAI Response."
Then Click the Submit Button without waiting
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/support/pages/oneMacFormPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class oneMacFormPage {
cy.get(elementFromLabel[whereTo]).clear();
}
inputInto(whereTo, newValue) {
cy.get(elementFromLabel[whereTo]).type(newValue);
cy.get(elementFromLabel[whereTo]).type(newValue, { delay: 200 });
}
verifyPrefill(whereTo) {
cy.xpath(`//h3[text()='${whereTo}']`)
Expand Down

0 comments on commit 415ec76

Please sign in to comment.