textbooks.feature 1.33 KB
Newer Older
1
@shard_2
2
Feature: CMS.Textbooks
3
  
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
  Scenario: Create a textbook with multiple chapters
    Given I have opened a new course in Studio
    And I go to the textbooks page
    When I click on the New Textbook button
    And I name my textbook "History"
    And I name the first chapter "Britain"
    And I type in "britain.pdf" for the first chapter asset
    And I click Add a Chapter
    And I name the second chapter "America"
    And I type in "america.pdf" for the second chapter asset
    And I save the textbook
    Then I should see a textbook named "History" with 2 chapters
    And I click the textbook chapters
    Then I should see a textbook named "History" with 2 chapters
    And the first chapter should be named "Britain"
    And the first chapter should have an asset called "britain.pdf"
    And the second chapter should be named "America"
    And the second chapter should have an asset called "america.pdf"
    And I reload the page
    Then I should see a textbook named "History" with 2 chapters
    And I click the textbook chapters
    Then I should see a textbook named "History" with 2 chapters
    And the first chapter should be named "Britain"
    And the first chapter should have an asset called "britain.pdf"
    And the second chapter should be named "America"
    And the second chapter should have an asset called "america.pdf"