This commit is contained in:
Girish Ramakrishnan 2021-09-13 13:27:30 -07:00
parent 45d574157d
commit 260ab9ca79

View file

@ -69,6 +69,20 @@ describe('Application life cycle test', function () {
});
}
function closeAccountSetupDialog(done) {
browser.get('https://' + app.fqdn).then(function () {
return browser.wait(until.elementLocated(By.id('stopDisplayModal')), TEST_TIMEOUT);
}).then(function () {
return browser.findElement(By.xpath('//span[contains(text(), "show me this anymore")]')).click();
}).then(function () {
return browser.findElement(By.xpath('//a[contains(text(), "Set up")]')).click();
}).then(function () {
return browser.sleep(3000);
}).then(function () {
done();
});
}
function logout(done) {
browser.get('https://' + app.fqdn + '/my-account/videos').then(function () {
return browser.wait(until.elementLocated(By.xpath('//div[@class="logged-in-display-name"]')), TEST_TIMEOUT);
@ -152,6 +166,7 @@ describe('Application life cycle test', function () {
it('logout', logout);
it('can login', login.bind(null, username, password));
it('can close account setup dialog', closeAccountSetupDialog);
it('logout', logout);
it('backup app', function () {