diff --git a/tests/_support/AcceptanceTester.php b/tests/_support/AcceptanceTester.php
index 4b8a896cb1..688358af3a 100644
--- a/tests/_support/AcceptanceTester.php
+++ b/tests/_support/AcceptanceTester.php
@@ -21,37 +21,6 @@ class AcceptanceTester extends \Codeception\Actor
{
use _generated\AcceptanceTesterActions;
- /**
- * Install joomla CMS
- *
- * @Given Joomla CMS is installed
- */
- public function joomlaCMSIsInstalled()
- {
- // throw new \Codeception\Exception\Incomplete("Step `Joomla CMS is installed` is not defined");
- }
-
- /**
- * @When Login into Joomla administrator with username :arg1 and password :arg1
- */
- public function loginIntoJoomlaAdministrator($username, $password)
- {
- $I = $this;
- $I->amOnPage('administrator/');
- $I->fillField(LoginPage::$usernameField, $username);
- $I->fillField(LoginPage::$passwordField, $password);
- $I->click(LoginPage::$loginButton);
- }
-
- /**
- * @Then I see administrator dashboard
- */
- public function iSeeAdministratorDashboard()
- {
- $I = $this;
- $I->waitForText(AdminPage::$controlPanelText, 4, AdminPage::$pageTitle);
- }
-
/**
* Method is to set Wait for page title
*
diff --git a/tests/_support/Page/Acceptance/Administrator/ArticleManagerPage.php b/tests/_support/Page/Acceptance/Administrator/ArticleManagerPage.php
index 2b65fc5f64..d735430aeb 100644
--- a/tests/_support/Page/Acceptance/Administrator/ArticleManagerPage.php
+++ b/tests/_support/Page/Acceptance/Administrator/ArticleManagerPage.php
@@ -15,6 +15,6 @@ class ArticleManagerPage extends AdminPage
public static $iconSearch = ['class' => 'icon-search'];
- public static $pageURL = "/administrator/index.php?option=com_content&view=articles";
+ public static $url = "/administrator/index.php?option=com_content&view=articles";
}
diff --git a/tests/_support/Page/Acceptance/Administrator/ControlPanelPage.php b/tests/_support/Page/Acceptance/Administrator/ControlPanelPage.php
new file mode 100644
index 0000000000..b64d4e7b96
--- /dev/null
+++ b/tests/_support/Page/Acceptance/Administrator/ControlPanelPage.php
@@ -0,0 +1,13 @@
+ 'page-title'];
+}
\ No newline at end of file
diff --git a/tests/_support/Page/Acceptance/Administrator/Login.php b/tests/_support/Page/Acceptance/Administrator/Login.php
deleted file mode 100644
index cfa824648b..0000000000
--- a/tests/_support/Page/Acceptance/Administrator/Login.php
+++ /dev/null
@@ -1,36 +0,0 @@
-amOnPage('administrator/');
- $I->fillField(['css' => 'input[data-tests="username"]'], $username);
- $I->fillField(['css' => 'input[data-tests="password"]'], $password);
- $I->click(['css' => 'button[data-tests="log in"]']);
- }
-
- /**
- * @Then I see administrator dashboard
- */
- public function iSeeAdministratorDashboard()
- {
- $I = $this;
- $I->waitForPageTitle('Control Panel', 4);
- }
-}
diff --git a/tests/_support/Page/Acceptance/Administrator/LoginPage.php b/tests/_support/Page/Acceptance/Administrator/LoginPage.php
index 3b4a5a7c0c..4e05057800 100644
--- a/tests/_support/Page/Acceptance/Administrator/LoginPage.php
+++ b/tests/_support/Page/Acceptance/Administrator/LoginPage.php
@@ -5,13 +5,20 @@
class LoginPage extends AdminPage
{
- public static $usernameField = ['css' => 'input[data-tests="username"]'];
-
- public static $passwordField = ['css' => 'input[data-tests="password"]'];
-
- public static $pageTitle = ['class' => 'page-title'];
-
- public static $loginButton = ['css' => 'button[data-tests="log in"]'];
+ /**
+ * @var array Locator for username login form textfield
+ */
+ public static $usernameField = ['id' => 'mod-login-username'];
+
+ /**
+ * @var array Locator for password login form textfield
+ */
+ public static $passwordField = ['id' => 'mod-login-password'];
+
+ /**
+ * @var array Locator for Log in button
+ */
+ public static $loginButton = 'Log in';
- public static $pageURL = "/administrator/index.php";
+ public static $url = "/administrator/index.php";
}
\ No newline at end of file
diff --git a/tests/_support/Page/Acceptance/Administrator/UserAclPage.php b/tests/_support/Page/Acceptance/Administrator/UserAclPage.php
index d97299fc00..080f8ae889 100644
--- a/tests/_support/Page/Acceptance/Administrator/UserAclPage.php
+++ b/tests/_support/Page/Acceptance/Administrator/UserAclPage.php
@@ -6,6 +6,6 @@
class UserAclPage extends AdminPage
{
// include url of current page
- public static $aclPageURL = 'administrator/index.php?option=com_users&view=levels';
+ public static $url = 'administrator/index.php?option=com_users&view=levels';
}
diff --git a/tests/_support/Page/Acceptance/Administrator/UserGroupPage.php b/tests/_support/Page/Acceptance/Administrator/UserGroupPage.php
index edcdad65a4..03095aae91 100644
--- a/tests/_support/Page/Acceptance/Administrator/UserGroupPage.php
+++ b/tests/_support/Page/Acceptance/Administrator/UserGroupPage.php
@@ -6,7 +6,7 @@
class UserGroupPage extends AdminPage
{
// include url of current page
- public static $groupPageURL = 'administrator/index.php?option=com_users&view=groups';
+ public static $url = 'administrator/index.php?option=com_users&view=groups';
}
diff --git a/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php b/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php
index 7b64e2f7b9..20c349ca83 100644
--- a/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php
+++ b/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php
@@ -21,5 +21,5 @@ class UserManagerPage extends AdminPage
public static $title = ['id' => 'jform_title'];
- public static $pageURL = "administrator/index.php?option=com_users&view=users";
+ public static $url = "administrator/index.php?option=com_users&view=users";
}
diff --git a/tests/_support/Step/Acceptance/Administrator/Content.php b/tests/_support/Step/Acceptance/Administrator/Content.php
index 4290a648ce..fdc2349362 100644
--- a/tests/_support/Step/Acceptance/Administrator/Content.php
+++ b/tests/_support/Step/Acceptance/Administrator/Content.php
@@ -12,7 +12,7 @@ class Content extends \AcceptanceTester
public function thereIsAAddContentLink()
{
$I = $this;
- $I->amOnPage(ArticleManagerPage::$pageURL);
+ $I->amOnPage(ArticleManagerPage::$url);
$I->clickToolbarButton('New');
}
@@ -37,12 +37,12 @@ public function iSaveAnArticle()
}
/**
- * @Then I wait for the title :title and see the message :message
+ * @Then I should see the :arg1 message
*/
- public function iShouldSeeTheMessage($title, $message)
+ public function iShouldSeeTheMessage($message)
{
$I = $this;
- $I->waitForPageTitle($title);
+ $I->waitForText($message, 60, AdminPage::$systemMessageContainer);
$I->see($message, AdminPage::$systemMessageContainer);
}
@@ -52,7 +52,7 @@ public function iShouldSeeTheMessage($title, $message)
public function iSearchAndSelectContentArticleWithTitle($title)
{
$I = $this;
- $I->amOnPage(ArticleManagerPage::$pageURL);
+ $I->amOnPage(ArticleManagerPage::$url);
$I->fillField(ArticleManagerPage::$filterSearch, $title);
$I->click(ArticleManagerPage::$iconSearch);
$I->checkAllResults();
@@ -67,23 +67,13 @@ public function iFeatureTheContentWithTitle()
$I->clickToolbarButton('featured');
}
- /**
- * @Then I save and see the :arg1 message
- */
- /*public function iSaveAndSeeTheMessage($message)
- {
- $I = $this;
- $I->waitForPageTitle($message, AdminPage::$systemMessageContainer);
- $I->see($message, AdminPage::$systemMessageContainer);
- }*/
-
/**
* @Given I select the content article with title :arg1
*/
public function iSelectTheContentArticleWithTitle($title)
{
$I = $this;
- $I->amOnPage(ArticleManagerPage::$pageURL);
+ $I->amOnPage(ArticleManagerPage::$url);
$I->fillField(ArticleManagerPage::$filterSearch, $title);
$I->click(ArticleManagerPage::$iconSearch);
$I->checkAllResults();
@@ -109,12 +99,12 @@ public function iSaveTheArticle()
}
/**
- * @Given I have article with name :arg1
+ * @Given I have article with name :title
*/
public function iHaveArticleWithName($title)
{
$I = $this;
- $I->amOnPage(ArticleManagerPage::$pageURL);
+ $I->amOnPage(ArticleManagerPage::$url);
$I->fillField(ArticleManagerPage::$filterSearch, $title);
$I->click(ArticleManagerPage::$iconSearch);
$I->checkAllResults();
@@ -145,7 +135,7 @@ public function iSeeArticleUnpublishMessage($title, $message)
public function iHaveContentArticleWhichNeedsToBeTrash($title)
{
$I = $this;
- $I->amOnPage(ArticleManagerPage::$pageURL);
+ $I->amOnPage(ArticleManagerPage::$url);
$I->fillField(ArticleManagerPage::$filterSearch, $title);
$I->click(ArticleManagerPage::$iconSearch);
$I->checkAllResults();
@@ -169,4 +159,4 @@ public function iSeeArticleTrashMessage($title, $message)
$I->waitForPageTitle($title);
$I->see($message, AdminPage::$systemMessageContainer);
}
-}
\ No newline at end of file
+}
diff --git a/tests/_support/Step/Acceptance/Administrator/Login.php b/tests/_support/Step/Acceptance/Administrator/Login.php
new file mode 100644
index 0000000000..ad89a1f4df
--- /dev/null
+++ b/tests/_support/Step/Acceptance/Administrator/Login.php
@@ -0,0 +1,30 @@
+amOnPage('administrator/');
+ $I->fillField(LoginPage::$usernameField, $username);
+ $I->fillField(LoginPage::$passwordField, $password);
+ $I->click(LoginPage::$loginButton);
+ }
+
+ /**
+ * @Then I should see the administrator dashboard
+ */
+ public function iShouldSeeTheAdministratorDashboard()
+ {
+ $I = $this;
+ $I->waitForPageTitle(ControlPanelPage::$pageTitle, 60, ControlPanelPage::$pageTitleContext);
+ $I->see(ControlPanelPage::$pageTitle, ControlPanelPage::$pageTitleContext);
+ }
+}
\ No newline at end of file
diff --git a/tests/_support/Step/Acceptance/Administrator/User.php b/tests/_support/Step/Acceptance/Administrator/User.php
index 58621f85b3..6cec19bdfd 100644
--- a/tests/_support/Step/Acceptance/Administrator/User.php
+++ b/tests/_support/Step/Acceptance/Administrator/User.php
@@ -15,7 +15,7 @@ class User extends \AcceptanceTester
public function thereIsAAddUserLink()
{
$I = $this;
- $I->amOnPage(UserManagerPage::$pageURL);
+ $I->amOnPage(UserManagerPage::$url);
$I->clickToolbarButton('New');
}
@@ -33,7 +33,7 @@ public function iCreateNewUser($name, $username, $password, $email)
}
/**
- * @When I Save the user
+ * @When I Save the user
*/
public function iSaveTheUser()
{
@@ -42,12 +42,12 @@ public function iSaveTheUser()
}
/**
- * @Then I should wait for the title :title and see the message :message
+ * @Then I should see the :arg1 message
*/
- public function iSeeTheMessage($title, $message)
+ public function iSeeTheMessage($message)
{
$I = $this;
- $I->waitForPageTitle($title);
+ $I->waitForText($message, 60, AdminPage::$systemMessageContainer);
$I->see($message, AdminPage::$systemMessageContainer);
}
@@ -57,7 +57,7 @@ public function iSeeTheMessage($title, $message)
public function iSearchAndSelectTheUserWithUserName($username)
{
$I = $this;
- $I->amOnPage(UserManagerPage::$pageURL);
+ $I->amOnPage(UserManagerPage::$url);
$I->fillField(UserManagerPage::$filterSearch, $username);
$I->click(UserManagerPage::$iconSearch);
$I->checkAllResults();
@@ -77,24 +77,13 @@ public function iAssignedNameAndUserGroup($name, $userGroup)
$I->checkOption('#1group_4');
}
- /**
- * @Then I should wait for :arg1 title and see the :arg2 message
- */
- public function iShouldDisplayTheMessage($title, $message)
- {
- $I = $this;
- $I->clickToolbarButton('Save & Close');
- $I->waitForPageTitle($title);
- $I->see($message, AdminPage::$systemMessageContainer);
- }
-
/**
* @Given I have a user with user name :username
*/
public function iHaveAUserWithUserName($username)
{
$I = $this;
- $I->amOnPage(UserManagerPage::$pageURL);
+ $I->amOnPage(UserManagerPage::$url);
$I->fillField(UserManagerPage::$filterSearch, $username);
$I->click(UserManagerPage::$iconSearch);
$I->checkAllResults();
@@ -109,23 +98,13 @@ public function iBlockTheUser()
$I->clickToolbarButton('unpublish');
}
- /**
- * @Then I wait for the title :title and see the message :message
- */
- public function iShouldSeeTheUserBlockMessage($title, $message)
- {
- $I = $this;
- $I->waitForPageTitle($title);
- $I->see($message, AdminPage::$systemMessageContainer);
- }
-
/**
* @Given I have a blocked user with user name :username
*/
public function iHaveABlockedUserWithUserName($username)
{
$I = $this;
- $I->amOnPage(UserManagerPage::$pageURL);
+ $I->amOnPage(UserManagerPage::$url);
$I->fillField(UserManagerPage::$filterSearch, $username);
$I->click(UserManagerPage::$iconSearch);
$I->checkAllResults();
@@ -137,27 +116,16 @@ public function iHaveABlockedUserWithUserName($username)
public function iUnblockTheUser()
{
$I = $this;
- $I->waitForPageTitle('Users');
$I->clickToolbarButton('unblock');
}
- /**
- * @Then I should see the user unblock message :message
- */
- /*public function iShouldSeeTheUserUnblockMessage($message)
- {
- $I = $this;
- $I->waitForPageTitle($message, AdminPage::$systemMessageContainer);
- $I->see($message, AdminPage::$systemMessageContainer);
- }*/
-
/**
* @When I Delete the user :username
*/
public function iDeleteTheUser($username)
{
$I = $this;
- $I->amOnPage(UserManagerPage::$pageURL);
+ $I->amOnPage(UserManagerPage::$url);
$I->fillField(UserManagerPage::$filterSearch, $username);
$I->click(UserManagerPage::$iconSearch);
$I->checkAllResults();
@@ -165,24 +133,13 @@ public function iDeleteTheUser($username)
$I->acceptPopup();
}
- /**
- * @Then I confirm the user should have been deleted by getting the title :title and see the message :message
- */
- public function iConfirmTheUserDeleteSucessfully($title, $message)
- {
- $I = $this;
- $I->checkForPhpNoticesOrWarnings();
- $I->waitForPageTitle($title);
- $I->see($message, AdminPage::$systemMessageContainer);
- }
-
/**
* @Given There is an user link
*/
public function thereIsAnUserLink()
{
$I = $this;
- $I->amOnPage(UserManagerPage::$pageURL);
+ $I->amOnPage(UserManagerPage::$url);
}
/**
@@ -226,7 +183,7 @@ public function iSetAssignedUserGroupAsAnAdministrator()
$I->click('Assigned User Groups');
$I->checkOption('#1group_7');
}
-
+
/**
* @Then Login in backend with username :username and password :password
*/
@@ -276,7 +233,7 @@ public function iSeeTheAlertError($error)
public function thereIsAAddNewGroupLink()
{
$I = $this;
- $I->amOnPage(UserGroupPage::$groupPageURL);
+ $I->amOnPage(UserGroupPage::$url);
$I->clickToolbarButton('New');
}
@@ -298,23 +255,13 @@ public function iSaveTheGroup()
$I->clickToolbarButton('Save & Close');
}
- /**
- * @Then I should wait for :title title and see the message :message
- */
- public function iShouldSeeTheMessage($title, $message)
- {
- $I = $this;
- $I->waitForPageTitle($title);
- $I->see($message, AdminPage::$systemMessageContainer);
- }
-
/**
* @Given I search and select the Group with name :grouptitle
*/
public function iSearchAndSelectTheGroupWithName($GroupTitle)
{
$I = $this;
- $I->amOnPage(UserGroupPage::$groupPageURL);
+ $I->amOnPage(UserGroupPage::$url);
$I->fillField(UserManagerPage::$filterSearch, $GroupTitle);
$I->click(UserManagerPage::$iconSearch);
$I->checkAllResults();
@@ -330,14 +277,13 @@ public function iSetGroupTitleAsA($GroupTitle)
$I->fillField(UserManagerPage::$title, $GroupTitle);
}
-
/**
* @When I Delete the Group :arg1
*/
public function iDeleteTheGroup($GroupTitle)
{
$I = $this;
- $I->amOnPage(UserGroupPage::$groupPageURL);
+ $I->amOnPage(UserGroupPage::$url);
$I->fillField(UserManagerPage::$filterSearch, $GroupTitle);
$I->click(UserManagerPage::$iconSearch);
$I->checkAllResults();
@@ -345,24 +291,13 @@ public function iDeleteTheGroup($GroupTitle)
$I->acceptPopup();
}
- /**
- * @Then I confirm the group should have been deleted by getting the title :title and see the message :message
- */
- public function iDeleteUserGroup($title, $message)
- {
- $I = $this;
- $I->checkForPhpNoticesOrWarnings();
- $I->waitForPageTitle($title);
- $I->see($message, AdminPage::$systemMessageContainer);
- }
-
/**
* @Given There is a add viewing access level link
*/
public function thereIsAAddViewingAccessLevelLink()
{
$I = $this;
- $I->amOnPage(UserAclPage::$aclPageURL);
+ $I->amOnPage(UserAclPage::$url);
$I->clickToolbarButton('New');
}
@@ -385,23 +320,13 @@ public function iSaveTheAccessLevel()
$I->clickToolbarButton('Save & Close');
}
- /**
- * @Then I wait for the title :title see the message :message
- */
- public function iShouldBeSeeTheMessage($title, $message)
- {
- $I = $this;
- $I->waitForPageTitle($title);
- $I->see($message, AdminPage::$systemMessageContainer);
- }
-
/**
* @Given I search and select the Access Level with name :leveltitle
*/
public function iSearchAndSelectTheAccessLevelWithName($LevelTitle)
{
$I = $this;
- $I->amOnPage(UserAclPage::$aclPageURL);
+ $I->amOnPage(UserAclPage::$url);
$I->fillField(UserManagerPage::$filterSearch, $LevelTitle);
$I->click(UserManagerPage::$iconSearch);
$I->checkAllResults();
@@ -417,22 +342,13 @@ public function iSetAccessLevelTitleAsA($LevelTitle)
$I->fillField(UserManagerPage::$title, $LevelTitle);
}
- /**
- * @When I save Access Level
- */
- public function iSaveAccessLevel()
- {
- $I = $this;
- $I->clickToolbarButton('Save & Close');
- }
-
/**
* @When I Delete the Access level :leveltitle
*/
public function iDeleteTheAccessLeVel($LevelTitle)
{
$I = $this;
- $I->amOnPage(UserAclPage::$aclPageURL);
+ $I->amOnPage(UserAclPage::$url);
$I->fillField(UserManagerPage::$filterSearch, $LevelTitle);
$I->click(UserManagerPage::$iconSearch);
$I->checkAllResults();
@@ -440,23 +356,13 @@ public function iDeleteTheAccessLeVel($LevelTitle)
$I->acceptPopup();
}
- /**
- * @Then I confirm the Access Level have been deleted by getting the title :title and see the message :message
- */
- public function iDeleteAccessLevel($title, $message)
- {
- $I = $this;
- $I->checkForPhpNoticesOrWarnings();
- $I->waitForPageTitle($title);
- $I->see($message, AdminPage::$systemMessageContainer);
- }
/**
* @Given There is a User link
*/
public function thereIsAUserLink()
{
$I = $this;
- $I->amOnPage(UserManagerPage::$pageURL);
+ $I->amOnPage(UserManagerPage::$url);
}
/**
@@ -496,6 +402,4 @@ public function iShouldBeSeeTheLinkCreateAnAccountInFrontend()
$I = $this;
$I->click(['class' => 'brand visible-desktop visible-tablet']);
}
-
-
}
diff --git a/tests/acceptance.suite.dist.yml b/tests/acceptance.suite.dist.yml
index b28adc8165..5b62543e8b 100644
--- a/tests/acceptance.suite.dist.yml
+++ b/tests/acceptance.suite.dist.yml
@@ -35,7 +35,7 @@ error_level: "E_ALL & ~E_STRICT & ~E_DEPRECATED"
gherkin:
contexts:
default:
- - AcceptanceTester
- - Step\Acceptance\Administrator\User
- Page\Acceptance\Administrator\Login
- - Step\Acceptance\Administrator\Content
\ No newline at end of file
+ - Step\Acceptance\Administrator\User
+ - Step\Acceptance\Administrator\Content
+ - Step\Acceptance\Administrator\Login
\ No newline at end of file
diff --git a/tests/acceptance/administratorlogin.feature b/tests/acceptance/administratorlogin.feature
index 138c74bf38..f50c3c7adb 100644
--- a/tests/acceptance/administratorlogin.feature
+++ b/tests/acceptance/administratorlogin.feature
@@ -4,6 +4,5 @@ Feature: administrator login
I need to have a control panel
Scenario: Login in Administrator
- Given Joomla CMS is installed
- When Login into Joomla administrator with username "admin" and password "admin"
- Then I see administrator dashboard
\ No newline at end of file
+ When I Login into Joomla administrator with username "admin" and password "admin"
+ Then I should see the administrator dashboard
diff --git a/tests/acceptance/content.feature b/tests/acceptance/content.feature
index 439275b2fe..3fc4308ac3 100644
--- a/tests/acceptance/content.feature
+++ b/tests/acceptance/content.feature
@@ -4,34 +4,33 @@ Feature: content
I need to create modify trash publish and Unpublish content article
Background:
- Given Joomla CMS is installed
- When Login into Joomla administrator with username "admin" and password "admin"
- Then I see administrator dashboard
+ When I Login into Joomla administrator with username "admin" and password "admin"
+ Then I should see the administrator dashboard
Scenario: Create an Article
Given There is a add content link
When I create new content with field title as "My_Article" and content as a "This is my first article"
And I save an article
- Then I wait for the title "Articles" and see the message "Article successfully saved."
+ Then I should see the "Article successfully saved." message
Scenario: Feature an Article
Given I search and select content article with title "My_Article"
When I featured the article
- Then I wait for the title "Articles" and see the message "1 article featured."
+ Then I should see the "1 article featured." message
Scenario: Modify an article
Given I select the content article with title "My_Article"
And I set access level as a "Registered"
When I save the article
- Then I wait for the title "Articles" and see the message "Article successfully saved."
+ Then I should see the "Article successfully saved." message
Scenario: Unpublish an article
Given I have article with name "My_Article"
When I unpublish the article
- Then I wait for title "Articles" and see the unpublish message "1 article unpublished."
+ Then I should see the "1 article unpublished." message
Scenario: Trash an article
Given I have "My_Article" content article which needs to be Trash
When I Trash the article
- Then I wait for the title "Articles" and see article trash message "1 article trashed."
+ Then I should see the "1 article trashed." message
diff --git a/tests/acceptance/users.feature b/tests/acceptance/users.feature
index 4d95435c17..31ac304b7c 100644
--- a/tests/acceptance/users.feature
+++ b/tests/acceptance/users.feature
@@ -4,9 +4,8 @@ Feature: users
I need to create edit block unblock and delete user
Background:
- Given Joomla CMS is installed
- When Login into Joomla administrator with username "admin" and password "admin"
- Then I see administrator dashboard
+ When I Login into Joomla administrator with username "admin" and password "admin"
+ Then I should see the administrator dashboard
Scenario: Verify available tabs in com_users
Given There is an user link
@@ -16,41 +15,36 @@ Feature: users
Scenario: Create a add new user
Given There is a add user link
When I create new user with fields Name "register", Login Name "register", Password "register" and Email "register@gmail.com"
- And I Save the user
- Then I should wait for the title "Users" and see the message "User successfully saved."
+ And I Save the user
+ Then I should see the "User successfully saved." message
Scenario: Edit user
Given I search and select the user with user name "register"
When I set name as an "Editor" and User Group as "Editor"
- And I Save the user
- Then I should wait for the title "Users" and see the message "User successfully saved."
+ And I Save the user
+ Then I should see the "User successfully saved." message
Scenario: Block a User
Given I have a user with user name "register"
When I block the user
- Then I wait for the title "Users" and see the message "User blocked."
-
- Scenario: Unblock user
- Given I have a blocked user with user name "register"
- When I unblock the user
- Then I wait for the title "Users" and see the message "User enabled."
+ Then I should see the "User blocked." message
Scenario: Delete user
Given I have a user with user name "Editor"
When I Delete the user "Editor"
- Then I confirm the user should have been deleted by getting the title "Users" and see the message "1 user successfully deleted."
+ Then I should see the "1 user successfully deleted." message
Scenario: Create super admin and login into the backend
Given There is a add user link
And I fill a super admin with fields Name "prital", Login Name "prital", Password "prital", and Email "prital@gmail.com"
When I set assigned user group as an Administrator
- And I Save the user
+ And I Save the user
Then Login in backend with username "prital" and password "prital"
Scenario: Create User without username fails
Given There is a add user link
When I don't fill Login Name but fulfill remaining mandatory fields: Name "piyu", Password "piyu" and Email "piyu@gmail.com"
- And I Save the user
+ And I Save the user
Then I see the title "Users: New"
But I see the alert error "Invalid field: Login Name"
@@ -58,35 +52,35 @@ Feature: users
Given There is a add new group link
When I fill Group Title as a "Gsoc"
And I save the Group
- Then I should wait for "Users: Groups" title and see the message "Group successfully saved."
+ Then I should see the "Group successfully saved." message
Scenario: Edit group
Given I search and select the Group with name "Gsoc"
And I set group Title as a "Gsoc_admin"
When I save the Group
- Then I should wait for "Users: Groups" title and see the message "Group successfully saved."
+ Then I should see the "Group successfully saved." message
Scenario: Delete Group
Given I search and select the Group with name "Gsoc_admin"
When I Delete the Group "Gsoc_admin"
- Then I confirm the group should have been deleted by getting the title "Users: Groups" and see the message "1 User Group successfully deleted."
+ Then I should see the "1 User Group successfully deleted." message
Scenario: Create ACL level
Given There is a add viewing access level link
When I fill Level Title as a "joomla" and set Access as a public
And I save the Access Level
- Then I wait for the title "Users: Viewing Access Levels" see the message "Access level successfully saved."
+ Then I should see the "Access level successfully saved." message
Scenario: Edit ACL
Given I search and select the Access Level with name "joomla"
And I set Access Level title as a "Gsoc_joomla"
- When I save Access Level
- Then I wait for the title "Users: Viewing Access Levels" and see the message "Access level successfully saved."
+ When I save the Access Level
+ Then I should see the "Access level successfully saved." message
Scenario: Delete ACL
Given I search and select the Access Level with name "Gsoc_joomla"
When I Delete the Access level "Gsoc_joomla"
- Then I confirm the Access Level have been deleted by getting the title "Users: Viewing Access Levels" and see the message "1 View Access Level successfully removed."
+ Then I should see the "1 View Access Level successfully removed." message
Scenario: User settings (Allow user registration)
Given There is a User link