Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_blog_menu
2
Feature: Enable Block blog menu on the frontpage
3
  In order to enable the blog menu on the frontpage
4
  As an admin
5
  I can add blog menu block to the frontpage
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 the following "blocks" exist:
12
      | blockname | contextlevel | reference | pagetypepattern | defaultregion |
13
      | blog_menu | System       | 1         | site-index      | side-pre      |
14
 
15
  Scenario: Students use the blog menu block to post blogs
16
    Given I log in as "student1"
17
    And I am on site homepage
18
    And I follow "Add a new entry"
19
    When I set the following fields to these values:
20
      | Entry title | S1 First Blog |
21
      | Blog entry body | This is my awesome blog! |
22
    And I press "Save changes"
23
    Then I should see "S1 First Blog"
24
    And I should see "This is my awesome blog!"
25
    And I am on site homepage
26
    And I follow "Blog entries"
27
    And I should see "S1 First Blog"
28
    And I should see "This is my awesome blog!"