snappymail/e2e/tests/main_test.js
2016-09-11 01:11:08 +03:00

25 lines
664 B
JavaScript

var cfg = require('../configuration');
Feature('mailbox');
Before((I) => {
I.amOnPage('/');
I.resizeWindow(1000, 1000);
I.waitForElement('.e-powered', 10);
I.fillField('.inputEmail', cfg.user);
I.fillField('.inputPassword', cfg.pass);
I.click('.buttonLogin');
I.waitForText('test@rainloop.de', 10, '.accountPlace');
I.resizeWindow(1000, 1000);
});
Scenario('mailbox/main', (I) => {
I.see('Select message in list to view it here.');
I.see('Inbox', '.b-folders-system');
I.click('#top-system-dropdown-id');
I.see('Logout', '.RL-SystemDropDown');
I.click('Logout', '.RL-SystemDropDown');
I.waitForText('Powered by RainLoop', 10, '.e-powered');
});