Skip to content

Commit

Permalink
Update actions.feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Syxton committed Apr 9, 2024
1 parent 13545fc commit c7e6be1
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions tests/behat/actions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ Feature: Check if all the different type of actions of the mass actions block wo
And I click on "Test Activity4" "checkbox"
And I set the field "target_section_moving" in the "Mass Actions" "block" to "3"
And I click on "move_to_section" "button" in the "Mass Actions" "block"
Then I should see "Test Activity1" in the "Section 3" "section"
And I should see "Test Activity4" in the "Section 3" "section"
Then I should see "Test Activity1" in the "#section-3" "css_element"
And I should see "Test Activity4" in the "#section-3" "css_element"

@javascript
Scenario: Check if mass action 'delete' works
Expand Down Expand Up @@ -96,10 +96,9 @@ Feature: Check if all the different type of actions of the mass actions block wo
And I click on "Test Activity4" "checkbox"
And I click on "Test Activity5" "checkbox"
And I click on "Duplicate" "button" in the "Mass Actions" "block"
Then I should see "Test Activity2 (copy)" in the "Section 1" "section"
And I should see "Test Activity4 (copy)" in the "Section 4" "section"
And I should see "Test Activity5 (copy)" in the "Section 4" "section"

Then I should see "Test Activity2 (copy)" in the "#section-1" "css_element"
And I should see "Test Activity4 (copy)" in the "#section-4" "css_element"
And I should see "Test Activity5 (copy)" in the "#section-4" "css_element"
@javascript
Scenario: Check if mass action 'duplicate to course' works (keeping sections)
Given the following "courses" exist:
Expand All @@ -118,9 +117,9 @@ Feature: Check if all the different type of actions of the mass actions block wo
And I click on "Keep original section number" "radio"
And I click on "Choose section" "button"
And I am on "Test course 2" course homepage
Then I should see "Test Activity2" in the "Section 1" "section"
And I should see "Test Activity4" in the "Section 4" "section"
And I should see "Test Activity5" in the "Section 4" "section"
Then I should see "Test Activity2" in the "#section-1" "css_element"
And I should see "Test Activity4" in the "#section-4" "css_element"
And I should see "Test Activity5" in the "#section-4" "css_element"

@javascript
Scenario: Check if mass action 'duplicate to course' works (target section)
Expand All @@ -140,9 +139,9 @@ Feature: Check if all the different type of actions of the mass actions block wo
And I click on "Section 2" "radio"
And I click on "Choose section" "button"
And I am on "Test course 2" course homepage
Then I should see "Test Activity2" in the "Section 2" "section"
And I should see "Test Activity4" in the "Section 2" "section"
And I should see "Test Activity5" in the "Section 2" "section"
Then I should see "Test Activity2" in the "#section-2" "css_element"
And I should see "Test Activity4" in the "#section-2" "css_element"
And I should see "Test Activity5" in the "#section-2" "css_element"

@javascript
Scenario: Check if mass action 'duplicate to course' works (new section)
Expand All @@ -162,9 +161,9 @@ Feature: Check if all the different type of actions of the mass actions block wo
And I click on "New Section" "radio"
And I click on "Choose section" "button"
And I am on "Test course 2" course homepage
Then I should see "Test Activity2" in the "Section 3" "section"
And I should see "Test Activity4" in the "Section 3" "section"
And I should see "Test Activity5" in the "Section 3" "section"
Then I should see "Test Activity2" in the "#section-3" "css_element"
And I should see "Test Activity4" in the "#section-3" "css_element"
And I should see "Test Activity5" in the "#section-3" "css_element"

@javascript
Scenario: Check if mass action 'duplicate to section' works
Expand All @@ -173,12 +172,12 @@ Feature: Check if all the different type of actions of the mass actions block wo
And I click on "Test Activity5" "checkbox"
And I set the field "target_section_duplicating" in the "Mass Actions" "block" to "3"
And I click on "duplicate_to_section" "button" in the "Mass Actions" "block"
Then I should see "Test Activity2" in the "Section 1" "section"
And I should see "Test Activity4" in the "Section 4" "section"
And I should see "Test Activity5" in the "Section 4" "section"
And I should see "Test Activity2 (copy)" in the "Section 3" "section"
And I should see "Test Activity4 (copy)" in the "Section 3" "section"
And I should see "Test Activity5 (copy)" in the "Section 3" "section"
Then I should see "Test Activity2" in the "#section-1" "css_element"
And I should see "Test Activity4" in the "#section-4" "css_element"
And I should see "Test Activity5" in the "#section-4" "css_element"
And I should see "Test Activity2 (copy)" in the "#section-3" "css_element"
And I should see "Test Activity4 (copy)" in the "#section-3" "css_element"
And I should see "Test Activity5 (copy)" in the "#section-3" "css_element"

@javascript
Scenario: Check if mass actions 'indent' and 'outdent' work
Expand Down

0 comments on commit c7e6be1

Please sign in to comment.