Skip to content

Commit e0c81a5

Browse files
author
Peter Cenov
committed
corrections
1 parent bfbd6ed commit e0c81a5

File tree

9 files changed

+123
-123
lines changed

9 files changed

+123
-123
lines changed

integration_testing/features/manage-resources/edit-modal/edit-completion-field.feature

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Feature: Edit completion/duration field
44
Background:
55
Given I am signed into Studio
66
And I am in an editable channel with all resource types
7-
When I right click a <resource>
7+
When I right click a resource
88
And I click *Edit details*
9-
Then I see the *Edit details* modal for the <resource>
10-
And I see the *Completion* section underneath the *Basic information* section
9+
Then I see the *Edit details* modal for the resource
10+
And I see the *Completion* section under the *Basic information* section
1111

1212
Scenario: Default options for .MP4 or .MP3 on file upload
1313
Given I am viewing an .MP4 or an .MP3 file that I have just added
@@ -24,7 +24,6 @@ Feature: Edit completion/duration field
2424
When I click the *Duration* dropdown
2525
Then I see the options: *Time to complete*, *Short activity*, and *Long activity*
2626

27-
2827
Scenario: Default options for .PDF, .EPUB or slides
2928
Given I am viewing a .PDF, .EPUB or slidesfile that I have just added
3029
And I see the *Completion* section
@@ -36,7 +35,6 @@ Feature: Edit completion/duration field
3635
When I click the *Completion* dropdown
3736
Then I see the options: *Viewed in its entirety*, *When time spent is equal to duration*, and *Reference material*
3837

39-
4038
Scenario: Default options for .ZIP on file upload
4139
Given I am viewing a .ZIP file that I have just added
4240
And I see the *Completion* section
@@ -140,7 +138,7 @@ Feature: Edit completion/duration field
140138
And I don't see any errors
141139

142140
Scenario: See that *Completion* field is required
143-
Given that a required *Completion* or *Duration* field of <resource> is empty
141+
Given that a required *Completion* or *Duration* field of resource is empty
144142
When I click the *Completion* or *Duration* text field
145143
And I lose focus on the *Completion* or *Duration* text field
146144
Then I see *Completion* or *Duration* is in an error state
@@ -149,9 +147,9 @@ Feature: Edit completion/duration field
149147
Then I see a pop up that informs me that the resource is incomplete
150148
And I can *Exit anyway* or *Keep editing*
151149
When I click *EXIT* without adding the required fields
152-
Then I see <resource> in the topic tree
153-
And I see a red error icon on <resource>
154-
When I left-click the <resource>
155-
Then I see the previewer for the <resource>
150+
Then I see resource in the topic tree
151+
And I see a red error icon on resource
152+
When I left-click the resource
153+
Then I see the previewer for the resource
156154
And I see the missing *Completion* or *Duration* field has a red outline error
157155
And I see *This field is required* below the field

integration_testing/features/manage-resources/edit-modal/edit-learning-activity-field.feature

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,36 @@ Feature: Edit *Learning activity* field
44
Background:
55
Given I am signed into Studio
66
And I am in an editable channel with all resource types
7-
When I right click a <resource>
7+
When I right click a resource
88
And I click *Edit details*
9-
Then I see the *Edit details* modal for the <resource>
9+
Then I see the *Edit details* modal for the resource
1010
And I see the *Learning activity* dropdown in the *Basic information* section
1111

1212
Scenario: View learning activity options
1313
When I click the *Learning activity* dropdown
1414
Then I see multi-select checkboxes
15-
And I see the options: *Watch*, *Read*, *Practice*, *Explore*, *Create*, *Reflect*, *Listen*
15+
And I see the options: *Create*, *Explore*, *Listen*, *Practice*, *Read*, *Reflect*, *Watch*
1616

1717
Scenario: Select options
1818
Given I see the options for *Learning activity*
19-
When I click on the checkbox for <option>
20-
Then I see <option> has a determinate checkbox
21-
And I see the chip for <option> appear in the textbox
19+
When I select the checkbox for an option
20+
Then I see that the option has a determinate checkbox
21+
And I see the chip for the selected option in the textbox
2222
And I see an *X* in the text field
2323

2424
Scenario: Remove an option
2525
Given I see the options for *Learning activity*
26-
And an <option> is selected
27-
When I click the selected checkbox for <option>
28-
Then I see that the checkbox for <option> is empty
29-
And I do not see the chip in the textbox
26+
And an option is selected
27+
When I uncheck the selected checkbox for an option
28+
Then the checkbox is no longer selected
29+
And I do not see the chip in the *Learning activity* textbox
3030

31-
Scenario: Remove an option through chip
31+
Scenario: Remove an option through the chip
3232
Given I see the options for *Learning activity*
33-
And <option> is selected
34-
When I click the *X* in the chip
35-
Then I do not see the chip for <option> in the textbox
36-
And I do not see <option> selected in the *Learning activity* dropdown
33+
And an option is selected
34+
When I click the *X* icon of the chip
35+
Then the chip is removed from the *Learning activity* textbox
36+
And the previously selected option in the *Learning activity* dropdown is no longer selected
3737

3838
Scenario: Clear all options in the text field
3939
Given I see that several options for *Learning activity* are selected
@@ -45,19 +45,19 @@ Feature: Edit *Learning activity* field
4545
When I click <X> checkboxes in the *Learning activity* dropdown
4646
And the length of the chips exceeds the width of the dropdown
4747
Then I see the chips go to the next line
48-
And the height of the *Learning activity* dropdown grows to contain it
48+
And the height of the *Learning activity* dropdown expands accordingly
4949

5050
Scenario: See that learning activity field is required
51-
Given the *Learning activity* field of <resource> is empty
51+
Given the *Learning activity* field of resource is empty
5252
When I click the *Learning activity* text field
5353
And I lose focus on the *Learning activity* text field
5454
Then I see that the *Learning activity* is in an error state
5555
And I see *Learning activity is required*
5656
When I click *FINISH*
57-
Then I see the <resource> in the topic tree
58-
And I see a red error icon on the <resource>
59-
When I left-click the <resource>
60-
Then I see the previewer for the <resource>
57+
Then I see the resource in the topic tree
58+
And I see a red error icon on the resource
59+
When I left-click the resource
60+
Then I see the previewer for the resource
6161
And I see there is no learning activity label at the top left
6262
And I see the *Learning activity* field has a red error icon
6363
And I see a *Missing learning activity* message in red text

integration_testing/features/manage-resources/edit-modal/edit-learning-level-field.feature

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Feature: Edit *Learning level* field
44
Background:
55
Given I am signed into Studio
66
And I am in an editable channel with all resource types
7-
When I right click <resource>
7+
When I right click a resource
88
And I click *Edit details*
9-
Then I see the *Edit details* modal for the <resource>
9+
Then I see the *Edit details* modal for the resource
1010
And I see the *Level* dropdown in the *Basic information* section
1111

1212
Scenario: View learning level options
@@ -16,24 +16,24 @@ Feature: Edit *Learning level* field
1616

1717
Scenario: Select options
1818
Given I see the options for *Level*
19-
When I click on the checkbox for <option>
20-
Then I see <option> has a determinate checkbox
21-
And I see the chip for <option> appear in the textbox
19+
When I click on the checkbox for an option
20+
Then I see that the option has a determinate checkbox
21+
And I see the chip for option appear in the textbox
2222
And I see an *X* in the text field
2323

2424
Scenario: Remove an option
2525
Given I see the options for *Level*
26-
And <option> is selected
27-
When I click the selected checkbox for <option>
28-
Then I see that the checkbox for <option> is empty
29-
And I do not see the chip in the textbox
26+
And an option is selected
27+
When I click the selected checkbox for the option
28+
Then I see that the checkbox for the option is empty
29+
And I don't see the chip in the textbox
3030

3131
Scenario: Remove an option through chip
3232
Given I see the options for *Level*
33-
And <option> is selected
33+
And an option is selected
3434
When I click the *X* in the chip
35-
Then I do not see the chip for <option> in the textbox
36-
And I do not see <option> selected in the *Level* dropdown
35+
Then I do not see the chip for option in the textbox
36+
And I don't see the option selected in the *Level* dropdown
3737

3838
Scenario: Clear all options in the text field
3939
Given I see that several options for *Level* are selected
@@ -48,10 +48,10 @@ Feature: Edit *Learning level* field
4848
And the height of the *Level* dropdown grows to contain it
4949

5050
Scenario: See that learning level field is optional
51-
Given the *Level* field of <resource> is empty
51+
Given the *Level* field of resource is empty
5252
When I click *FINISH*
53-
Then I see <resource> in the topic tree
53+
Then I see resource in the topic tree
5454
And I do not see an error icon
55-
When I left-click <resource>
56-
Then I see the previewer for <resource>
55+
When I left-click resource
56+
Then I see the previewer for resource
5757
And I see the level field is empty

integration_testing/features/manage-resources/edit-modal/edit-requirements-field.feature

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Feature: Edit *Requirements* field
44
Background:
55
Given I am signed into Studio
66
And I am in an editable channel with all resource types
7-
When I right click <resource>
8-
When I click *Edit details*
9-
Then I see the *Edit details* modal for the <resource>
7+
When I right click a resource
8+
And I select *Edit details*
9+
Then I see the *Edit details* modal for the resource
1010
And I see the *Requirements* dropdown in the *Basic information* section
1111

1212
Scenario: View *Requirements* options
@@ -16,29 +16,29 @@ Feature: Edit *Requirements* field
1616

1717
Scenario: Select options
1818
Given I see the options for *Requirements*
19-
When I click on the checkbox for <option>
20-
Then I see <option> has a determinate checkbox
21-
And I see the chip for <option> appear in the textbox
19+
When I click on the checkbox for an option
20+
Then I see the option has a determinate checkbox
21+
And I see the chip for the option appear in the textbox
2222
And I see an *X* in the text field
2323

2424
Scenario: Remove an option
2525
Given I see the options for *Requirements*
26-
And <option> is selected
27-
When I click the selected checkbox for <option>
28-
Then I see that the checkbox for <option> is empty
26+
And an option is selected
27+
When I click the selected checkbox for the option
28+
Then I see that the checkbox for the option is empty
2929
And I do not see the chip in the textbox
3030

3131
Scenario: Remove an option through chip
3232
Given I see the options for *Requirements*
33-
And <option> is selected
33+
And an option is selected
3434
When I click the *X* in the chip
35-
Then I do not see the chip for <option> in the textbox
36-
And I do not see <option> selected in the *Requirements* dropdown
35+
Then I do not see the chip for the option in the textbox
36+
And I do not see the option selected in the *Requirements* dropdown
3737

3838
Scenario: Clear all options in the text field
3939
Given I see that several options for *Requirements* are selected
4040
When I click the *X* in the text field
41-
Then I do not see any *Requirements* options in the text field
41+
Then I don't see any *Requirements* options in the text field
4242
And I do not see the *X* in the text field
4343

4444
Scenario: Chips overflow in the text field
@@ -48,10 +48,10 @@ Feature: Edit *Requirements* field
4848
And the height of the *Requirements* dropdown grows to contain it
4949

5050
Scenario: See that *Requirements* field is optional
51-
Given the *Requirements* field of a <resource> is empty
51+
Given the *Requirements* field of a resource is empty
5252
When I click *FINISH*
53-
Then I see <resource> in the topic tree
53+
Then I see resource in the topic tree
5454
And I do not see an error icon
55-
When I left-click the <resource>
56-
Then I see the previewer for the <resource>
55+
When I left-click the resource
56+
Then I see the previewer for the resource
5757
And I see that the *Requirements* field is empty

integration_testing/features/manage-resources/move-resources/drag-drop-out-of-clipboard.feature

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ Feature: Drag-drop resources out of the clipboard
77
Scenario: Drag-drop content nodes out of the clipboard
88
When I click on clipboard button on the bottom-right of the screen
99
Then the clipboard opens up
10-
When I begin to drag items out of the clipboard
11-
And I drop the items on the channel editor
12-
Then clipboard stays open
13-
And the items disappear from the clipboard
14-
And I see the items appear on the channel editor node at the very bottom
10+
When I start dragging resources out of the clipboard
11+
And I drop the resources in the channel editor
12+
Then the clipboard remains open
13+
And I see the dragged resources in the channel editor

integration_testing/features/manage-resources/move-resources/drag-drop-to-clipboard.feature

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ Feature: Drag-drop to clipboard
99
Then the clipboard opens up
1010
When the clipboard is open
1111
And I begin to drag resources from the channel editor into the open clipboard
12-
Then I see the clipboard shows a thick border and turns opaque to indicate this is a draggable area
12+
Then the clipboard changes color to indicate that this is an area where the selected resource can be dropped
1313
When I drop the resource into the clipboard
14-
Then the opaque area disappears
15-
And I see the clipboard updated to reflect the newly dragged resources
14+
Then I see the clipboard updated to reflect the newly dragged resources
1615

1716
Scenario: Drag-drop resources to the clipboard button
1817
When the clipboard is closed and the interface shows the clipboard button
1918
And I begin to drag resources from the channel editor toward the clipboard button
2019
Then I see the clipboard button changes color styling and move slightly up and down
2120
When I drop the content into the clipboard button
2221
Then the clipboard button styling gets back to normal
23-
And I see a snackbar appears to confirm the resources were moved to clipboard
22+
And I see a snackbar appears to confirm the resources were moved to clipboard

integration_testing/features/manage-resources/move-resources/jump-to-new-location.feature

Lines changed: 0 additions & 11 deletions
This file was deleted.

integration_testing/features/manage-resources/move-resources/move-resources.feature

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@ Feature: Move resources to a new destination
22

33
Background:
44
Given I am signed in to Studio
5-
And I select some resources on the channel editor
6-
Then I see a move button appears in the actions bar
5+
And I've selected some resources in the channel editor
6+
And I see the *Move* button in the actions bar
77

88
Scenario: Move resources into a new destination
9-
When I click on a checkbox(s) and make a resource selection
10-
And I click the move button
9+
When I click the *Move* button
1110
Then I am navigated to a screen that allows me to navigate and choose a destination to move the resource
1211
When I navigate to an appropriate destination
1312
And click the *Move here* button
14-
Then I am redirected to the channel editor
13+
Then I am redirected back to the channel editor
1514
And I see a snackbar confirmation that my resources are moved
16-
And the resources are no longer in my original directory
15+
And the resources are no longer in my original directory
16+
17+
Scenario: Go to the new location
18+
Given I've successfully moved a resource
19+
When I click the *Go to location* button from the snackbar message
20+
Then I'm at the new resource location
21+
And I can see the moved resource

0 commit comments

Comments
 (0)