From 4bfa38954307dc05240f356c83c60c01377e0644 Mon Sep 17 00:00:00 2001 From: Christian Spohr Date: Mon, 29 Jan 2024 13:20:27 +0100 Subject: [PATCH] BC-6351 requested changes --- .../showGroupsAndClassesInTable.feature | 2 +- .../learning_store/manageAccessToLearningstore.feature | 6 +++--- .../e2e/learning_store/searchingLearningstore.feature | 8 ++++---- cypress/support/pages/admin/pageAdministration.js | 4 ++-- .../learning_store/commonLearningStoreSteps.spec.js | 2 +- .../manageAccessToLearningstoreSteps.spec.js | 10 +++++----- ...ditsDeleteTeamEventWithVideoConferenceSteps.spec.js | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/cypress/e2e/class_management/showGroupsAndClassesInTable.feature b/cypress/e2e/class_management/showGroupsAndClassesInTable.feature index e4eef6bf..5b74dea7 100644 --- a/cypress/e2e/class_management/showGroupsAndClassesInTable.feature +++ b/cypress/e2e/class_management/showGroupsAndClassesInTable.feature @@ -1,5 +1,5 @@ #@release -@stable_test +@unstable_test Feature: Group - To show groups and classes in one table with respective functionality As a teacher I want to see all groups and classes belonging to my school. diff --git a/cypress/e2e/learning_store/manageAccessToLearningstore.feature b/cypress/e2e/learning_store/manageAccessToLearningstore.feature index 09a627a6..e4c4675a 100644 --- a/cypress/e2e/learning_store/manageAccessToLearningstore.feature +++ b/cypress/e2e/learning_store/manageAccessToLearningstore.feature @@ -10,7 +10,7 @@ Feature: Learning store - Activating and deactivating access for students When I go to administration page When I go to school administration When I click on general settings panel - When I click the checkbox to enable students access to learning store + When I click the toggle switch to enable students access to learning store When I click on admin setting save button # Student sees link to Learning store in menu Given I am logged in as a '' at '' @@ -21,9 +21,9 @@ Feature: Learning store - Activating and deactivating access for students When I go to administration page When I go to school administration When I click on general settings panel - When I click the checkbox to disable students access to learning store + When I click the toggle switch to disable students access to learning store When I click on admin setting save button - Then I see checkbox to enable students access to learning store is unchecked + Then I see toggle switch to enable students access to learning store is unchecked # Student doesn't see link to Learning store in menu Given I am logged in as a '' at '' Then I do not see Learning Store in side bar diff --git a/cypress/e2e/learning_store/searchingLearningstore.feature b/cypress/e2e/learning_store/searchingLearningstore.feature index 7ce31a50..a9232528 100644 --- a/cypress/e2e/learning_store/searchingLearningstore.feature +++ b/cypress/e2e/learning_store/searchingLearningstore.feature @@ -4,19 +4,19 @@ Feature: Learning store - Activating and deactivating access for students As an admin I want to activate and deactivate students access to learning store @stable_test - Scenario Outline: Search, open and download material form LerneStore + Scenario Outline: Search, open and download material form learning store # Admin activates students access to Learning store Given I am logged in as a '' at '' When I go to administration page When I go to school administration When I click on general settings panel - When I click the checkbox to enable students access to learning store + When I click the toggle switch to enable students access to learning store When I click on admin setting save button # User uses Learning store Given I am logged in as a '' at '' When I go to Learning Store overview When I write '' in search container and wait for search result - Then I see LerneStore website with search result + Then I see website Learning Store with search result When I click on first card of search result Then I see card details When I click on button To content @@ -26,7 +26,7 @@ Feature: Learning store - Activating and deactivating access for students When I go to administration page When I go to school administration When I click on general settings panel - When I click the checkbox to disable students access to learning store + When I click the toggle switch to disable students access to learning store When I click on admin setting save button diff --git a/cypress/support/pages/admin/pageAdministration.js b/cypress/support/pages/admin/pageAdministration.js index b24e7800..b35b5abb 100644 --- a/cypress/support/pages/admin/pageAdministration.js +++ b/cypress/support/pages/admin/pageAdministration.js @@ -109,11 +109,11 @@ class Management { }) } - clickCheckboxToDisableAccessToLearningStore () { + clickToggleSwitchToDisableAccessToLearningStore () { cy.get(Management.#learningStoreStudentAccessToggle).first().click() } - clickCheckboxToEnableAccessToLearningStore () { + clickToggleSwitchToEnableAccessToLearningStore () { cy.get(Management.#learningStoreStudentAccessToggle).first().click() } diff --git a/cypress/support/step_definition/learning_store/commonLearningStoreSteps.spec.js b/cypress/support/step_definition/learning_store/commonLearningStoreSteps.spec.js index 3b5247df..71cc6402 100644 --- a/cypress/support/step_definition/learning_store/commonLearningStoreSteps.spec.js +++ b/cypress/support/step_definition/learning_store/commonLearningStoreSteps.spec.js @@ -19,7 +19,7 @@ When('I write {string} in search container and wait for search result', searchTe learningStore.searchInLearningStore(searchText) }) -Then('I see LerneStore website with search result', () => { +Then('I see website Learning Store with search result', () => { learningStore.assertSearchResultIsVisible() }) diff --git a/cypress/support/step_definition/learning_store/manageAccessToLearningstoreSteps.spec.js b/cypress/support/step_definition/learning_store/manageAccessToLearningstoreSteps.spec.js index 714c9a0a..cb1d0288 100644 --- a/cypress/support/step_definition/learning_store/manageAccessToLearningstoreSteps.spec.js +++ b/cypress/support/step_definition/learning_store/manageAccessToLearningstoreSteps.spec.js @@ -4,14 +4,14 @@ import Management from '../../pages/admin/pageAdministration' const management = new Management() -When('I click the checkbox to disable students access to learning store', () => { - management.clickCheckboxToDisableAccessToLearningStore() +When('I click the toggle switch to disable students access to learning store', () => { + management.clickToggleSwitchToDisableAccessToLearningStore() }) -When('I click the checkbox to enable students access to learning store', () => { - management.clickCheckboxToEnableAccessToLearningStore() +When('I click the toggle switch to enable students access to learning store', () => { + management.clickToggleSwitchToEnableAccessToLearningStore() }) -Then('I see checkbox to enable students access to learning store is unchecked', () => { +Then('I see toggle switch to enable students access to learning store is unchecked', () => { management.assertStudentsAccessIsUnchecked() }) \ No newline at end of file diff --git a/cypress/support/step_definition/teams/teacherAddsEditsDeleteTeamEventWithVideoConferenceSteps.spec.js b/cypress/support/step_definition/teams/teacherAddsEditsDeleteTeamEventWithVideoConferenceSteps.spec.js index 1ed16f9f..96db9c98 100644 --- a/cypress/support/step_definition/teams/teacherAddsEditsDeleteTeamEventWithVideoConferenceSteps.spec.js +++ b/cypress/support/step_definition/teams/teacherAddsEditsDeleteTeamEventWithVideoConferenceSteps.spec.js @@ -8,7 +8,7 @@ const teams = new Teams() // Rest of the defined steps can be found here: // ----------------------------------------- // -\step_definition\authentication\loginStep.spec.js -// -\step_definition\administration\CommonAdministrationSteps.spec.js +// -\step_definition\administration\commonAdministrationSteps.spec.js // -\step_definition\teams\commonTeamsSteps.spec.js