Conflicts: cms/djangoapps/contentstore/features/advanced-settings.feature cms/djangoapps/contentstore/features/checklists.feature cms/djangoapps/contentstore/features/component.feature cms/djangoapps/contentstore/features/course-overview.feature cms/djangoapps/contentstore/features/course-settings.feature cms/djangoapps/contentstore/features/course-team.feature cms/djangoapps/contentstore/features/course-updates.feature cms/djangoapps/contentstore/features/courses.feature cms/djangoapps/contentstore/features/discussion-editor.feature cms/djangoapps/contentstore/features/grading.feature cms/djangoapps/contentstore/features/html-editor.feature cms/djangoapps/contentstore/features/problem-editor.feature cms/djangoapps/contentstore/features/section.feature cms/djangoapps/contentstore/features/signup.feature cms/djangoapps/contentstore/features/static-pages.feature cms/djangoapps/contentstore/features/subsection.feature cms/djangoapps/contentstore/features/textbooks.feature cms/djangoapps/contentstore/features/upload.feature cms/djangoapps/contentstore/features/video-editor.feature cms/djangoapps/contentstore/features/video.feature lms/djangoapps/courseware/features/certificates.feature lms/djangoapps/courseware/features/help.feature lms/djangoapps/courseware/features/high-level-tabs.feature lms/djangoapps/courseware/features/homepage.feature lms/djangoapps/courseware/features/login.feature lms/djangoapps/courseware/features/lti.feature lms/djangoapps/courseware/features/navigation.feature lms/djangoapps/courseware/features/problems.feature lms/djangoapps/courseware/features/registration.feature lms/djangoapps/courseware/features/signup.feature lms/djangoapps/courseware/features/video.feature lms/djangoapps/courseware/features/word_cloud.feature
52 lines
2.3 KiB
Gherkin
52 lines
2.3 KiB
Gherkin
@shard_3
|
|
Feature: CMS.Textbooks
|
|
|
|
Scenario: No textbooks
|
|
Given I have opened a new course in Studio
|
|
When I go to the textbooks page
|
|
Then I should see a message telling me to create a new textbook
|
|
|
|
# IE and Safari on sauce labs will not upload the textbook correctly resulting in an error
|
|
@skip_internetexplorer
|
|
@skip_safari
|
|
Scenario: Create a textbook
|
|
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 "Economics"
|
|
And I name the first chapter "Chapter 1"
|
|
And I click the Upload Asset link for the first chapter
|
|
And I upload the textbook "textbook.pdf"
|
|
And I wait for "2" seconds
|
|
And I save the textbook
|
|
Then I should see a textbook named "Economics" with a chapter path containing "/c4x/MITx/999/asset/textbook.pdf"
|
|
And I reload the page
|
|
Then I should see a textbook named "Economics" with a chapter path containing "/c4x/MITx/999/asset/textbook.pdf"
|
|
|
|
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"
|