This repository was archived by the owner on Mar 17, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 28
Adding users.feature scenarios using gherkin #25
Merged
javigomez
merged 5 commits into
joomla-projects:staging
from
pritalpatel:gherkin-feature-users
Jun 23, 2016
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9c9dba5
Adding users.feature scenarios using gherkin
pritalpatel c219045
Adding users.feature file
pritalpatel 69413af
Adding scenarios for access level and user group
pritalpatel 3979b9d
Adding Assert module for assertion
pritalpatel c15e369
Implement step and page object in users.feature file
pritalpatel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functions like the previous one will be moved to step or helper files. But since we will be improving the current code through iterations will merge.