Skip to content

Commit

Permalink
BC-6351 requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
csp175 committed Jan 29, 2024
1 parent 505a590 commit 4bfa389
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<student>' at '<namespace>'
Expand All @@ -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 '<student>' at '<namespace>'
Then I do not see Learning Store in side bar
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/learning_store/searchingLearningstore.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<admin>' at '<namespace>'
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 '<user>' at '<namespace>'
When I go to Learning Store overview
When I write '<search_text>' 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
Expand All @@ -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


Expand Down
4 changes: 2 additions & 2 deletions cypress/support/pages/admin/pageAdministration.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ class Management {
})
}

clickCheckboxToDisableAccessToLearningStore () {
clickToggleSwitchToDisableAccessToLearningStore () {
cy.get(Management.#learningStoreStudentAccessToggle).first().click()
}

clickCheckboxToEnableAccessToLearningStore () {
clickToggleSwitchToEnableAccessToLearningStore () {
cy.get(Management.#learningStoreStudentAccessToggle).first().click()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 4bfa389

Please sign in to comment.