diff --git a/integration_testing/features/allow-marking-as-complete.feature b/integration_testing/features/allow-marking-as-complete.feature new file mode 100755 index 0000000000..e840cb6a5b --- /dev/null +++ b/integration_testing/features/allow-marking-as-complete.feature @@ -0,0 +1,22 @@ +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 + + 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 is empty + When I click *FINISH* + Then I see in the topic tree + And I do not see an error icon diff --git a/integration_testing/features/edit-category-field.feature b/integration_testing/features/edit-category-field.feature new file mode 100755 index 0000000000..5191172a67 --- /dev/null +++ b/integration_testing/features/edit-category-field.feature @@ -0,0 +1,124 @@ +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 + When I click *Edit details* + Then I see the edit modal for + And I see the *Category* dropdown in the *Basic information* section + + Scenario: View category options + When I click the *Category* dropdown + Then I see a nested checkbox list of all categories + And I see that children checkboxes are aligned with the text of the parent category + When I scroll through the category list + Then I see a gray divider between top-level categories + + Scenario: Select first-level category option + Given that checkbox is empty + When I click + Then I see that is determinately selected + And I see that children categories are not selected + And I see a chip with in the *Category* text field + + Scenario: Select second-level category option + Given that checkbox is empty + When I select under + Then I see that is determinately selected + And I see that is determinately selected + And I see that children categories are not selected + And I see that is represented as a chip in the *Category* text field + And I do not see represented as a chip in the *Category* text field + When I hover my mouse over the chip + Then I see * - * in a tooltip + + Scenario: Select third-level category option + Given that checkbox is empty + And under is empty + When I select under + Then I see that is determinately selected + And I see that is determinately selected + And I see that is determinately selected + And I see that is represented as a chip in the *Category* text field + And I do not see represented as a chip in the *Category* text field + And I do not see represented as a chip in the *Category* text field + When I hover my mouse over the chip + Then I see * - - * in a tooltip + + Scenario: Select child category while a parent category is selected + Given that checkbox is selected + And is a chip in the *Category* text field + When I click under + then I see that is determinately selected + And is still determinately selected + And I see the chip in the *Category* text field changed to + And I do not see as a chip in the *Category* text field + + Scenario: Select a parent category while a child category is selected + Given that is selected + And is a chip in the *Category* text field + When I click , the parent of + Then I see is not selected + And I see is not selected + And I see is determinately selected + And I see is represented as a chip in the *Category* text field + + Scenario: Select categories through text input + When I click on the *Category* dropdown + Then I see that the text input is active + When I start entering text + And the text I enter appears in the categories + Then I see matching options appear as a flat list + And I do not see nested categories + And I see an *X* icon on the right side of the text input + When I click on the checkbox from the flat list + Then I see appear as a chip in the text input + And I see that my text input has cleared + And I see the full nested category list + + Scenario: No results when inputting text + When I click on the *Category* dropdown + Then I see that the text input is active + When I start entering text + And the text I enter does not appear in the categories + Then I see *Category not found* + And I do not see any selectable categories + + Scenario: Chips overflow in the text field + When I click checkboxes in the *Category* dropdown + And the length of the chips exceeds the width of the dropdown + Then I see the chips go to the next line + And the height of the *Category* dropdown grows to contain it + + Scenario: Remove category selection + Given I