Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature files for the bookmarking functionality #8343

Merged
merged 1 commit into from
Aug 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Feature: Coaches can bookmark resources and topics

Scenario: Coaches can bookmark resources while in the *Learn* tab
Given that I am on the *Learn* tab
And I navigate to a resource
When I click bookmark icon on the resource card
Then I see a snackbar confirming the resource was bookmarked
And the resource is added to my list of bookmarks

Scenario: Coaches can bookmark topics while in the *Learn* tab
Given that I am on the *Learn* tab
And I navigate to a topic
When I click bookmark icon near the topic title
Then I see a snackbar confirming the topic was bookmarked
And the topic is added to my list of bookmarks

Scenario: Coaches can bookmark resources while in quiz creation flow
Given that I am creating a quiz
And I navigate to a list of exercises and topics
When I click bookmark icon on the exercise or topic card
Then I see a snackbar confirming the resource or topic was bookmarked
And the resource or topic is added to my list of bookmarks

Scenario: Coaches can bookmark resources while in lesson resource management flow
Given that I have created a lesson
And I am adding resources to my lesson
And I see a list of available resources to add
When I click bookmark icon on a resource or topic card
Then I see a snackbar confirming the resource or topic was bookmarked
And the resource or topic is added to my list of bookmarks
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Feature: Coaches can select and use bookmarked resources in lesson creation

Scenario: Coaches add a bookmarked resource to a lesson
Given that I have created a lesson
And I am on the lesson resource management page
When I browse the new bookmarks content tree
And I see a list of bookmarks consisting of only resources and navigable topics
And I find and select a bookmarked resource via the checkbox
Then I see a snackbar appear confirming the resource was added to my lesson

Scenario: Coaches add a multiple bookmarked resources to a lesson
Given that I have created a lesson
And I am on the lesson resource management page
When I browse the new bookmarks content tree
And I see a list of bookmarks consisting of only resources and navigable topics
And I find and select multiple bookmarked resources via multiple checkboxes
Then I see a snackbar appear confirming the resources were added to my lesson
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Feature: Coaches can select and use bookmarked resources in quiz creation

Scenario: Coaches add a bookmarked exercise to a quiz
Given that I am creating a quiz
When I browse the new bookmarks content tree
And I see a list of bookmarks consisting of only exercises and topics
And I find and select a bookmarked exercise via the checkbox
Then I see a snackbar appear confirming the exercise was selected

Scenario: Coaches add a bookmarked topic to a quiz
Given that I am creating a quiz
When I browse the new bookmarks content tree
And I see a list of bookmarks consisting of only exercises and topics
And I find and select a bookmarked topic via the checkbox
Then I see a snackbar appear confirming the topic was selected

Scenario: Coaches add a multiple bookmarked items to a quiz
Given that I am creating a quiz
When I browse the new bookmarks content tree
And I find and select multiple bookmarked items via multiple checkboxes
Then I see a snackbar appear confirming the items were selected
40 changes: 40 additions & 0 deletions integration_testing/features/learner/learner-bookmarking.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Feature: Learners can bookmark resources and topics

Scenario: Learners can bookmark resources in the *Learn* tab
Given that I am on the *Learn* tab
And I navigate to a resource in the channels tab
When I click bookmark icon on the resource card
Then I see a snackbar confirming the resource was bookmarked
And the resource is added to my list of bookmarks

Scenario: Learners can bookmark topics in the Learn tab
Given that I am on the *Learn* tab
And I navigate to a topic in the channels tab
When I click bookmark icon near the topic title
Then I see a snackbar confirming the topic was bookmarked
And the topic is added to my list of bookmarks

Scenario: Learners can remove bookmarks
Given that I am on the bookmarks page
And I navigate to a resource or topic I want to remove
When I click removal icon on the exercise or topic card
Then I see a snackbar confirming the resource or topic was removed
And the resource or topic disappears from my bookmarks list

Scenario: Learners can navigate to a bookmarked topic's location
Given that I am on the bookmarks page
And I navigate to a topic that I want its location revealed
When I click on the topic card
Then I am on the topic location in the *Channels* tab

Scenario: Learners can navigate to a bookmarked resource's location
Given that I am on the bookmarks page
And I navigate to a resource that I want its location revealed
When I click on the resource card
Then I am on the topic location in the *Channels* tab for that particular resource

Scenario: Learners can preview a bookmarked resource
Given that I am on the bookmarks page
And I navigate to a resource I want to preview
When I click information icon on the resource card
Then I see a sidebar with more information about the resource