Skip to content

Commit 130ece7

Browse files
committed
wait until the title is automatically filled up
1 parent 3d0c47e commit 130ece7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/e2e-playwright/tests/conftest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import arrow
2020
import pytest
2121
from faker import Faker
22-
from playwright.sync_api import APIRequestContext, BrowserContext, Page
22+
from playwright.sync_api import APIRequestContext, BrowserContext, Page, expect
2323
from playwright.sync_api._generated import Playwright
2424
from pydantic import AnyUrl, TypeAdapter
2525
from pytest_simcore.helpers.faker_factories import DEFAULT_TEST_PASSWORD
@@ -415,6 +415,10 @@ def log_in_and_out(
415415

416416

417417
def open_with_resources(page: Page, click_it: bool):
418+
study_title_field = page.get_by_test_id("studyTitleField")
419+
# wait until the title is automatically filled up
420+
expect(study_title_field).not_to_have_value("", timeout=5000)
421+
418422
open_with_resources_button = page.get_by_test_id("openWithResources")
419423
if click_it:
420424
open_with_resources_button.click()

0 commit comments

Comments
 (0)