-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from pritalpatel/gherkin-feature-users
Adding users.feature scenarios using gherkin
- Loading branch information
Showing
11 changed files
with
836 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
tests/_support/Page/Acceptance/Administrator/AdminPage.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
namespace Page\Acceptance\Administrator; | ||
|
||
class AdminPage extends \AcceptanceTester | ||
{ | ||
public static $systemMessageContainer = ['id' => 'system-message-container']; | ||
|
||
public static $pageTitle = ['class' => 'page-title']; | ||
|
||
public static $controlPanelText = "Control Panel"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tests/_support/Page/Acceptance/Administrator/LoginPage.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
namespace Page\Acceptance\Administrator; | ||
|
||
use Page\Acceptance\Administrator\AdminPage; | ||
|
||
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"]']; | ||
|
||
public static $pageURL = "/administrator/index.php"; | ||
} |
30 changes: 30 additions & 0 deletions
30
tests/_support/Page/Acceptance/Administrator/UserManagerPage.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
namespace Page\Acceptance\Administrator; | ||
|
||
use Page\Acceptance\Administrator\AdminPage; | ||
|
||
class UserManagerPage extends AdminPage | ||
{ | ||
public static $nameField = ['id' => 'jform_name']; | ||
|
||
public static $usernameField = ['id' => 'jform_username']; | ||
|
||
public static $passwordField = ['id' => 'jform_password']; | ||
|
||
public static $password2Field = ['id' => 'jform_password2']; | ||
|
||
public static $emailField = ['id' => 'jform_email']; | ||
|
||
public static $filterSearch = ['id' => 'filter_search']; | ||
|
||
public static $iconSearch = ['class' => 'icon-search']; | ||
|
||
public static $title = ['id' => 'jform_title']; | ||
|
||
public static $pageURL = "administrator/index.php?option=com_users&view=users"; | ||
|
||
public static $groupPageURL = "administrator/index.php?option=com_users&view=groups"; | ||
|
||
public static $aclPageURL = "administrator/index.php?option=com_users&view=levels"; | ||
|
||
} |
Oops, something went wrong.