test: Ensure input field is visible before attempting to click on it.

There is an case of flakiness in the test where we attempt to click on
an input field before it's even visible. Make sure the input field is
visible before attempting to click on it.
This commit is contained in:
joseph 2024-11-08 21:41:48 +00:00 committed by Tim Abbott
parent f1da8a9151
commit 4ab519214a
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ async function close_settings_and_date_picker(page: Page): Promise<void> {
}
async function test_change_full_name(page: Page): Promise<void> {
await page.waitForSelector("#full_name", {visible: true});
await page.click("#full_name");
const full_name_input_selector = 'input[name="full_name"]';