Functional Tests
|
[+] Ensure that access control works (AccessControlCept) 0.43s
|
I am on page "/backend" |
I can see current url matches "|user/login|" |
I am on page "/backend/default/view-config" |
I can see current url matches "|user/login|" |
I am on page "/prototype" |
I can see current url matches "|user/login|" |
I am on page "/prototype/html" |
I can see current url matches "|user/login|" |
I am on page "/settings" |
I can see current url matches "|user/login|" |
I am on page "/translatemanager" |
I can see current url matches "|user/login|" |
I am on page "/rbac" |
I can see current url matches "|user/login|" |
I am on page "/user" |
I can see current url matches "|user/login|" |
I am on page "/pages" |
I can see current url matches "|user/login|" |
|
[+] Ensure that access control ui works (AccessControlUICept) 0.21s
|
I am on page "/" |
I don't see link "/de/backend",".nav" |
I don't see "",".glyphicon.glyphicon-cog" |
I am on page "/user/login" |
I fill field "input[name="login-form[login]"]","admin" |
I fill field "input[name="login-form[password]"]","admin" |
I click "Sign in" |
I see "",".glyphicon.glyphicon-cog" |
|
[+] Ensure that error page works (ErrorPageCept) 0.01s
|
I am on page "/_this_page_does_not_exist_" |
I see response code is 404 |
I see "Not Found" |
|
[+] Ensure that language urls work (LanugagesCept) 0.19s
|
I am going to try to login with correct credentials |
I am on page "/user/login" |
I fill field "input[name="login-form[login]"]","admin" |
I fill field "input[name="login-form[password]"]","admin" |
I click "Sign in" |
I expect to see user info |
I am on page "/xx" |
I see response code is 404 |
I am on page "/" |
I see response code is 200 |
I am on page "/de" |
I see response code is 200 |
|
[+] Ensure that login works (LoginCept) 0.31s
|
I am on page "/user/login" |
I see "Sign In","h3" |
I am going to try to login with empty credentials |
I fill field "input[name="login-form[login]"]","" |
I fill field "input[name="login-form[password]"]","" |
I click "Sign in" |
I expect to see validations errors |
I see "Login cannot be blank." |
I see "Password cannot be blank." |
I am going to try to login with wrong credentials |
I fill field "input[name="login-form[login]"]","admin" |
I fill field "input[name="login-form[password]"]","wrong" |
I click "Sign in" |
I expect to see validations errors |
I see "Invalid login or password" |
I am going to try to login with correct credentials |
I fill field "input[name="login-form[login]"]","admin" |
I fill field "input[name="login-form[password]"]","admin" |
I click "Sign in" |
I expect to see user info |
|
[+] Check application versioning (VersionCept) 0.02s
|
I don't see file found "version" |
I see file found "src/version" |
I open file "src/version" |
I don't see in this file "dev" |
I don't see in this file "dirty" |
I am going to check version visiblity in modal |
I expect to see application version 4.3.0-beta2-3-g44894cc
|
I am on page "/user/security/login" |
I see "4.3.0-beta2-3-g44894cc
",".modal-body" |
|
Unit Tests
|
[+] Tests\codeception\unit\models\UserTest::testUserLogin 0.01s
|
|
[+] Tests\codeception\unit\models\UserTest::testNonExistingUserModel 0.02s
|
|
[+] Tests\codeception\unit\models\UserTest::testUserLogout 0.01s
|
|
Cli Tests
|
[+] (GiiCept) 0.2s
|
I run shell command "yii help gii" |
I see in shell output "DESCRIPTION" |
I see in shell output "SUB-COMMANDS" |
I see in shell output "gii/" |
I run shell command "yii help gii/giiant-crud" |
I see in shell output "DESCRIPTION" |
I see in shell output "yii gii/giiant-crud" |
|
[+] (YiiCept) 0.15s
|
I run shell command "yii" |
I see in shell output "This is Yii version 2.0." |
|
Acceptance Tests
|
[+] Login as admin (app/05-AdminLoginCept) 3.51s
|
I am going to try to login as admin |
I am on page "/en/user/login" |
I fill field "input[name="login-form[login]"]","admin" |
I fill field "input[name="login-form[password]"]","admin" |
I click "Sign in" |
I wait 2 |
I see "admin","#link-user-menu" |
I make screenshot "admin-login-frontend" |
|
[+] Create a preview rbac role (app/10-PreviewRoleCept) 9s
|
I am on page "/en/user/login" |
I am going to try to login as admin |
I fill field "input[name="login-form[login]"]","admin" |
I fill field "input[name="login-form[password]"]","admin" |
I click "Sign in" |
I wait 2 |
I am going to try to view and create pages |
I am on page "/rbac/role/create" |
I fill field "#role-name","Preview" |
I fill field "#role-description","Preview Role" |
I click "Save" |
I wait 2 |
I see "Preview Role","td" |
|
[+] Create a preview user (app/11-PreviewUserCept) 16.04s
|
I am going to try to login with correct credentials |
I am on page "/en/user/login" |
I see "Sign in","h3" |
I fill field "input[name="login-form[login]"]","admin" |
I fill field "input[name="login-form[password]"]","admin" |
I click "Sign in" |
I wait 2 |
I am going to try to view and create pages |
I am on page "/user/admin/create" |
I fill field "#user-email","preview@example.com" |
I fill field "#user-username","preview" |
I fill field "#user-password","preview1234" |
I click "Save" |
I wait 3 |
I see in page source "Update user account" |
I make screenshot "success-preview-user" |
I am going to assign permission to preview user |
I click "Assignments" |
I wait 2 |
I click ".select2-selection__rendered" |
I wait 2 |
I click "[id$="-app_site"]" |
I click ".select2-selection__rendered" |
I click "[id$="-pages_default_page"]" |
I wait 1 |
I make screenshot "success-preview-items" |
I click "Update assignments" |
I wait 2 |
I make screenshot "success-preview-items-update" |
|
[+] Ensure backend access works (app/BackendAccessCept) 6.9s
|
I am on page "/backend" |
I don't see element ".small-box" |
I am on page "/prototype/html" |
I don't see "Htmls","h1" |
I am on page "/prototype/less" |
I don't see "Lesses","h1" |
I am on page "/settings" |
I don't see "Settings","h1" |
I am on page "/en/user/login" |
I fill field "input[name="login-form[login]"]","admin" |
I fill field "input[name="login-form[password]"]","admin" |
I click "Sign in" |
I wait 2 |
I am on page "/backend" |
I see element ".small-box" |
I am on page "/prototype/html" |
I see "Htmls","h1" |
I am on page "/prototype/less" |
I see "Lesses","h1" |
I am on page "/settings" |
I see "Settings","h1" |
|
[+] Ensure that home page is not visible without login (app/HomeCept) 1.03s
|
I am on page "/" |
I see "Sign in",".panel.panel-default" |
I see link "Login" |
I make screenshot "home" |
|
[+] Ensure that javascript works (app/JavaScriptCept) 1.49s
|
I am going to check javascript with a modal |
I am on page "/en-us" |
I don't see "#infoModal" |
I click "footer .pull-left a" |
I wait for element visible "#infoModal",3 |
I see element "#infoModal" |
I make screenshot "modal" |
I click "#infoModal .close" |
I don't see "#infoModal" |
|
[+] Ensure that language urls and redirects work (app/LanguagesCept) 1.81s
|
I am on page "/" |
I see current url equals "/en/user/login" |
I am on page "/de" |
I see current url equals "/de/user/login" |
I see "Anmelden" |
I make screenshot "language-de" |
I am on page "/en-us" |
I see "Not Found" |
|
[+] Ensure that login works (app/LoginCept) 3.92s
|
I am on page "/en/user/login" |
I see "Sign in","h3" |
I am going to try to login with correct credentials |
I fill field "input[name="login-form[login]"]","admin" |
I fill field "input[name="login-form[password]"]","admin" |
I click "Sign in" |
I wait 2 |
I make screenshot "login-success" |
I expect to see user info |
I click ".nav #link-user-menu a" |
I see element "#link-logout" |
I click "#link-logout" |
I make screenshot "logout-success" |
|
[+] Ensure that responsive mobile layout works (app/MobileCept) 4.06s
|
I resize window 320,568 |
I am on page "/" |
I make screenshot "mobile" |
I click "button.navbar-toggle" |
I wait 3 |
I see element "li.active" |
I see link "Login" |
I make screenshot "mobile-open-menu" |
|
[+] Ensure that preview access works (app/PreviewAccessCept) 4s
|
I am on page "/" |
I make screenshot "debug-preview-access-login" |
I am on page "/en/user/login" |
I am going to try to login as preview |
I fill field "input[name="login-form[login]"]","preview" |
I fill field "input[name="login-form[password]"]","preview1234" |
I click "Sign in" |
I wait 2 |
I am on page "/" |
I don't see ".alert" |
I make screenshot "success-preview-access" |
|
[+] Ensure that sign-up works (app/SignupCept) 0.77s
|
I am on page "/user/register" |
I see "Sign up" |
|
Summary
Successful scenarios: |
22 |
Failed scenarios: |
0 |
Skipped scenarios: |
0 |
Incomplete scenarios: |
0 |
|