File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
tests/e2e-playwright/tests/platform_CI_tests Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 99from typing import Iterable
1010
1111import pytest
12- from playwright .sync_api ._generated import BrowserContext , Playwright
12+ from playwright .sync_api ._generated import BrowserContext , Playwright , expect
1313from 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 ()
You can’t perform that action at this time.
0 commit comments