mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-20 02:46:10 +02:00
Cleanup
This commit is contained in:
parent
39331d8881
commit
222f267193
4 changed files with 2 additions and 61 deletions
|
@ -1,35 +0,0 @@
|
|||
from playwright.sync_api import Playwright, sync_playwright, expect
|
||||
|
||||
|
||||
def run(playwright: Playwright) -> None:
|
||||
browser = playwright.chromium.launch(headless=False)
|
||||
context = browser.new_context()
|
||||
page = context.new_page()
|
||||
page.goto("http://localhost:8080/login")
|
||||
page.get_by_label("Account name or email").click()
|
||||
page.get_by_label("Account name or email").fill("Crash")
|
||||
page.get_by_label("Account name or email").press("Tab")
|
||||
page.get_by_label("Password", exact=True).fill("Override")
|
||||
page.get_by_role("button", name="Log in").click()
|
||||
page.get_by_role("link", name="Talk", exact=True).click()
|
||||
page.get_by_placeholder("Search conversations or users").click()
|
||||
page.locator("#app-content-vue").click()
|
||||
page.get_by_role("button", name="Create a new group conversation").click()
|
||||
page.locator("label").filter(has_text="Allow guests to join via link").locator("path").click()
|
||||
page.get_by_placeholder("Conversation name").click()
|
||||
page.get_by_placeholder("Conversation name").fill("Drum talk")
|
||||
page.get_by_role("button", name="Create conversation").click()
|
||||
page.get_by_role("button", name="Copy conversation link").click()
|
||||
page.locator("#modal-description-ytlxf").get_by_role("button", name="Close", exact=True).click()
|
||||
page.get_by_role("button", name="Reply").click()
|
||||
page.get_by_role("textbox", name="Write message, @ to mention someone …").fill("Pretty good! Working on a new drum fill!")
|
||||
page.get_by_role("textbox", name="Write message, @ to mention someone …").press("Enter")
|
||||
page.close()
|
||||
|
||||
# ---------------------
|
||||
context.close()
|
||||
browser.close()
|
||||
|
||||
|
||||
with sync_playwright() as playwright:
|
||||
run(playwright)
|
23
join_chat.py
23
join_chat.py
|
@ -1,23 +0,0 @@
|
|||
from playwright.sync_api import Playwright, sync_playwright, expect
|
||||
|
||||
|
||||
def run(playwright: Playwright) -> None:
|
||||
browser = playwright.chromium.launch(headless=False)
|
||||
context = browser.new_context()
|
||||
page = context.new_page()
|
||||
page.goto("http://localhost:8080/call/2sfgz4ir")
|
||||
page.get_by_role("button", name="Edit").click()
|
||||
page.get_by_placeholder("Guest").fill("Splash")
|
||||
page.get_by_role("button", name="Save name").click()
|
||||
page.get_by_role("textbox", name="Write message, @ to mention someone …").click()
|
||||
page.get_by_role("textbox", name="Write message, @ to mention someone …").fill("Hey, how's it going?")
|
||||
page.get_by_role("textbox", name="Write message, @ to mention someone …").press("Enter")
|
||||
page.close()
|
||||
|
||||
# ---------------------
|
||||
context.close()
|
||||
browser.close()
|
||||
|
||||
|
||||
with sync_playwright() as playwright:
|
||||
run(playwright)
|
|
@ -9,7 +9,6 @@ def get_random_text() -> str:
|
|||
characters = string.ascii_letters + string.digits
|
||||
return ''.join(random.choice(characters) for _ in range(size_in_bytes))
|
||||
|
||||
|
||||
def send_message(sender, message):
|
||||
sender.get_by_role("textbox", name="Write message, @ to mention someone …").click()
|
||||
sender.get_by_role("textbox", name="Write message, @ to mention someone …").fill(message)
|
||||
|
@ -46,9 +45,9 @@ def create_conversation(playwright: Playwright) -> str:
|
|||
page.locator("label").filter(has_text="Allow guests to join via link").locator("svg").click()
|
||||
page.get_by_role("button", name="Create conversation").click()
|
||||
page.get_by_role("button", name="Copy conversation link").click()
|
||||
page.close()
|
||||
|
||||
# ---------------------
|
||||
page.close()
|
||||
context.close()
|
||||
browser.close()
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name: NextCloud MariaDB - Chrome Talk
|
||||
author: Danilo Jesic <danilo@green-coding.berlin>
|
||||
version: 1
|
||||
description: Installs the official NextCloud image and creates a user and starts a Talk conversation
|
||||
description: Installs the official NextCloud image and starts a Talk conversation
|
||||
compose-file: !include compose.yml
|
||||
|
||||
services:
|
||||
|
|
Loading…
Add table
Reference in a new issue