Add id to user search search box in users list to let behat test work

1.10.x
Yannick Warnier 11 years ago
parent afca17fa90
commit bb90fa57c7
  1. 3
      .travis.yml
  2. 2
      main/admin/user_list.php
  3. 2
      tests/features/createUser.feature

@ -48,7 +48,4 @@ before_script:
script:
# - phpunit -c tests/phpunit
# pwd shows /home/travis/build/chamilo/chamilo-lms
#- mysql chamilo -e 'show tables;'
# Check the configuration file was written correctly (configuration.php should appear)
- ls -la main/inc/conf/
- cd tests && ../vendor/behat/behat/bin/behat -v

@ -782,7 +782,7 @@ if (!empty($action)) {
// Create a search-box
$form = new FormValidator('search_simple', 'get', '', '', array(), FormValidator::LAYOUT_INLINE);
$form->addElement('text', 'keyword', get_lang('keyword'));
$form->addElement('text', 'keyword', get_lang('keyword'), array('id' => 'user-search-keyword'));
$form->addButtonSearch(get_lang('Search'));
$form->addElement(
'static',

@ -17,7 +17,7 @@ Feature: Users management as admin
Scenario: Search and delete a user
Given I am a platform administrator
And I am on "/main/admin/user_list.php"
And I fill in "keyword" with "smarshall"
And I fill in "user-search-keyword" with "smarshall"
And I press "submit"
When I follow "Delete"
Then I should see "The user has been deleted"

Loading…
Cancel
Save