-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
57 additions
and
74 deletions.
There are no files selected for viewing
28 changes: 14 additions & 14 deletions
28
...arnstore/manageAccessToLearnstore.feature → ...store/manageAccessToLearningstore.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 13 additions & 5 deletions
18
cypress/support/step_definition/learning_store/commonLearningStoreSteps.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
const { When, Then } = require("@badeball/cypress-cucumber-preprocessor") | ||
import Learning_Store from '../../pages/learning_store/pageLearningStore' | ||
import Learning_Store from '../../pages/learning_store/pageLearningstore' | ||
|
||
const learningStore = new Learning_Store() | ||
const learningstore = new Learning_Store() | ||
|
||
When('I go to LearnStore overview', () => { | ||
learningStore.navigateToLearnStoreOverview() | ||
}) | ||
When('I go to Learning Store overview', () => { | ||
learningstore.navigateToLearningstoreOverview() | ||
}) | ||
|
||
When('I do not see Learning Store in side bar', () => { | ||
learningstore.assertLearningstoreNotVisibleInMenu() | ||
}) | ||
|
||
When('I see Learning Store in side bar', () => { | ||
learningstore.assertLearningstoreVisibleInMenu() | ||
}) |
17 changes: 17 additions & 0 deletions
17
cypress/support/step_definition/learning_store/manageAccessToLearningstoreSteps.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const { When, Then } = require("@badeball/cypress-cucumber-preprocessor") | ||
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 checkbox to enable students access to learning store', () => { | ||
management.clickCheckboxToEnableAccessToLearningstore() | ||
}) | ||
|
||
Then('I see checkbox to enable students access to learning store is unchecked', () => { | ||
management.assertStudentsAccessIsUnchecked() | ||
}) |
41 changes: 0 additions & 41 deletions
41
cypress/support/step_definition/learnstore/learnstoreSteps.spec.js
This file was deleted.
Oops, something went wrong.