Skip to content

Commit 68ee78c

Browse files
fix e2e tests
1 parent de312d3 commit 68ee78c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/e2e-playwright/tests/platform_CI_tests/test_platform.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from typing import Iterable
1010

1111
import pytest
12-
from playwright.sync_api._generated import BrowserContext, Playwright
12+
from playwright.sync_api._generated import BrowserContext, Playwright, expect
1313
from pydantic import AnyUrl
1414

1515

@@ -108,9 +108,11 @@ def test_simple_workspace_workflow(
108108
and response.request.method == "POST"
109109
) as response_info:
110110
page.get_by_test_id("newWorkspaceButton").click()
111-
page.wait_for_timeout(500)
111+
112+
workspace_title_field = page.get_by_test_id("workspaceEditorTitle")
113+
# wait until the title is automatically filled up
114+
expect(workspace_title_field).not_to_have_value("")
112115
page.get_by_test_id("workspaceEditorSave").click()
113-
page.wait_for_timeout(500)
114116

115117
_workspace_id = response_info.value.json()["data"]["workspaceId"]
116118
page.get_by_test_id(f"workspaceItem_{_workspace_id}").click()

0 commit comments

Comments
 (0)