Fix flaky redo document capture feature test 100% for sure, no chance of failure#8633
Fix flaky redo document capture feature test 100% for sure, no chance of failure#8633
Conversation
The changes to this spec introduced in #8576 made it really flaky in CI. This commit resets the spec to how it was before that change. Note that the file was renamed in the meantime.
These were from #8581
This is the test added in #8576, reworked to be independent of other tests in this file. Hopefully this reduces the flakiness. [skip changelog]
|
(I'm going to run CI several times on this branch before marking ready to merge.) |
a88c30b to
f474a4c
Compare
|
Looking at an example failure, I'd suspect a reason it may fail is because the submission of document capture involves an asynchronous submission we're not waiting to complete. It seems like if we substitute the attach and submit behaviors with the |
|
It looks like we're using |
|
Oh, d'oh, I totally misread the test setup. That's what I get for commenting so early in the morning 🤦 You're right about it already using That is strange, since it doesn't seem like there's anything asynchronous in clicking "Continue" from the barcode warning page that would delay the page transition (source). |
|
Gonna close this PR--I'm working on this in the background, and we have a ticket now (LG-10192), but this PR is just noise ATM. |
#8576 added a new feature test to check that, when using the "redo document capture" action, users are not able to access earlier steps of the IdV process (doc capture, ssn, etc.) after submitting the "Verify info" screen. We added this new test in among some existing redo document capture feature tests.
After adding the new test, we noticed it was flaky in CI. We temporarily disabled the new test in #8607, but the flakiness remained with other tests in the same file. Our current hypothesis is that some of the refactoring we did to allow adding the new test in amongst the existing tests has led to the flakiness.
This PR:
contextto minimize interactions with other tests in the file.