in issues/48694_681/user_tool.py [0:0]
def task_check(page):
random_int_1 = 13
random_int_2 = 21
workspace_name = f"WS-{random_int_1}{random_int_2}"
room_name = f"r-{random_int_1}{random_int_2}"
email_1 = f"dev091197+{random_int_1}+{random_int_2}@gmail.com"
test_name = "test inzi"
page.get_by_label("My settings").click()
page.wait_for_timeout(2000)
page.get_by_test_id("InitialSettingsPage").get_by_label("Workspaces").click()
page.get_by_role("button", name="New workspace").first.click()
page.wait_for_timeout(1000)
page.get_by_test_id("WorkspacePageWithSections").get_by_text("Name").click()
page.wait_for_timeout(1000)
page.get_by_role("textbox", name="Name").press("ControlOrMeta+a")
page.wait_for_timeout(1000)
page.get_by_role("textbox", name="Name").fill(workspace_name)
page.wait_for_timeout(1000)
page.get_by_role("button", name="Save").click()
page.wait_for_timeout(1000)
page.get_by_label("Back").click()
page.get_by_label("Inbox").click()
page.wait_for_timeout(1000)
page.get_by_label("Start chat (Floating action)").click()
page.get_by_label("Start chat", exact=True).click()
page.wait_for_timeout(1000)
page.get_by_label("Room").first.click()
page.get_by_placeholder("social").fill(room_name)
page.wait_for_timeout(1000)
page.get_by_test_id("WorkspaceNewRoomPage").get_by_label("WS-").get_by_text("Workspace").click()
page.get_by_test_id("ValueSelectorModal").get_by_label(workspace_name).click()
page.wait_for_timeout(1000)
page.get_by_role("button", name="Create room").click()
page.get_by_label(f"#{room_name}").click()
page.wait_for_timeout(1000)
page.get_by_test_id("ReportDetailsPage").get_by_label("Settings").click()
page.get_by_text("Notify me about new messages").click()
page.wait_for_timeout(1000)
page.get_by_test_id("selection-list").get_by_label("Daily").click()
page.get_by_test_id("ReportSettingsPage").get_by_label("Back").click()
page.wait_for_timeout(1000)
page.get_by_label("Leave").click()
page.wait_for_timeout(1000)
page.locator("#composer").last.click()
page.locator("#composer").last.fill(f"message-{random_int_1}{random_int_2}")
page.wait_for_timeout(1000)
page.get_by_label("Send").last.click()
page.get_by_label(f"#{room_name}").click()
page.wait_for_timeout(1000)
page.get_by_test_id("ReportDetailsPage").get_by_label("Settings").click()
page.wait_for_timeout(2000)
expect(page.get_by_text("Daily")).to_be_visible()