mirror of
https://git.cloudron.io/cloudron/peertube-app.git
synced 2024-12-18 06:06:36 +00:00
Fix test
This commit is contained in:
parent
3c7afbe0ca
commit
82be3d5f13
1 changed files with 5 additions and 8 deletions
|
@ -123,12 +123,10 @@ describe('Application life cycle test', function () {
|
|||
async function completeSetup() {
|
||||
let button;
|
||||
|
||||
// await browser.executeScript('localStorage.clear();');
|
||||
await browser.get(`https://${app.fqdn}`);
|
||||
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
|
||||
|
||||
let say_cmd = await getOS() == "Darwin" ? "say" : "spd-say";
|
||||
|
@ -136,7 +134,6 @@ describe('Application life cycle test', function () {
|
|||
|
||||
await rl.question('Is tab closed? ');
|
||||
}
|
||||
}
|
||||
|
||||
async function uploadVideo() {
|
||||
browser.get('https://' + app.fqdn + '/videos/upload');
|
||||
|
|
Loading…
Reference in a new issue