Standardize the use of page.assert_text('some-text')
I propose that we standardize the use of page.assert_text('some-text')
to improve tests reliability and to remove unnecessary expectations.
Sometimes we need to add expectations inside tests preconditions, just because without them, the next action can happen too fast, and the test may fail due to particular text not being displayed yet.
In such cases, I suggest that instead of using something like expect(page).to have_content('some text')
we use page.assert_text('some-text')
.
Below is an MR I've opened that address this point for a single test, but I suggest that we identify any other case where this happens, and use the defined standard instead.
Cc @gl-quality
Edited by Walmyr Lima e Silva Filho