Skip to content

Commit

Permalink
Merge pull request #2755 from beckn/update-test-ids
Browse files Browse the repository at this point in the history
fix: update test ids for all product page
  • Loading branch information
aniketceminds authored Dec 12, 2024
2 parents 34a00a6 + 141b2b1 commit bef79b7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion apps/dragon-foods/pages/product.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const Product = () => {
mr="20px"
>
<Button
text="proceed"
text="Proceed"
dataTest={testIds.Proceed_to_product}
disabled={!checkIsDisabled()}
handleClick={handleOnProceed}
Expand Down
2 changes: 1 addition & 1 deletion apps/harmoni-aids/pages/product.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const Product = () => {
handleClick={handleOnProceed}
/>
</Box>
** Contains non-personal data only dataTest={testIds.disclaimer_text}
** Contains non-personal data only
</Flex>
</Box>
)
Expand Down
2 changes: 1 addition & 1 deletion apps/sky-analytics/pages/product.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const Product = () => {
handleClick={handleOnProceed}
/>
</Box>
** Contains non-personal data only dataTest={testIds.disclaimer_text}
** Contains non-personal data only
</Flex>
</Box>
)
Expand Down
6 changes: 2 additions & 4 deletions cypress/e2e/climate-resilience/dragonFood_e2eTests.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,9 @@ describe('End to End test cases for Dragon Food app', () => {
cy.getByData(testIds.product_radio_text).eq(4).should('contain.text', '3 months').click()

cy.getByData(testIds.product_checkbox).eq(25).should('contain.text', 'Accept').click()
cy.get('.chakra-button').click()
//cy.getByData(testIds.Proceed_to_product).click()
cy.getByData(testIds.Proceed_to_product).click()
cy.wait(3000)
cy.get('.chakra-button').click()
//cy.getByData(testIds.Proceed).click()
cy.getByData(testIds.Proceed).click()
})
it('should validate Billing Details', () => {
cy.getByData(testIds.open_form).click()
Expand Down
6 changes: 2 additions & 4 deletions cypress/e2e/climate-resilience/harmoniAid.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,9 @@ describe('End to End test cases for Harmoni Aid app', () => {
cy.getByData(testIds.product_radio_text).eq(3).should('contain.text', 'One time').click()

cy.getByData(testIds.product_checkbox).eq(11).should('contain.text', 'Accept').click()
cy.get('.chakra-button').click()
//cy.getByData(testIds.Proceed_to_product).click()
cy.getByData(testIds.Proceed_to_product).click()
cy.wait(3000)
cy.get('.chakra-button').click()
//cy.getByData(testIds.Proceed).click()
cy.getByData(testIds.Proceed).click()
})
})
context('Billing Details', () => {
Expand Down
6 changes: 2 additions & 4 deletions cypress/e2e/climate-resilience/skyAnalytics_e2eTests.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,9 @@ describe('End to End test cases for Dragon Food app', () => {
cy.getByData(testIds.product_radio_text).eq(4).should('contain.text', '3 months').click()

cy.getByData(testIds.product_checkbox).eq(17).should('contain.text', 'Accept').click()
cy.get('.chakra-button').click()
//cy.getByData(testIds.Proceed_to_product).click()
cy.getByData(testIds.Proceed_to_product).click()
cy.wait(3000)
cy.get('.chakra-button').click()
//cy.getByData(testIds.Proceed).click()
cy.getByData(testIds.Proceed).click()
})
})
context('Billing Details', () => {
Expand Down

0 comments on commit bef79b7

Please sign in to comment.