-
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.
Merge branch 'main' into BC-5623-changeLanguage_feature
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
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,16 @@ | ||
@release | ||
Feature: To access the H5P editor as a teacher. | ||
|
||
As a teacher, I want to be able to access the H5P Editor for a topic in my course to create learning content | ||
|
||
@stable_test | ||
Scenario: Access H5P Editor | ||
Given I am logged in as a 'teacher1_dbc' at 'default' | ||
When I go to rooms overview | ||
When I go to room 'Course with subject and tasks' | ||
When I click on topic 'Statistic' on course page | ||
When I click on the button Edit on topic page | ||
When I click on the Add Content H5P button | ||
Then I can click on the Create H5P button | ||
|
||
|
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: 18 additions & 0 deletions
18
cypress/support/step_definition/topics/accessH5PEditor.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,18 @@ | ||
const { When, Then } = require("@badeball/cypress-cucumber-preprocessor") | ||
import Topics from '../../pages/topics/pageTopics' | ||
|
||
const topics = new Topics() | ||
|
||
When('I click on the button Edit on topic page', () => { | ||
topics.clickOnButtonEditInTopicPage() | ||
}) | ||
|
||
When('I click on the Add Content H5P button', () =>{ | ||
topics.clickOnAddContentH5PToTopic(); | ||
}) | ||
|
||
Then('I can click on the Create H5P button', ()=>{ | ||
topics.seeCreateH5PInTopic(); | ||
}) | ||
|
||
|