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 studio gherkin scenarios and updates #3391

Merged
merged 3 commits into from
Jul 5, 2022
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions integration_testing/features/new-layout-in-the-edit-modal.feature

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
Feature: Allow marking as complete
This feature allows learners to manually mark a resource as complete in the learning platform. This option is available on all file types.

# Comment here

Background:
Given I am signed into Studio
And I am in an editable channel
And I see the *Edit* modal for <resource>
And I am in an editable channel with all resource types
And I see the *Edit details* modal for the <resource>
And the *Allow marking as complete* checkbox is empty

Scenario: Toggle *Allow learners to mark as complete* setting
Given the *Allow marking as complete* checkbox is empty
When I click the *Allow marking as complete* checkbox
Then I see the *Allow marking as complete* is selected
When I click the selected *Allow marking as complete* checkbox
Then I see the *Allow marking as complete* is empty

Scenario: See that *Allow learners to mark as complete* is optional
Given the *Allow marking as complete* checkbox of <resource> is empty
When I click *FINISH*
Then I see <resource> in the topic tree
Then I see the <resource> in the topic tree
And I do not see an error icon
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
Feature: Edit *Category* field
Across all file types.

# Comment here

Background:
Given I am signed into Studio
And I am in an editable channel
When I right click <resource>
When I click *Edit details*
Then I see the edit modal for <resource>
And I am in an editable channel with all resource types
When I right click a <resource>
And I click *Edit details*
Then I see the *Edit details* modal for the <resource>
And I see the *Category* dropdown in the *Basic information* section

Scenario: View category options
Expand Down Expand Up @@ -53,7 +51,7 @@ Feature: Edit *Category* field
Given that <first-level category> checkbox is selected
And <first-level category> is a chip in the *Category* text field
When I click <second-level category> under <first-level category>
then I see that <second-level category> is determinately selected
Then I see that <second-level category> is determinately selected
And <first-level category> is still determinately selected
And I see the chip in the *Category* text field changed to <second-level category>
And I do not see <first-level category> as a chip in the *Category* text field
Expand Down
Original file line number Diff line number Diff line change
@@ -1,44 +1,37 @@
Feature: Edit completion field
Feature: Edit completion/duration field
Across all file types

# Comment here

Background:
Given I am signed into Studio
And I am in an editable channel
When I right click <resource>
When I click *Edit details*
Then I see the edit modal for <resource>
And I am in an editable channel with all resource types
When I right click a <resource>
And I click *Edit details*
Then I see the *Edit details* modal for the <resource>
And I see the *Completion* section underneath the *Basic information* section

Scenario: View options for .MP4
Given I am viewing an .MP4 file
When I click the *Completion* dropdown
Then I see the options: *Short activity*, *Long activity*, *Reference*, and *Exact time to complete*
Scenario: View options for .MP4 or .MP3
Given I am viewing an .MP4 or an .MP3 file
When I click the *Duration* dropdown
Then I see the options: *Exact time to complete*, *Short activity*, *Long activity* and *Reference*

Scenario: View options for .PDF or .EPUB
Given I am viewing a .PDF or .EPUB file
Scenario: View options for .PDF, .EPUB or slides
Given I am viewing .PDF, .EPUB or slides
When I click the *Completion* dropdown
Then I see the options: *All content viewed*, *Short activity*, *Long activity*, *Reference*, and *Exact time to complete*

Scenario: View options for .MP3
Given I am viewing an .MP3 file
When I click the *Completion* dropdown
Then I see the options: *Short activity*, *Long activity*, *Reference*, and *Exact time to complete*
Then I see the options: *All content viewed* and *Complete duration*

Scenario: View options for .ZIP
Given I am viewing a .ZIP
When I click on the *Completion* dropdown
Then I see the options: *Short activity*, *Long activity*, *Reference*, *Exact time to complete*
Then I see the options: *Complete duration* and *Determined by this resource*

Scenario: View options for Practice resources
Given I am viewing an exercise
When I click on the *Completion* dropdown
Then I see the options: *Practice until goal is met*, *Short activity*, *Long activity*, *Reference*, *Exact time to complete*
Then I see the options: *Practice until goal is met* and *Practice quiz*

Scenario: Set completion to *Short activity*
When I click on the *Completion* dropdown
When I select *Short activity*
And I select *Short activity*
Then I see *Short activity* appear in the text input
And I see a *Minutes* text input field appear next to *Completion*
And I see a slider appear next to *Minutes*
Expand All @@ -59,7 +52,7 @@ Feature: Edit completion field

Scenario: Set completion to *Long activity*
When I click on the *Completion* dropdown
When I select *Long activity*
And I select *Long activity*
Then I see *Long activity* appear in the text input
And I see a *Minutes* text input field appear next to *Completion*
And I see a slider appear next to *Minutes*
Expand All @@ -83,12 +76,9 @@ Feature: Edit completion field

Scenario: Set completion to *Reference*
When I click on the *Completion* dropdown
When I select *Reference*
And I select *Reference*
Then I see *Reference* appear as an input for *Completion*
And I see the caption *Progress will not be tracked on reference material unless learners mark it as complete*
And I see an info icon next to the *Completion* field
When I hover over the info icon
Then I see the tooltip *Textbooks, dictionaries, indexes, and other similar resources*

Scenario: Set completion to *Exact time to complete* on .MP4 or .MOV
Given I am viewing an .MP4 or .MOV
Expand All @@ -100,13 +90,13 @@ Feature: Edit completion field
Scenario: Set completion to *Exact time to complete* for non- .MP4 or .MOV
Given I am viewing a resource that is not an .MP4 or .MOV
When I click the *Completion* dropdown
When I select *Exact time to complete*
And I select *Exact time to complete*
Then I see a *Exact time to complete* appear as an input for *Completion*
And I see a *Minutes* text input field appear next to *Completion*
And I see it is empty by default
When I click the *Minutes* field
When I enter a whole number
When I lose focus on the field
And I enter a whole number
And I lose focus on the field
Then I see the number has saved

Scenario: Enter whole numbers only to *Minutes* field
Expand All @@ -117,25 +107,25 @@ Feature: Edit completion field
Scenario: Set completion to *Practice until goal is met*
Given I am viewing an exercise
When I click the *Completion* dropdown
When I click *Practice until goal is met*
And I click *Practice until goal is met*
Then I see the *Completion* field is set to *Practice until goal is met*
And I see an empty *Goal* text field dropdown appears next to it
When I click the *Goal* dropdown
Then I see the options: *100% correct*, *M of N*, *10 in a row*, *2 in a row*, *3 in a row*, *5 in a row*
When I select *M of N*
Then I see an empty*Correct answers needed* text field, */*, and empty *Recent answers* text field appear
Then I see an empty *Correct answers needed* text field, */*, and empty *Recent answers* text field appear

Scenario: See that *Completion* field is required
Given the *Completion* field of <resource> is empty
When I click the *Completion* text field
When I lose focus on the *Completion* text field
And I lose focus on the *Completion* text field
Then I see *Completion* is in an error state
And I see *Completion is required*
When I click *FINISH*
Then I see <resource> in the topic tree
And I see a red error icon on <resource>
When I left-click <resource>
Then I see the previewer for <resource>
When I left-click the <resource>
Then I see the previewer for the <resource>
And I see there is no learning activity label at the top left
And I see the *Completion* field has a red error icon
And I see the message *Missing completion criteria* in red text
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
Feature: Edit *Learning activity* field
Across all file types

# Comment here

Background:
Given I am signed into Studio
And I am in an editable channel
When I right click <resource>
When I click *Edit details*
Then I see the edit modal for <resource>
And I am in an editable channel with all resource types
When I right click a <resource>
And I click *Edit details*
Then I see the *Edit details* modal for the <resource>
And I see the *Learning activity* dropdown in the *Basic information* section

Scenario: View learning activity options
Expand Down Expand Up @@ -52,14 +50,14 @@ Feature: Edit *Learning activity* field
Scenario: See that learning activity field is required
Given the *Learning activity* field of <resource> is empty
When I click the *Learning activity* text field
When I lose focus on the *Learning activity* text field
Then I see *Learning activity* is in an error state
And I lose focus on the *Learning activity* text field
Then I see that the *Learning activity* is in an error state
And I see *Learning activity is required*
When I click *FINISH*
Then I see <resource> in the topic tree
And I see a red error icon on <resource>
When I left-click <resource>
Then I see the previewer for <resource>
Then I see the <resource> in the topic tree
And I see a red error icon on the <resource>
When I left-click the <resource>
Then I see the previewer for the <resource>
And I see there is no learning activity label at the top left
And I see the *Learning activity* field has a red error icon
And I see the message *Missing learning activity* in red text
And I see a *Missing learning activity* message in red text
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
Feature: Edit *Learning level* field
Across all file types

# Comment here

Background:
Given I am signed into Studio
And I am in an editable channel
And I am in an editable channel with all resource types
When I right click <resource>
When I click *Edit details*
Then I see the edit modal for <resource>
And I click *Edit details*
Then I see the *Edit details* modal for the <resource>
And I see the *Level* dropdown in the *Basic information* section

Scenario: View learning level options
When I click the *Level* dropdown
Then I see multi-select checkboxes
And I see the options: *Preschool/Nursery*, *Lower primary*, *Upper primary*, *Lower secondary*, *Upper secondary*, *Tertiary*, *Specialized professional training*, *All levels -- basic skills*, *All levels -- work skills*
And I see the options: *Preschool/Nursery*, *Lower primary*, *Upper primary*, *Lower secondary*, *Upper secondary*, *Tertiary*, *Specialized professional training*, *All levels -- basic skills*, *All levels -- work skills* #TO DO - we need a final list with the available checkboxes

Scenario: Select options
Given I see the options for *Level*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
Feature: Edit multiple resources at the same time in the edit modal
Users can apply dropdown options to multiple resources at one time

# Comment here

Background:
Given I am signed into Studio
And I am in an editable channel
And I am in an editable channel with all resource types
When I select <X> resource checkboxes
When I click *Edit* in the toolbar
Then I see all <X> resources in the edit modal
And I click *Edit* in the toolbar
Then I see all <X> resources in the *Edit details* modal

Scenario: See which fields are hidden and shown
When I select more than one checkbox in the resource panel on the left
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
Feature: Edit *What you will need* field
Across all file types

# Comment here

Background:
Given I am signed into Studio
And I am in an editable channel
And I am in an editable channel with all resource types
When I right click <resource>
When I click *Edit details*
Then I see the edit modal for <resource>
Then I see the *Edit details* modal for the <resource>
And I see the *What you will need* dropdown in the *Basic information* section

Scenario: View *What you will need* options
Expand Down Expand Up @@ -50,10 +48,10 @@ Feature: Edit *What you will need* field
And the height of the *What you will need* dropdown grows to contain it

Scenario: See that *What you will need* field is optional
Given the *What you will need* field of <resource> is empty
Given the *What you will need* field of a <resource> is empty
When I click *FINISH*
Then I see <resource> in the topic tree
And I do not see an error icon
When I left-click <resource>
Then I see the previewer for <resource>
And I see the *What you will need* field is empty
When I left-click the <resource>
Then I see the previewer for the <resource>
And I see that the *What you will need* field is empty
Loading