mirror of
https://git.cloudron.io/cloudron/peertube-app.git
synced 2024-12-18 14:16:47 +00:00
Fix test
This commit is contained in:
parent
3c7afbe0ca
commit
82be3d5f13
1 changed files with 5 additions and 8 deletions
13
test/test.js
13
test/test.js
|
@ -123,19 +123,16 @@ describe('Application life cycle test', function () {
|
||||||
async function completeSetup() {
|
async function completeSetup() {
|
||||||
let button;
|
let button;
|
||||||
|
|
||||||
// await browser.executeScript('localStorage.clear();');
|
|
||||||
await browser.get(`https://${app.fqdn}`);
|
await browser.get(`https://${app.fqdn}`);
|
||||||
await browser.sleep(2000);
|
await browser.sleep(2000);
|
||||||
|
|
||||||
if (await browser.findElements(By.xpath('//a[contains(text(), "Configure my instance")]')).then(found => !!found.length)) {
|
await waitForElement(By.xpath('//a[contains(text(), "Configure my instance")]'));
|
||||||
// await waitForElement(By.xpath('//a[contains(text(), "Configure my instance")]'));
|
await browser.findElement(By.xpath('//a[contains(text(), "Configure my instance")]')).click(); // this opens a new window
|
||||||
await browser.findElement(By.xpath('//a[contains(text(), "Configure my instance")]')).click(); // this opens a new window
|
|
||||||
|
|
||||||
let say_cmd = await getOS() == "Darwin" ? "say" : "spd-say";
|
let say_cmd = await getOS() == "Darwin" ? "say" : "spd-say";
|
||||||
execSync(`${say_cmd} "Close the newly opened configuration tab."`);
|
execSync(`${say_cmd} "Close the newly opened configuration tab."`);
|
||||||
|
|
||||||
await rl.question('Is tab closed? ');
|
await rl.question('Is tab closed? ');
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function uploadVideo() {
|
async function uploadVideo() {
|
||||||
|
|
Loading…
Reference in a new issue