mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
38 lines
917 B
JavaScript
38 lines
917 B
JavaScript
|
|
Feature('login');
|
|
|
|
Before(function(I) {
|
|
I.amOnPage('/');
|
|
I.resizeWindow(1000, 1000);
|
|
I.waitForElement('.e-powered', 10);
|
|
});
|
|
|
|
Scenario('login/page', function(I) {
|
|
I.see('Powered by RainLoop', '.e-powered');
|
|
I.see('Remember Me');
|
|
});
|
|
|
|
Scenario('login/empty-fields-error', function(I) {
|
|
I.fillField('.inputEmail', '');
|
|
I.fillField('.inputPassword', '');
|
|
I.click('.buttonLogin');
|
|
I.see('Remember Me');
|
|
I.seeElement('.controls.error');
|
|
});
|
|
|
|
Scenario('login/auth-error', function(I) {
|
|
I.fillField('.inputEmail', 'xxx');
|
|
I.fillField('.inputPassword', 'yyy');
|
|
I.click('.buttonLogin');
|
|
I.waitForVisible('.alertError', 3);
|
|
I.see('Authentication failed', '.alertError');
|
|
});
|
|
|
|
Scenario('login/language-popup', function(I) {
|
|
I.click('.flag-name');
|
|
I.wait(1);
|
|
I.see('Choose your language', '.b-languages-content');
|
|
I.click('.close', '.b-languages-content');
|
|
I.wait(1);
|
|
I.dontSee('Choose your language');
|
|
});
|