forked from cloudron-apps/peertube-app
fix test
This commit is contained in:
parent
45d574157d
commit
260ab9ca79
1 changed files with 15 additions and 0 deletions
15
test/test.js
15
test/test.js
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue