GSA-TTS / FAC

GSA's Federal Audit Clearinghouse
Other
18 stars 5 forks source link

Cypress test for unlock after certification #2998

Open tadhg-ohiggins opened 9 months ago

tadhg-ohiggins commented 9 months ago

We need Cypress coverage for the unlock icon that shows up after a user hits the “ready for certification” button (but before any further certification happens).

This means bringing a submission through to the point where that button gets pressed, but then going back to /audit/ and verifying that the unlock icon and link to the unlock page are present.

Ensuring that the lock goes away and that the submission is editable after the unlock flow would also be good.

eazapata23 commented 7 months ago

Given user clicks on unlock

Image

And user is taken to unlock-after-certification

Image

At this point, the test would involve the user going back to /audit/ to verify the Unlock icon and link are present? Is this right?

Image

eazapata23 commented 7 months ago

@tadhg-ohiggins does this sound about right?

tadhg-ohiggins commented 7 months ago

After they hit “Unlock submission”, the test would involve going back to /audit/ and verifying that the status is now “In Progress”, since that's the status unlocking moves a submission to.

eazapata23 commented 7 months ago

Progress so far..

https://github.com/GSA-TTS/FAC/assets/99770283/85325118-2cf8-477e-b5e3-610259c7c92b

bit of trickery i've encountered before is selecting from the table the right associated audit, not sure how the table populates or orders the audits