You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
add test for joining preexisting room
This commit is contained in:
@@ -82,6 +82,11 @@ async function replace_input_text(input, text) {
|
||||
await input.type(text);
|
||||
}
|
||||
|
||||
async function wait_and_query_selector(page, selector, timeout = 500) {
|
||||
await page.waitForSelector(selector, {visible: true, timeout});
|
||||
return await page.$(selector);
|
||||
}
|
||||
|
||||
// other helpers
|
||||
|
||||
function rnd_int(max) {
|
||||
@@ -104,6 +109,7 @@ module.exports = {
|
||||
get_outer_html,
|
||||
print_elements,
|
||||
replace_input_text,
|
||||
wait_and_query_selector,
|
||||
rnd_int,
|
||||
riot_url,
|
||||
delay,
|
||||
|
||||
Reference in New Issue
Block a user