403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.155
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/myschool/triamudom/tuprblearn/mod/book/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/tuprblearn/mod/book/tests/behat/log_entries.feature
@mod @mod_book
Feature: In a book, verify log entries
  In order to create log entries
  As an admin
  I need to perform various actions in a book.

  @javascript @_switch_window
  Scenario: perform various book actions and verify log entries.
    Given the following "courses" exist:
      | fullname | shortname | category | groupmode |
      | Course 1 | C1 | 0 | 1 |
    And I log in as "admin"
    And I am on "Course 1" course homepage with editing mode on
    When I add a "Book" to section "1" and I fill the form with:
      | Name | Test book |
      | Description | A book about dreams! |
    And I follow "Test book"
    And I set the following fields to these values:
      | Chapter title | First chapter |
      | Content | First chapter |
    And I press "Save changes"
    And I click on "Add new chapter" "link" in the "Table of contents" "block"
    And I set the following fields to these values:
      | Chapter title | Second chapter |
      | Content | Second chapter |
    And I press "Save changes"
    And I click on "Edit" "link" in the "Table of contents" "block"
    And I set the following fields to these values:
      | Chapter title | First chapter edited |
      | Content | First chapter edited |
    And I press "Save changes"
    And I click on "Next" "link"
    And I click on "Previous" "link"
    And I navigate to "Print book" in current page administration
    And I navigate to "Generate IMS CP" in current page administration
    And I navigate to "Logs" in current page administration
    Then I should see "Book exported"
    And I should see "Book printed"
    And I should see "Chapter viewed" in the "#report_log_r2_c5" "css_element"
    And I should see "Chapter viewed" in the "#report_log_r3_c5" "css_element"
    And I should see "Chapter viewed" in the "#report_log_r4_c5" "css_element"
    And I should see "Chapter updated" in the "#report_log_r5_c5" "css_element"
    And I should see "Chapter viewed" in the "#report_log_r6_c5" "css_element"
    And I should see "Chapter created" in the "#report_log_r7_c5" "css_element"
    And I should see "Chapter created" in the "#report_log_r9_c5" "css_element"
    And I click on "Chapter viewed" "link" in the "#report_log_r2_c5" "css_element"
    And I switch to "action" window
    And I should see "1. First chapter edited" in the ".book_content" "css_element"
    And I switch to the main window
    And I click on "Chapter viewed" "link" in the "#report_log_r3_c5" "css_element"
    And I switch to "action" window
    And I should see "2. Second chapter" in the ".book_content" "css_element"
    And I switch to the main window
    And I click on "Chapter updated" "link" in the "#report_log_r5_c5" "css_element"
    And I switch to "action" window
    And I should see "1. First chapter edited" in the ".book_content" "css_element"
    And I switch to the main window
    And I click on "Chapter created" "link" in the "#report_log_r7_c5" "css_element"
    And I switch to "action" window
    And I should see "2. Second chapter" in the ".book_content" "css_element"
    And I switch to the main window
    And I click on "Chapter created" "link" in the "#report_log_r9_c5" "css_element"
    And I switch to "action" window
    And I should see "1. First chapter edited" in the ".book_content" "css_element"
    And I switch to the main window

Youez - 2016 - github.com/yon3zu
LinuXploit