bcgov / digital-journeys

PSA Forms System
https://bcgov.github.io/digital-journeys/
Apache License 2.0
8 stars 7 forks source link

[Tool]: Coding dates into Mat/Par Selenium Test #1884

Closed Stella-Archer closed 2 months ago

Stella-Archer commented 2 months ago

User Story “As a Selenium test builder, I want a efficient way to record dates of leaves so they sync up accurately not matter when I run the tests so I can get accurate results from testing and not hand fix tests every time we need to deploy.”

Tasks Steps needed to achieve this feature.

Acceptance Criteria The checklist the product owner uses to decide whether a story is done. Objective and discrete answers (such as a yes/no) that can be tested.

MikePSA commented 2 months ago

Try these two execute script commands for the Maternity leave - Start date page and it should solve this problem. To change the amount of days, you need to change the number "+ 3" in first line.

First line

Second line

image.png

After you need to record a click on the date field and any blank space on the page just so the form registers the input in the date field so you can click the next button without validation errors, otherwise it won't let you.

Andrew-Vargas-bcgov commented 2 months ago

going to write some documentation for the teams channel selenium testing folder