Skip to content

Commit a4cf2c3

Browse files
authored
Merge pull request #1 from radinamatic/update-gherkin-scenario-syncing
Added more granular steps
2 parents 79e88e1 + b797762 commit a4cf2c3

1 file changed

Lines changed: 81 additions & 20 deletions

File tree

Lines changed: 81 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,88 @@
1-
Feature: Sync channel
1+
Feature: Sync resources
2+
Studio users need to be able to sync and update the resources in their channels that have been imported from other channels, but have been modified since the original import.
23

34
Background:
4-
Given I am signed in to Studio as a non-admin user
5-
And I am in the channel editor page
6-
When I click on the ellipsis button in the top-right corner
7-
And I click on the *Sync channel* menu option
8-
Then a *Sync resources* modal appears
5+
Given I am signed in to Studio
6+
And I am on the <channel_a> editor page
7+
And there is a <resource> in the <channel_a> that has been imported from <channel_b>
98

10-
Scenario: Sync channel
11-
When I make sync selections via the checkboxes
9+
Scenario: Sync resource file information
10+
Given there is new version of the <resource> file in the <channel_b>
11+
Or the thumbnail has been added to the <resource> file in the <channel_b>
12+
When I click on the *···* button in the top-right corner
13+
And I select the *Sync channel* option
14+
Then I see *Sync resources* modal window
15+
When I activate the *File* checkbox
1216
And click the *Continue* button
13-
Then a modal appears to confirm my sync choices
17+
Then I see the *Confirm sync* modal
1418
When I click *Sync*
15-
Then a progress bar appears
19+
Then I see the *Syncing channel* modal
20+
And I see the progress bar
21+
When I see the *Operation complete!* message
22+
And I click the *Refresh button*
23+
Then I see the new file version of the <resource>
24+
Or I see the new thumbnail
1625

17-
Scenario: Imported content is updated through syncing
18-
Given the original content (v1) resource has been changed (v2)
19-
And I still have the old version (v1) in my channel
20-
When the "Sync Resources" process has completed
21-
Then my channel should be updated (v2)
26+
Scenario: Sync resource tags
27+
Given the <resource> in the <channel_b> has a new tag
28+
When I click on the *···* button in the top-right corner
29+
And I select the *Sync channel* option
30+
Then I see *Sync resources* modal window
31+
When I activate the *Tags* checkbox
32+
And click the *Continue* button
33+
Then I see the *Confirm sync* modal
34+
When I click *Sync*
35+
Then I see the *Syncing channel* modal
36+
And I see the progress bar
37+
When I see the *Operation complete!* message
38+
And I click the *Refresh button*
39+
Then I see the new tag of the <resource>
40+
41+
Scenario: Sync resource title and description
42+
Given the <resource> in the <channel_b> has a new title and description
43+
When I click on the *···* button in the top-right corner
44+
And I select the *Sync channel* option
45+
Then I see *Sync resources* modal window
46+
When I activate the *Titles and descriptions* checkbox
47+
And click the *Continue* button
48+
Then I see the *Confirm sync* modal
49+
When I click *Sync*
50+
Then I see the *Syncing channel* modal
51+
And I see the progress bar
52+
When I see the *Operation complete!* message
53+
And I click the *Refresh button*
54+
Then I see the new title and description of the <resource>
55+
56+
Scenario: Sync assessment resource details
57+
Given the <resource> is an assessment type (exercise)
58+
And it has new questions, answers or hints in the <channel_b>
59+
When I click on the *···* button in the top-right corner
60+
And I select the *Sync channel* option
61+
Then I see *Sync resources* modal window
62+
When I activate the *Assessment details* checkbox
63+
And click the *Continue* button
64+
Then I see the *Confirm sync* modal
65+
When I click *Sync*
66+
Then I see the *Syncing channel* modal
67+
And I see the progress bar
68+
When I see the *Operation complete!* message
69+
And I click the *Refresh button*
70+
Then I see the new questions, answers or hints in the <resource>
71+
72+
Scenario: Edited resource metadata is reverted after syncing
73+
Given I have edited some <resource> metadata (title, description or tags) after importing from <channel_b>
74+
When I click on the *···* button in the top-right corner
75+
And I select the *Sync channel* option
76+
Then I see *Sync resources* modal window
77+
When I activate the *Tags* or *Titles and descriptions* checkbox
78+
And click the *Continue* button
79+
Then I see the *Confirm sync* modal
80+
When I click *Sync*
81+
Then I see the *Syncing channel* modal
82+
And I see a progress bar
83+
When I see the *Operation complete!* message
84+
And I click the *Refresh button*
85+
Then I see that my edits of title, description or tags for the <resource> have been reverted to reflect those on the <channel_b>
2286

23-
Scenario: Edited content is replaced through syncing
24-
Given I have imported content (v1) from another channel
25-
And I have made edits to that content (v2)
26-
When the "Sync Resources" process has completed
27-
Then my channel content (v2) should be reverted to the imported version (v1)
87+
Examples:
88+
| channel_a | channel_b | resource |

0 commit comments

Comments
 (0)