This commit is contained in:
Girish Ramakrishnan 2024-01-16 14:23:23 +01:00
parent 3c7afbe0ca
commit 82be3d5f13

View file

@ -123,12 +123,10 @@ 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";
@ -136,7 +134,6 @@ describe('Application life cycle test', function () {
await rl.question('Is tab closed? '); await rl.question('Is tab closed? ');
} }
}
async function uploadVideo() { async function uploadVideo() {
browser.get('https://' + app.fqdn + '/videos/upload'); browser.get('https://' + app.fqdn + '/videos/upload');