Codeception Results OK (02:36.341)

Cli Tests

+ 1-YiiCept: 0.67s

    I run shell command "yii"
    I see in shell output "This is Yii version 2.0."
    I don't see in shell output "warning"
    I run shell command "cd / && yii"
    I see in shell output "This is Yii version 2.0."
    I run shell command "yii help"
    I see in shell output "The following commands are available"
    I see in shell output "- db"
    I see in shell output "app/setup"
    I see in shell output "user/create"

+ 2-AppControllerCept: 0.52s

    I run shell command "yii app/config"
    I see in shell output "id"
    I run shell command "yii app/env"
    I see in shell output "APP_NAME"
    I run shell command "yii app/version"
    I see in shell output "Application Version"

+ 3-SetupCept: 12.33s

    I am going to run the setup command
    I run shell command "yii app/setup"
    I can see in shell output "Initializing application"
    I see in shell output "[OK]"
    I see in shell output "Done."
    I am going to check if all migrations have been applied
    I run shell command "yii migrate/up --interactive=0"
    I see in shell output "No new migrations found"
    I don't see in shell output "error"
    I am going to change the admin user password
    I run shell command "yii user/password admin admin1"
    I see in shell output "Password has been changed"
    I am going to change the preview user password
    I run shell command "yii user/password preview preview1"
    I see in shell output "Password has been changed"
    I run shell command "yii cache/flush-all"
    I see in shell output "The following cache components were processed:"

+ 4-RbacCept: 1s

    I am going to run the rbac command
    I run shell command "yii user/create test661fe0bfc614a@test.local test661fe0bfc614a test1234"
    I can see in shell output "User has been created!"
    I run shell command "yii rbac/assign Editor test661fe0bfc614a"
    I can see in shell output "Role has been assigned"
    I run shell command "yii rbac/assign Editor test661fe0bfc614a"
    I can see in shell output "Role is already assigned to this user"
    I run shell command "yii rbac/revoke Editor test661fe0bfc614a"
    I can see in shell output "Role has been revoked"

+ 5-AppCleanupCept: 0.18s

    I run shell command "yii app/cleanup"
    I see in shell output "Cleanup"
    I see in shell output "Cleanup was successful."
    I see in shell output "Web assets have been deleted."

+ AssetsCept » 0.19s

    I run shell command "yii app/clear-assets --interactive=0"
    I see in shell output "Web assets have been deleted"

+ AuditCept » 0.18s

    I run shell command "yii audit/cleanup --interactive=0"
    I see in shell output "skipped audit/trail"
    I see in shell output "cleaned audit/mail"
    I see in shell output "cleaned audit/error"
    I see in shell output "Cleanup was successful"

+ DbDumpCept » 0.55s

    I run shell command "yii db/export"
    I see in shell output "success"

+ FsCept » 0.84s

    I run shell command "yii fs"
    I see in shell output "FlyCLI"
    I run shell command "yii fs/mkdir local://test661fe0bfc614a"
    I run shell command "yii fs/ls local://"
    I see in shell output "test661fe0bfc614a"
    I run shell command "yii fs/rmdir --interactive=0 local://test661fe0bfc614a"
    I run shell command "yii fs/ls local://"
    I don't see in shell output "test661fe0bfc614a"

+ TranslateCept » 1.66s

    I run shell command "yii translate/scan"
    I see in shell output "Detect PhpFunction - BEGIN"
    I see shell output matches "/Detected language element(.)/"
    I see shell output matches "/Extracting messages from(.*)twig_template/"
    I run shell command "yii translate/optimize"
    I see in shell output "removed from database."

+ VersionCept » Check application versioning 0.74s

    I am going to check files in root path: /app
    I don't see file found "./version","/app"
    I am going to check files in root path: /app/src
    I see file found "version","/app/src"
    I open file "/app/src/version"
    I don't see in this file "dev"
    I don't see in this file "dirty"
    I don't see in this file "\n"

+ QueueCest » Run queue 0.13s

    I run shell command "yii queue"
    I see in shell output "Jobs"

+ ScriptsCest » Unique number 0s

    I run shell command "/usr/local/bin/unique-number.sh 999"
    I see shell output matches "/[0-9]{1,3}/"

+ ScriptsCest » Run a yii command with no ENV variables set 0.18s

    I am going to prepare ENV variables export (usually done in startup command)
    I run shell command "/usr/local/bin/export-env.sh"
    I run shell command "env -i sh /root/export-env && yii audit/cleanup --interactive=0 --entry --age=0"
    I see in shell output "Cleanup was successful."

E2e (chrome) Tests

+ AdminLoginCest » Login as master 3.04s

    I am going to try to login as master

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I see "master","#link-user-menu"
    I make screenshot "admin-login-frontend"

+ TestRoleCest » Create a preview RBAC role 5.3s

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am going to try to view and create pages
    I am on page "/user/role/create"
    I fill field "#role-name","__Test661fe0dbba137"
    I fill field "#role-description","Test Role"
    I click "Save"
    I wait for element visible ".grid-view"
    I see "Test Role","td"

+ TestUserCest » Create a preview user 8.79s

    I am going to try to login with correct credentials

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am going to try to view and create pages
    I am on page "/user/admin/create"
    I fill field "#user-email","test-661fe0e0f1e78@example.com"
    I fill field "#user-username","test-661fe0e0f1e78"
    I fill field "#user-password","test1234"
    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 for element visible ".selectize-input"
    I click ".selectize-input"
    I wait for element visible "[data-value="pages"]"
    I click "[data-value="pages"]"
    I wait for element visible ".item[data-value="pages"]"
    I make screenshot "success-preview-items"
    I click "Create"
    I make screenshot "success-preview-items-remove"
    I click "Update assignments"
    I wait 2
    I make screenshot "success-preview-items-update"

+ CookieConsentCest » Ensure that Cookie Consent initial state is correct 2s

    I am on page "/test/cookie-consent/consent"
    I wait for element visible ".cookie-consent-popup"
    I wait for element visible ".cookie-consent-accept-all"
    I wait for element visible ".cookie-consent-controls-toggle"
    I wait for element visible ".cookie-consent-details-toggle"
    I don't see ".cookie-consent-controls"
    I don't see ".cookie-consent-details"
    I don't see "necessary cookies enabled"
    I don't see "statistics cookies enabled"
    I don't see cookie "cookie_consent_status"
    I click ".cookie-consent-details-toggle"
    I wait for element visible ".cookie-consent-details"
    I click ".cookie-consent-controls-toggle"
    I wait for element visible ".cookie-consent-controls"
    I wait for element visible ".cookie-consent-save"
    I click ".cookie-consent-save"
    I wait for element visible ".necessary-cookies-enabled"
    I don't see "statistics cookies enabled"
    I see cookie "cookie_consent_status"
    I click ".cookie-consent-toggle"
    I click ".cookie-consent-accept-all"
    I wait for element visible ".necessary-cookies-enabled"
    I wait for element visible ".statistics-cookies-enabled"
    I see cookie "cookie_consent_status"
    I click ".cookie-consent-toggle"
    I click ".cookie-consent-link"
    I wait for element visible ".privacy-view"

+ JavaScriptCest » Ensure that JavaScript works 2.7s

    I am going to check javascript with a modal
    I am on page "/en"
    I don't see "#phd-info-panel"
    I don't see "App Version"
    I don't see "Project Version"

+ I login "editor","editor1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","editor"
    I fill field "input[name="LoginForm[password]"]","editor1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am going to hide the info button
    I press key "body","h"
    I don't see "#phd-info-button a"
    I am going to show the info button
    I press key "body","h"
    I wait for element visible "#phd-info-button"
    I move mouse over "#phd-info-button"
    I click "#phd-info-button a[data-target="#phd-info-modal"]"
    I wait for element visible "#phd-info-modal"
    I see element "#phd-info-modal"
    I make screenshot "modal"
    I click "#phd-info-modal .close"
    I don't see "#phd-info-modal"

+ LayoutCest » Ensure that there is no horizontal scrollbar 0.5s

    I am on page "/"
    I wait for element ".nav"
    I execute js "return document.getElementsByTagName("html")[0].scrollWidth > document.getElementsByTagName("html")[0].clientWidth"
    I assert false false,"Horizontal scrollbar"
    I make screenshot "home-no-scrollbars"

+ LoginCest » Ensure that login works 14.31s

    I am going to try to login with empty credentials

+ I login "","",false

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]",""
    I fill field "input[name="LoginForm[password]"]",""
    I click "#LoginForm button"
    I expect to see validations errors
    I wait for text "Login cannot be blank."
    I see "Password cannot be blank."
    I am going to try to login with wrong credentials

+ I login "admin","wrong",false

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","admin"
    I fill field "input[name="LoginForm[password]"]","wrong"
    I click "#LoginForm button"
    I wait 1
    I expect to see validations errors
    I see "Invalid login or password"
    I am going to try to login with correct credentials

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I make screenshot "login-success"
    I am on page "/backend"
    I expect to see backend elements
    I see "master"
    I click "[data-toggle="control-sidebar"]"
    I wait 0.5
    I click "a[href="#control-sidebar-modules-tab"]"
    I wait 0.5
    I see "Application Modules","h3"
    I see "Widget Content","h4"
    I see "Page Tree","h4"
    I see "Settings","h4"
    I see "Audit","h4"
    I see "Jobs","h4"
    I see "filefly","a"
    I see "redirects","a"
    I am on page "/site/index"
    I expect to see user info
    I click ".nav #link-user-menu a"
    I see element "#link-logout"
    I click "#link-logout"
    I wait for element not visible "#link-logout"
    I don't see "405","h1"
    I see element "#link-login"
    I make screenshot "logout-success"

+ LoginCest » Ensure that login works 2.41s

    I am going to try to login with correct credentials

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    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 wait for element not visible "#link-logout"
    I don't see "405","h1"
    I see element "#link-login"
    I make screenshot "logout-success"

+ MobileCest » Ensure that responsive mobile layout works 1.05s

    I resize window 320,568
    I am on page "/user/security/login"
    I make screenshot "mobile"
    I click "button.navbar-toggle"
    I wait for element visible "#link-login"
    I see element "li.active"
    I see element "#link-login"
    I make screenshot "mobile-open-menu"

+ BackendAccessCest » Ensure backend access works 12.31s

    I expect to have no access without login
    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 expect to have no access with login

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am on page "/backend"
    I make screenshot "backend-dashboard"
    I am on page "/backend/config/view"
    I see "Components","li"
    I see "Modules","li"
    I make screenshot "backend-view-config"
    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"
    I am on page "/user"
    I see "Users","li"
    I see "Roles","li"
    I see "Permissions","li"
    I make screenshot "user-admin"
    I am on page "/resque/manage"
    I see "Workers",".small-box"

+ EditorAccessCest » Ensure that preview access works 2.08s

    I am on page "/site/index"
    I make screenshot "debug-preview-access-login"
    I am going to try to login as preview

+ I login "preview","preview1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","preview"
    I fill field "input[name="LoginForm[password]"]","preview1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I expect not to see an inactive widget
    I am on page "/ru/site/index"
    I don't see element "#cell-main .hrzg-widget-widget"

+ I don't see horizontal scrollbars

    I execute js "return document.getElementsByTagName("html")[0].scrollWidth > document.getElementsByTagName("html")[0].clientWidth"
    I assert false false,"Horizontal scrollbar"
    I am on page "/de/site/index"
    I don't see ".alert"
    I don't see "Sign in"
    I can see "Demo","h1"

+ I don't see horizontal scrollbars

    I execute js "return document.getElementsByTagName("html")[0].scrollWidth > document.getElementsByTagName("html")[0].clientWidth"
    I assert false false,"Horizontal scrollbar"
    I click "Beispielseite A"
    I don't see ".alert"

+ I don't see horizontal scrollbars

    I execute js "return document.getElementsByTagName("html")[0].scrollWidth > document.getElementsByTagName("html")[0].clientWidth"
    I assert false false,"Horizontal scrollbar"
    I make screenshot "success-preview-access"

+ HomeEnCest » Ensure that home page is not visible without login 3.56s

    I am on page "/"
    I see "Sign in",".panel.panel-default"
    I see element "#link-login"
    I make screenshot "home"

+ LanguagesEnCest » Ensure that language urls and redirects work 1.09s

    I am on page "/site/index"
    I see current url equals "/en/user/login"
    I am on page "/de/site/index"
    I see current url equals "/de/user/login"
    I see "Anmelden"
    I make screenshot "language-de"
    I am on page "/xx"
    I see element ".site-error"
    I am on page "/en-us"
    I see element ".site-error"

+ PreviewAccessCest » Ensure that preview access works 2.52s

    I am on page "/site/index"
    I make screenshot "debug-preview-access-login"
    I am going to try to login as preview

+ I login "preview","preview1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","preview"
    I fill field "input[name="LoginForm[password]"]","preview1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am on page "/en/site/index"

+ I don't see horizontal scrollbars

    I execute js "return document.getElementsByTagName("html")[0].scrollWidth > document.getElementsByTagName("html")[0].clientWidth"
    I assert false false,"Horizontal scrollbar"
    I am on page "/de/site/index"
    I don't see ".alert"
    I don't see "Sign in"
    I can see "Demo","h1"

+ I don't see horizontal scrollbars

    I execute js "return document.getElementsByTagName("html")[0].scrollWidth > document.getElementsByTagName("html")[0].clientWidth"
    I assert false false,"Horizontal scrollbar"
    I click "Beispielseite A"
    I don't see ".alert"

+ I don't see horizontal scrollbars

    I execute js "return document.getElementsByTagName("html")[0].scrollWidth > document.getElementsByTagName("html")[0].clientWidth"
    I assert false false,"Horizontal scrollbar"
    I expect not to see admin/editor elements
    I don't see element ".nav-extra *"
    I don't see element ".nav-backend"
    I make screenshot "success-preview-access"

+ SignupCest » Ensure that sign-up works according to APP_USER_ENABLE_REGISTRATION setting 0.55s

    I expect sign-up is NOT enabled
    I am on page "/user/login"
    I don't see link "Don't have an account? Sign up!","/en/user/register"
    I am on page "/user/register"
    I see element ".site-error"

+ BackendModuleCest » Ensure that Backend works 2.7s

    I am going to try to login with correct credentials

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am going to test backend menu
    I am on page "/backend/default/index"
    I don't see "Backend navigation"
    I click ".sidebar-toggle.btn"
    I see "Backend navigation"

+ ContactModuleCest » Test if the contact page is reachable and throws corresponding errors 0.44s

    I am on page "/contact/default/index"
    I wait for element visible ".wrap"
    I don't see "404"
    I see "400"

+ PagesModuleCest » Ensure that Pages works 4.92s

    I am going to try to login with correct credentials

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am going to try to view and create pages
    I am on page "/pages"
    I wait for element visible ".kv-heading-container"
    I see "Nodes",".kv-heading-container"
    I make screenshot "success-pages-index"
    I am going to Check/load the root node of 'en'
    I click "li[data-key="1001"] .kv-node-detail"
    I wait for element visible ".kv-detail-container form.form-vertical"
    I make screenshot "success-pages-root-node"
    I am going to Add a node
    I click ".kv-toolbar-container .kv-create"
    I wait for element visible "#tree-name"
    I fill field "#tree-name","Test-661fe1244b5d2"
    I click "Apply"
    I wait for text "Test-661fe1244b5d2",10,".kv-tree"
    I make screenshot "success-pages-add-node"

+ PrototypeModuleCest » Ensure that Prototype works 7.1s

    I am going to try to login with correct credentials

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am going to try to view and create snippets
    I am on page "/prototype"
    I am on page "/prototype/less/create"
    I wait for element visible ".giiant-crud button[type="submit"]"
    I can see "Create","button"
    I am on page "/prototype/twig/create"
    I wait for element visible ".giiant-crud button[type="submit"]"
    I can see "Create","button"
    I am on page "/prototype/html/create"
    I wait for element visible ".giiant-crud button[type="submit"]"
    I can see "Create","button"

+ RedirectsCest » Ensure that 'redirects' module works 3.85s

    I am going to try to login with correct credentials

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am on page "/redirects"
    I click "New"
    I wait for element visible ".redirect-form"
    I select option "Redirect[type]","Path redirect"
    I fill field "Redirect[from_path]","/661fe132"
    I fill field "Redirect[to_path]","/site/index"
    I select option "#redirect-status_code input","301"
    I click "Create"
    I wait for element not visible ".redirect-form"
    I see "661fe132","table"
    I make screenshot "redirect-create"

+ RedirectsCest » Ensure that 'redirects' module works 1.65s

    I am going to try to login with correct credentials

+ I login "preview","preview1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","preview"
    I fill field "input[name="LoginForm[password]"]","preview1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am going to test the redirect
    I am on page "/661fe132"
    I see in current url "/site/index"
    I wait for element visible ".site-index"
    I make screenshot "after-redirect"

+ SettingsModuleCest » Try to test 2.59s

    I am on page "/settings"
    I don't see "Settings","h1"

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am on page "/settings"
    I see "Settings","h1"
    I make screenshot "settings"

+ UserCreateCest » Ensure that User module works 3.53s

    I am going to try to login with correct credentials

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am going to try to view and create snippets
    I am on page "/user/admin/create"
    I fill field "#user-email","tbeer@hane.com"
    I fill field "#user-username","darian.champlin"
    I fill field "#user-password","9l3rM</1Saw$w@o{i,N"
    I click "button[type="submit"]"
    I wait for text "Success",10,"#growls-br > .growl.growl-notice"
    I see in form fields "form",{"User[username]":"darian.champlin"}

+ UserPasswordRecoveryCest » Ensure that password recovery works 0.62s

    I am on page "/user/security/login"
    I click "p > a"
    I fill field "#resendform-email","admin@example.local"
    I click "button[type="submit"]"

+ WidgetsModuleCest » Ensure that widgets-module works 14.75s

    I am going to try to login with correct credentials

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am going to try to view and create widgets
    I am on page "/widgets"
    I see "Widget contents",".info-box"
    I make screenshot "widgets"
    I expect to see widget container(s)
    I see element "//a[@href="/en/widgets/test/index"]"
    I am on page "/widgets/test/index"
    I move mouse over ".hrzg-widget-widget-container"
    I make screenshot "widgets-frontend-container"
    I am going to create a widget from a container
    Mouse-over first container
    I move mouse over "#cell-header.hrzg-widget-widget-container"
    I wait for element visible "#cell-header .hrzg-widget-container-controls .btn-primary"
    I click "#cell-header .hrzg-widget-container-controls .btn-primary"
    I wait for element visible "#cell-header .hrzg-widget-container-controls ul"
    I click "#cell-header .hrzg-widget-container-controls .btn-primary"
    I wait for element not visible "#cell-header .hrzg-widget-container-controls ul"
    Mouse-over second container
    I move mouse over "#cell-container.hrzg-widget-widget-container"
    I wait for element visible "#cell-container .hrzg-widget-container-controls .btn-primary"
    I click "#cell-container .hrzg-widget-container-controls .btn-primary"
    I wait for element visible "#cell-container .hrzg-widget-container-controls ul"
    I click "Content","#cell-container .hrzg-widget-container-controls ul"
    I switch to window "backend-test"
    I wait for element visible ".widget-create"
    I am going to select a widget
    I select option "#widgetcontent-widget_template_id","Content"
    I wait for element visible "#widgetcontent-default_properties_json-container .well"
    I see in field "#widgetcontent-route","widgets/test/index"
    I fill field "root[title]","Title: test661fe0bfc614a"
    I click "Add Paragraph","form#widget-create"
    I wait for element visible "form .cke"
    I see element "form .cke_contents"
    I make screenshot "widgets-backend-create-1"
    I click "Create"
    I wait 3
    I switch to window
    I reload page
    I see "Title: test661fe0bfc614a","h2"

+ WidgetsModuleTemplateCest » Ensure that widgets-module works 3.35s

    I am going to try to login with correct credentials

+ I login "master","master1"

    I am on page "/user/security/login"
    I wait for element visible "#LoginForm"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I wait for element not visible "#LoginForm",30
    I wait 0.1
    I am going to check widget-templates
    I am on page "/widgets/crud/widget-template/create"
    I wait for element "form"
    I see "Create","button"
    I make screenshot "widget-templates"

Functional Tests

+ AccessControlCest » Ensure that access control works | "/backend/default/index" 0.16s

    I am on page "/backend/default/index"
    I can see current url matches "|user/login|"

+ AccessControlCest » Ensure that access control works | "/backend/config/view" 0.02s

    I am on page "/backend/config/view"
    I can see current url matches "|user/login|"

+ AccessControlCest » Ensure that access control works | "/prototype" 0.02s

    I am on page "/prototype"
    I can see current url matches "|user/login|"

+ AccessControlCest » Ensure that access control works | "/prototype/html" 0.02s

    I am on page "/prototype/html"
    I can see current url matches "|user/login|"

+ AccessControlCest » Ensure that access control works | "/prototype/less" 0.02s

    I am on page "/prototype/less"
    I can see current url matches "|user/login|"

+ AccessControlCest » Ensure that access control works | "/prototype/less/create" 0.02s

    I am on page "/prototype/less/create"
    I can see current url matches "|user/login|"

+ AccessControlCest » Ensure that access control works | "/settings" 0.02s

    I am on page "/settings"
    I can see current url matches "|user/login|"

+ AccessControlCest » Ensure that access control works | "/settings/default/create" 0.02s

    I am on page "/settings/default/create"
    I can see current url matches "|user/login|"

+ AccessControlCest » Ensure that access control works | "/translatemanager" 0.02s

    I am on page "/translatemanager"
    I can see current url matches "|user/login|"

+ AccessControlCest » Ensure that access control works | "/user" 0.02s

    I am on page "/user"
    I can see current url matches "|user/login|"

+ AccessControlCest » Ensure that access control works | "/pages" 0.02s

    I am on page "/pages"
    I can see current url matches "|user/login|"

+ AccessControlCest » Ensure that access control works | "/resque" 0.02s

    I am on page "/resque"
    I can see current url matches "|user/login|"

+ AccessControlCest » Ensure that access control works | "/audit" 0.03s

    I am on page "/audit"
    I can see current url matches "|user/login|"

+ AccessControlUiCest » Ensure that access control UI works 1.09s

    I am on page "/"
    I don't see link "/en/backend",".nav"
    I don't see "master"

+ I login "master","master1"

    I am on page "/user/security/login"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I see "master"

+ BackendLinksCest » Click backend links 4.7s

    I am going to start in the backend

+ I login "master","master1"

    I am on page "/user/security/login"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I am on page "/backend"
    I grab multiple "section.content a[href^="/"]","href"
    I am going to check /
    I am on page "/"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /user/admin/index
    I am on page "/user/admin/index"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /backend/config/view
    I am on page "/backend/config/view"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /audit
    I am on page "/audit"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /backend/rbac/diagram
    I am on page "/backend/rbac/diagram"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /backend/rbac/assignments
    I am on page "/backend/rbac/assignments"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /backend/cache/flush
    I am on page "/backend/cache/flush"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /backend/default/index
    I am on page "/backend/default/index"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /filefly
    I am on page "/filefly"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /pages/default
    I am on page "/pages/default"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /widgets/crud/widget
    I am on page "/widgets/crud/widget"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /translatemanager/language
    I am on page "/translatemanager/language"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /widgets/crud/widget-template
    I am on page "/widgets/crud/widget-template"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /prototype/less
    I am on page "/prototype/less"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /prototype/twig
    I am on page "/prototype/twig"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /prototype/html
    I am on page "/prototype/html"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /user/admin
    I am on page "/user/admin"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /settings/default?sort=section
    I am on page "/settings/default?sort=section"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /backend/config/view
    I am on page "/backend/config/view"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /backend/rbac/assignments
    I am on page "/backend/rbac/assignments"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /redirects
    I am on page "/redirects"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /resque
    I am on page "/resque"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /audit
    I am on page "/audit"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"
    I am going to check /settings/default?SettingSearch%5Bid%5D=&SettingSearch%5Bsection%5D=help
    I am on page "/settings/default?SettingSearch%5Bid%5D=&SettingSearch%5Bsection%5D=help"
    I cant see element ".site-error"
    I cant see element ".alert-warning .alert"

+ ErrorPageCest » Ensure that error page works 0.12s

    I am on page "/_this_page_does_not_exist_"
    I see response code is 404

+ LoginFunctionalCest » Ensure that login works 0.51s

    I am going to try to login with empty credentials

+ I login "",""

    I am on page "/user/security/login"
    I fill field "input[name="LoginForm[login]"]",""
    I fill field "input[name="LoginForm[password]"]",""
    I click "#LoginForm button"
    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 login "admin","wrong"

    I am on page "/user/security/login"
    I fill field "input[name="LoginForm[login]"]","admin"
    I fill field "input[name="LoginForm[password]"]","wrong"
    I click "#LoginForm button"
    I expect to see validations errors
    I see "Invalid login or password"
    I am going to try to login with correct credentials

+ I login "master","master1"

    I am on page "/user/security/login"
    I fill field "input[name="LoginForm[login]"]","master"
    I fill field "input[name="LoginForm[password]"]","master1"
    I click "#LoginForm button"
    I am on page "/site"
    I see response code is 200
    I am on page "/backend"
    I see response code is 200
    I expect to see backend elements
    I see "master"
    I see "Application Modules","h3"
    I see "Widget Content","h4"
    I see "Page Tree","h4"
    I see "Settings","h4"
    I see "Audit","h4"
    I see "Jobs","h4"
    I see "filefly","a"
    I see "redirects","a"

Unit Tests

ControllerTest » App 0.01s

ControllerTest » Controller 0s

UserTest » User login logout 0.05s

UserTest » Non existing user model 0s

Summary

Successful scenarios: 61
Failed scenarios: 0
Skipped scenarios: 0
Incomplete scenarios: 0
Useless scenarios: 0