And Ipress"Course1"near"Recentlyaccessedcourses"intheapp
And Ipress"Data"intheapp
And Ipress"Displayoptions"intheapp
And Ipress"Openinbrowser"intheapp
And Iswitchtothebrowsertabopenedbytheapp
And Iloginas"teacher1"
And Iadda"Textinput"fieldto"Data"databaseandIfilltheformwith:
|Fieldname |Testfieldname |
|Fielddescription |Testfielddescription |
And Ipress"Save"
And Iclosethebrowsertabopenedbytheapp
When Ientertheapp
And Iloginas"teacher1"
And Ipress"Course1"near"Recentlyaccessedcourses"intheapp
And Ipress"Data"intheapp
And Ipress"add"intheapp
And Isetthefield"Testfieldname"to"Test"intheapp
And Ipress"Save"intheapp
And Ipress"More"intheapp
And Ipress"Comments(0)"intheapp
And Ipress"close"intheapp
And Isetthefield"Addacomment..."to"commenttestteacher"intheapp
And Ipress"Savecomment"intheapp
Then Ishouldsee"Commentcreated"
And Ishouldsee"commenttestteacher"
When Ipressthebackbuttonintheapp
And Ishouldsee"Comments(1)"
# Create and delete comments as a student
When Ientertheapp
And Iloginas"student1"
And Ipress"Course1"near"Recentlyaccessedcourses"intheapp
And Ipress"Data"intheapp
And Ipress"More"intheapp
And Ipress"Comments(1)"intheapp
And Ipress"close"intheapp
And Isetthefield"Addacomment..."to"commentteststudent"intheapp
And Ipress"Savecomment"intheapp
Then Ishouldsee"Commentcreated"
And Ishouldsee"commenttestteacher"
And Ishouldsee"commentteststudent"
When Ipressthebackbuttonintheapp
And Ipress"Comments(2)"intheapp
And Ipress"Delete"intheapp
And Ipress"trash"intheapp
And Ipress"Delete"near"Cancel"intheapp
Then Ishouldsee"Commentdeleted"
And Ishouldsee"commenttestteacher"
But Ishouldnotsee"commentteststudent"
When Ipressthebackbuttonintheapp
Then Ishouldsee"Comments(1)"
@app@3.8.0
Scenario: Create and delete offline comments and synchronise (database)
Given Ientertheapp
And Iloginas"teacher1"
And Ipress"Course1"near"Recentlyaccessedcourses"intheapp
And Ipress"Data"intheapp
And Ipress"Displayoptions"intheapp
And Ipress"Openinbrowser"intheapp
And Iswitchtothebrowsertabopenedbytheapp
And Iloginas"teacher1"
And Iadda"Textinput"fieldto"Data"databaseandIfilltheformwith:
|Fieldname |Testfieldname |
|Fielddescription |Testfielddescription |
And Ipress"Save"
And Iclosethebrowsertabopenedbytheapp
When Ientertheapp
And Iloginas"teacher1"
And Ipress"Course1"near"Recentlyaccessedcourses"intheapp
And Ipress"Data"intheapp
And Ipress"add"intheapp
And Isetthefield"Testfieldname"to"Test"intheapp
And Ipress"Save"intheapp
And Ipress"More"intheapp
And Ipress"Comments(0)"intheapp
And Iswitchofflinemodeto"true"
And Ipress"close"intheapp
And Isetthefield"Addacomment..."to"commenttest"intheapp
And Ipress"Savecomment"intheapp
Then Ishouldsee"Datastoredinthedevicebecauseitcouldn'tbesent.Itwillbesentautomaticallylater."
And Ishouldsee"Thereareofflinecommentstobesynchronised."
And Ishouldsee"commenttest"
When Ipressthebackbuttonintheapp
And Ipress"Comments(0)"intheapp
And Iswitchofflinemodeto"false"
And Ipress"Displayoptions"intheapp
And Ipress"Synchronisenow"intheapp
Then Ishouldsee"commenttest"
But Ishouldnotsee"Thereareofflinecommentstobesynchronised."
When Ipressthebackbuttonintheapp
And Ipress"Comments(1)"intheapp
And Iswitchofflinemodeto"true"
And Ipress"Delete"intheapp
And Ipress"trash"intheapp
And Ipress"Delete"near"Cancel"intheapp
Then Ishouldsee"Commentdeleted"
And Ishouldsee"Thereareofflinecommentstobesynchronised."
And Ishouldsee"Deletedoffline"
And Ishouldsee"commenttest"
When Ipressthebackbuttonintheapp
And Ipress"Comments(1)"intheapp
And Iswitchofflinemodeto"false"
And Ipress"Displayoptions"intheapp
And Ipress"Synchronisenow"intheapp
Then Ishouldnotsee"Thereareofflinecommentstobesynchronised."
And Ishouldnotsee"commenttest"
When Ipressthebackbuttonintheapp
And Ishouldsee"Comments(0)"
@app@3.8.0
Scenario: Create and delete comments (glossary)
# Create glossary entry and comment as a teacher
When Ientertheapp
And Iloginas"teacher1"
And Ipress"Course1"near"Recentlyaccessedcourses"intheapp
And Ipress"Testglossary"intheapp
And Ipress"close"intheapp
And Isetthefield"Concept"to"potato"intheapp
And Isetthefield"Definition"to"ThepotatoisarootvegetablenativetotheAmericas,astarchytuberoftheplantSolanumtuberosum,andtheplantitself,aperennialinthefamilySolanaceae."intheapp
And Ipress"Save"intheapp
And Ipress"potato"intheapp
And Ipress"Comments(0)"intheapp
And Ipress"close"intheapp
And Isetthefield"Addacomment..."to"commenttestteacher"intheapp
And Ipress"Savecomment"intheapp
Then Ishouldsee"Commentcreated"
And Ishouldsee"commenttestteacher"
And Ipressthebackbuttonintheapp
And Ishouldsee"Comments(1)"
# Create and delete comments as a student
When Ientertheapp
And Iloginas"student1"
And Ipress"Course1"near"Recentlyaccessedcourses"intheapp
And Ipress"Testglossary"intheapp
And Ipress"potato"intheapp
And Ipress"Comments(1)"intheapp
And Ipress"close"intheapp
And Isetthefield"Addacomment..."to"commentteststudent"intheapp
And Ipress"Savecomment"intheapp
Then Ishouldsee"Commentcreated"
And Ishouldsee"commenttestteacher"
And Ishouldsee"commentteststudent"
When Ipressthebackbuttonintheapp
And Ipress"Comments(2)"intheapp
And Ipress"Delete"intheapp
And Ipress"trash"intheapp
And Ipress"Delete"near"Cancel"intheapp
Then Ishouldsee"Commentdeleted"
And Ishouldsee"commenttestteacher"
But Ishouldnotsee"commentteststudent"
When Ipressthebackbuttonintheapp
And Ishouldsee"Comments(1)"
@app@3.8.0
Scenario: Create and delete offline comments and synchronise (glossary)
When Ientertheapp
And Iloginas"teacher1"
And Ipress"Course1"near"Recentlyaccessedcourses"intheapp
And Ipress"Testglossary"intheapp
And Ipress"close"intheapp
And Isetthefield"Concept"to"potato"intheapp
And Isetthefield"Definition"to"ThepotatoisarootvegetablenativetotheAmericas,astarchytuberoftheplantSolanumtuberosum,andtheplantitself,aperennialinthefamilySolanaceae."intheapp
And Ipress"Save"intheapp
And Ipress"potato"intheapp
And Ipress"Comments(0)"intheapp
And Iswitchofflinemodeto"true"
And Ipress"close"intheapp
And Isetthefield"Addacomment..."to"commenttest"intheapp
And Ipress"Savecomment"intheapp
Then Ishouldsee"Datastoredinthedevicebecauseitcouldn'tbesent.Itwillbesentautomaticallylater."
And Ishouldsee"Thereareofflinecommentstobesynchronised."
And Ishouldsee"commenttest"
When Ipressthebackbuttonintheapp
And Ipress"Comments(0)"intheapp
And Iswitchofflinemodeto"false"
And Ipress"Displayoptions"intheapp
And Ipress"Synchronisenow"intheapp
Then Ishouldsee"commenttest"
But Ishouldnotsee"Thereareofflinecommentstobesynchronised."
When Ipressthebackbuttonintheapp
And Ipress"Comments(1)"intheapp
And Iswitchofflinemodeto"true"
And Ipress"Delete"intheapp
And Ipress"trash"intheapp
And Ipress"Delete"near"Cancel"intheapp
Then Ishouldsee"Commentdeleted"
And Ishouldsee"Thereareofflinecommentstobesynchronised."
And Ishouldsee"Deletedoffline"
And Ishouldsee"commenttest"
When Ipressthebackbuttonintheapp
And Ipress"Comments(1)"intheapp
And Iswitchofflinemodeto"false"
And Ipress"Displayoptions"intheapp
And Ipress"Synchronisenow"intheapp
Then Ishouldnotsee"Thereareofflinecommentstobesynchronised."
And Ishouldnotsee"commenttest"
When Ipressthebackbuttonintheapp
And Ishouldsee"Comments(0)"
@app@3.8.0
Scenario: Create and delete comments (blogs)
# Create blog as a teacher
Given Ientertheapp
And Iloginas"teacher1"
And Ipress"Course1"near"Recentlyaccessedcourses"intheapp
And Ipress"menu"intheapp
And Ipress"Website"intheapp
And Iswitchtothebrowsertabopenedbytheapp
And Ifollow"Login"
And Iloginas"teacher1"
And Iclickon"Sidepanel""button"
And Ifollow"C1"
And Ipress"Turneditingon"
And Iclickon"Sidepanel""button"
And Ifollow"Addablock"
And Ifollow"Blogmenu"
And Ifollow"Addanentryaboutthiscourse"
And Isetthefield"Entrytitle"to"Blogtest"
And Isetthefield"Blogentrybody"to"Blogbody"
And Ipress"Savechanges"
And Iclosethebrowsertabopenedbytheapp
# Create and delete comments as a student
When Ientertheapp
And Iloginas"student1"
And Ipress"Course1"near"Recentlyaccessedcourses"intheapp
And Ipress"menu"intheapp
And Ipress"Siteblog"intheapp
Then Ishouldsee"Blogtest"
And Ishouldsee"Blogbody"
When Ipress"Comments(0)"intheapp
And Ipress"close"intheapp
And Isetthefield"Addacomment..."to"commenttest"intheapp
And Ipress"Savecomment"intheapp
Then Ishouldsee"Commentcreated"
And Ishouldsee"commenttest"
When Ipressthebackbuttonintheapp
And Ipress"Comments(1)"intheapp
And Ipress"Delete"intheapp
And Ipress"trash"intheapp
And Ipress"Delete"near"Cancel"intheapp
Then Ishouldsee"Commentdeleted"
But Ishouldnotsee"commenttest"
When Ipressthebackbuttonintheapp
Then Ishouldsee"Comments(0)"
@app@3.8.0
Scenario: Create and delete offline comments and synchronise (blogs)
# Create blog as a teacher
Given Ientertheapp
And Iloginas"teacher1"
And Ipress"Course1"near"Recentlyaccessedcourses"intheapp
And Ipress"menu"intheapp
And Ipress"Website"intheapp
And Iswitchtothebrowsertabopenedbytheapp
And Ifollow"Login"
And Iloginas"teacher1"
And Iclickon"Sidepanel""button"
And Ifollow"C1"
And Ipress"Turneditingon"
And Iclickon"Sidepanel""button"
And Ifollow"Addablock"
And Ifollow"Blogmenu"
And Ifollow"Addanentryaboutthiscourse"
And Isetthefield"Entrytitle"to"Blogtest"
And Isetthefield"Blogentrybody"to"Blogbody"
And Ipress"Savechanges"
And Iclosethebrowsertabopenedbytheapp
# Create and delete comments as a student
When Ientertheapp
And Iloginas"student1"
And Ipress"Course1"near"Recentlyaccessedcourses"intheapp
And Ipress"menu"intheapp
And Ipress"Siteblog"intheapp
Then Ishouldsee"Blogtest"
And Ishouldsee"Blogbody"
When Ipress"Comments(0)"intheapp
And Iswitchofflinemodeto"true"
And Ipress"close"intheapp
And Isetthefield"Addacomment..."to"commenttest"intheapp
And Ipress"Savecomment"intheapp
Then Ishouldsee"Datastoredinthedevicebecauseitcouldn'tbesent.Itwillbesentautomaticallylater."
And Ishouldsee"Thereareofflinecommentstobesynchronised."
And Ishouldsee"commenttest"
When Ipressthebackbuttonintheapp
And Ipress"Comments(0)"intheapp
And Iswitchofflinemodeto"false"
And Ipress"Displayoptions"intheapp
And Ipress"Synchronisenow"intheapp
Then Ishouldsee"commenttest"
But Ishouldnotsee"Thereareofflinecommentstobesynchronised."
When Ipressthebackbuttonintheapp
And Ipress"Comments(1)"intheapp
And Iswitchofflinemodeto"true"
And Ipress"Delete"intheapp
And Ipress"trash"intheapp
And Ipress"Delete"near"Cancel"intheapp
Then Ishouldsee"Commentdeleted"
And Ishouldsee"Thereareofflinecommentstobesynchronised."
And Ishouldsee"Deletedoffline"
And Ishouldsee"commenttest"
When Ipressthebackbuttonintheapp
And Ipress"Comments(1)"intheapp
And Iswitchofflinemodeto"false"
And Ipress"Displayoptions"intheapp
And Ipress"Synchronisenow"intheapp
Then Ishouldnotsee"Thereareofflinecommentstobesynchronised."