[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/blocks/search_forums/tests/behat/ -> block_search_forums_frontpage.feature (source)

   1  @block @block_search_forums @mod_forum
   2  Feature: The search forums block allows users to search for forum posts
   3    In order to search for a forum post
   4    As an administrator
   5    I can add the search forums block
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email | idnumber |
  10        | student1 | Student | 1 | student1@example.com | S1 |
  11      And I log in as "admin"
  12      And I am on site homepage
  13      And I navigate to "Turn editing on" node in "Front page settings"
  14      And I add the "Search forums" block
  15      And I log out
  16  
  17    Scenario: Use the search forum block on the frontpage and search for posts as a user
  18      Given I log in as "student1"
  19      And I am on site homepage
  20      When I set the following fields to these values:
  21        | searchform_search | Moodle |
  22      And I press "Go"
  23      Then I should see "No posts"
  24  
  25    Scenario: Use the search forum block on the frontpage and search for posts as a guest
  26      Given I log in as "guest"
  27      And I am on site homepage
  28      When I set the following fields to these values:
  29        | searchform_search | Moodle |
  30      And I press "Go"
  31      Then I should see "No posts"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1