Commit e4b63976 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon
Browse files

Bug 1657565: New nav behat tests

behatnotneeded

Change-Id: Ifadc7e911efb905660c2a7bce0193551016a5fac
parent 5097eece
......@@ -16,7 +16,7 @@ Background:
Scenario: Turning on and of switches in Journal configuration block (Bug 1431569)
Given I log in as "admin" with password "Kupuhipa1"
# Navigating to switchbox in Journal block
And I choose "Journals" in "Content"
And I choose "Journals" in "Content" from Main menu
And I follow "New entry"
And I press "Save entry"
And I should see "There was an error with submitting this form. Please check the marked fields and try again."
......@@ -25,7 +25,7 @@ Scenario: Turning on and of switches in Journal configuration block (Bug 1431569
Scenario: Creating a Journal entry
Given I log in as "admin" with password "Kupuhipa1"
# Navigating to switchbox in Journal block
And I choose "Journals" in "Content"
And I choose "Journals" in "Content" from Main menu
And I follow "New entry"
And I set the following fields to these values:
| Title * | Story of my life |
......@@ -61,7 +61,7 @@ Scenario: Creating a Journal entry
And I press "Save entry"
# Adding journal entry to group 'Groupies'
When I choose "My groups" in "Groups"
When I choose "My groups" in "Groups" from Main menu
And I follow "Groupies"
And I follow "Journals" in the "div.arrow-bar" "css_element"
And I follow "Create journal"
......@@ -75,7 +75,7 @@ Scenario: Creating a Journal entry
And I press "Save entry"
# Adding journal blocks to a page
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I follow "Page 01"
And I follow "Edit this page"
And I expand "Journals" node in the "div#content-editor-foldable" "css_element"
......
......@@ -60,6 +60,7 @@ Scenario: Comments update the page's mtime
And I go to portfolio page "page1"
And I fill in "Public comment" in editor "Message"
And I press "Comment"
And I click on "Show Menu"
And I follow "Dashboard"
Then I should see "page1" in the ".bt-newviews" element
And I should not see "page2" in the ".bt-newviews" element
......@@ -69,6 +70,7 @@ Scenario: Comments update the page's mtime
And I fill in "Private comment" in editor "Message"
And I disable the switch "Make public"
And I press "Comment"
And I click on "Show Menu"
And I follow "Dashboard"
Then I should see "page2" in the ".bt-newviews" element
And I should not see "page1" in the ".bt-newviews" element
......@@ -27,7 +27,8 @@ Scenario: Moderating a group comment when approve comments is turned on
And I set the field "Message" to "This is a comment from userC"
And I enable the switch "Make public"
And I press "Comment"
Then I should see "You have requested that this comment be made public."
And I wait "1" seconds
Then I should see "You have requested that this comment be made public." in the ".feedbacktable" "css_element"
And I log out
# Checking that normal group member is not able to moderate comment
......@@ -40,4 +41,4 @@ Scenario: Moderating a group comment when approve comments is turned on
Given I log in as "userA" with password "Kupuhipa1"
And I go to portfolio page "Page1"
Then I should see "This is a comment from userC"
And I press "Make public"
\ No newline at end of file
And I press "Make public"
......@@ -21,77 +21,97 @@ Scenario: Threaded comments should be displayed in correct order
# Add 11 comments
And I fill in "Comment #1" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I fill in "Comment #2" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I fill in "Comment #3" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I fill in "Comment #4" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I fill in "Comment #5" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I fill in "Comment #6" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I fill in "Comment #7" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I fill in "Comment #8" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I fill in "Comment #9" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I fill in "Comment #10" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I fill in "Comment #11" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I fill in "Comment #12" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
# Go to the first page
And I scroll to the base of id "comment-form"
And I follow "1"
And I should see "Comment #1"
And I should see "Comment #10"
And "Comment #2" "text" should appear before "Comment #3" "text"
And I should not see "Comment #11"
# Go to the second page
And I scroll to the base of id "comment-form"
And I scroll to the base of id "feedback_pagination"
And I follow "2"
And I should see "Comment #11"
And "Comment #11" "text" should appear before "Comment #12" "text"
And I should not see "Comment #10"
# Reply to a comment
And I scroll to the base of id "comment-form"
And I scroll to the base of id "feedback_pagination"
And I follow "1"
And I scroll to the base of id "main-nav"
And I click on "Show Menu"
And I click on "Reply" in "Comment #1" row
And I fill in "Comment #1/1" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And "Comment #1/1" "text" should appear before "Comment #2" "text"
And I scroll to the id "feedbacktable"
And I click on "Reply" in "Comment #1/1" row
And I fill in "Comment #1/1/1" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I scroll to the id "feedbacktable"
And I click on "Reply" in "Comment #1/1" row
And I fill in "Comment #1/1/2" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I scroll to the id "feedbacktable"
And I click on "Reply" in "Comment #1/1/1" row
And I fill in "Comment #1/1/1/1" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I scroll to the id "feedbacktable"
And I click on "Reply" in "Comment #1/1/1/1" row
And I fill in "Comment #1/1/1/1/1" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I scroll to the id "feedbacktable"
And I click on "Reply" in "Comment #1/1/1/1" row
And I fill in "Comment #1/1/1/1/2" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I scroll to the id "feedbacktable"
And I click on "Reply" in "Comment #1/1" row
And I fill in "Comment #1/1/3" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And I scroll to the base of id "feedbacktable"
And I click on "Reply" in "Comment #1/1/2" row
And I fill in "Comment #1/1/2/1" in editor "Message"
And I press "Comment"
And I go to portfolio page "page1"
And "Comment #1/1/1/1/1" "text" should appear before "Comment #1/1/1/1/2" "text"
And "Comment #1/1/1/1/2" "text" should appear before "Comment #1/1/2" "text"
And "Comment #1/1/2/1" "text" should appear before "Comment #1/1/3" "text"
......@@ -91,6 +91,7 @@ Scenario: Private comment by commenter, private reply by page owner, private cou
And I should see "Private reply by pageowner"
And I should see "Private counter-reply by pagecommenter"
# pagecommenter should receive a notification about pageowner's reply even though they unwatched the page
And I click on "Show User Menu"
And I follow "mail"
And I follow "New comment on page1"
And I should see "Private reply by pageowner"
......
......@@ -5,7 +5,7 @@ In order to test the pagination of the plan
Scenario: Creating a plan with 11 tasks (Bug #1503036)
Given I log in as "admin" with password "Kupuhipa1"
And I choose "Plans" in "Content"
And I choose "Plans" in "Content" from Main menu
And I follow "New plan"
And I fill in the following:
| Title * | Plan 9 from outer space |
......@@ -88,7 +88,7 @@ Scenario: Creating a plan with 11 tasks (Bug #1503036)
And I follow "Next page"
Then I should see "Alien invasion"
# Add the plan to a page
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I follow "Add"
And I click on "Page" in the dialog
And I press "Save"
......
......@@ -17,7 +17,7 @@ Background:
Scenario: Editing admin resume page (Bug 1426983)
Given I log in as "userA" with password "Kupuhipa1"
# Editing resume
When I choose "Résumé" in "Content"
When I choose "Résumé" in "Content" from Main menu
And I follow "Introduction"
And I fill in the following:
| Date of birth | 1970/01/07 |
......@@ -92,8 +92,9 @@ Scenario: Editing admin resume page (Bug 1426983)
And I click on "Move down" in "Test" row
And I click on "Move up" in "Test" row
# Adding Achievements
And I scroll to the id "main-nav"
And I scroll to the id "main-column-container"
And I follow "Achievements"
And I wait "1" seconds
And I press "addcertificationbutton"
# Adding Certifications, accreditations and awards
And I set the following fields to these values:
......@@ -105,6 +106,8 @@ Scenario: Editing admin resume page (Bug 1426983)
And I press "Save"
And I should see "Saved successfully"
And I follow "Achievements"
And I wait "1" seconds
And I scroll to the id "resumewrap"
And I press "addcertificationbutton"
And I set the following fields to these values:
| Date | 13/07/2017 |
......@@ -162,7 +165,7 @@ Scenario: Editing admin resume page (Bug 1426983)
And I should see "Saved successfully"
And I click on "Move down" in "Mr Membership" row
And I click on "Move up" in "Mr Membership" row
And I scroll to the id "main-nav"
And I scroll to the id "main-column-container"
And I follow "Goals and skills"
And I should see "My goals"
And I should see "My skills"
......@@ -176,7 +179,7 @@ Scenario: Editing admin resume page (Bug 1426983)
And I wait "1" seconds
And I press "Save"
And I should see "Saved successfully"
And I scroll to the id "main-nav"
And I scroll to the id "main-column-container"
And I follow "Academic goals"
And I set the following fields to these values:
| Description | whateve ry askdf |
......@@ -187,7 +190,7 @@ Scenario: Editing admin resume page (Bug 1426983)
And I wait "1" seconds
And I press "Save"
And I should see "Saved successfully"
And I scroll to the id "main-nav"
And I scroll to the id "main-column-container"
And I follow "Career goals"
And I set the following fields to these values:
| Description | whateve ry askdf |
......@@ -231,14 +234,14 @@ Scenario: Editing admin resume page (Bug 1426983)
And I wait "1" seconds
And I press "Save"
And I should see "Saved successfully"
And I scroll to the id "main-nav"
And I scroll to the id "main-column-container"
And I follow "Interests"
And I press "Edit"
And I set the following fields to these values:
| resumefieldform_interest | test |
And I press "Save"
And I should see "Saved successfully"
And I scroll to the id "main-nav"
And I scroll to the id "main-column-container"
And I follow "License"
And I set the following fields to these values:
| License | Creative Commons Attribution 4.0 |
......@@ -249,4 +252,4 @@ Scenario: Editing admin resume page (Bug 1426983)
And I press "Save"
And I should see "Résumé saved"
# Logging out and loggin in as as student user/ then ending
And I follow "Logout"
And I log out
......@@ -15,7 +15,7 @@ Given the following "users" exist:
# Logging in as a user
Given I log in as "userA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click on "Page 1" panel menu
And I click on "Edit" in "Page 1" panel menu
# Configuring the block
......@@ -31,7 +31,7 @@ Scenario: Adding and deleting a Note block (Bug 1424512)
And I should see "Note block 1"
# Verifying the Note block saved
And I display the page
And I choose "Notes" in "Content"
And I choose "Notes" in "Content" from Main menu
And I should see "Note block 1"
# Verifying the Note block can be deleted
And I delete the "Note block 1" row
......@@ -45,6 +45,6 @@ Scenario: Adding an attachment to a note
And I should see "Upload of Image2.png complete"
And I press "Save"
# Verifying the attachment saved
And I choose "Notes" in "Content"
And I choose "Notes" in "Content" from Main menu
And I follow "Note block 1"
And I should see "Image2.png"
......@@ -15,7 +15,7 @@ Background:
Scenario: Create Image block
Given I log in as "userA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click on "Page 1" panel menu
And I click on "Edit" in "Page 1" panel menu
And I follow "Image"
......@@ -30,6 +30,6 @@ Scenario: Create Image block
And I set the field "Show description" to "1"
And I press "Save"
And I wait "2" seconds
And I scroll to the id "main-nav"
And I click on "Display page"
And I scroll to the id "main-column-container"
And I follow "Display page"
And I should see "Image1.jpg"
......@@ -10,6 +10,7 @@ Scenario: Creating a page with content in it (Bug 1426983)
# Verifying log in was successful
And I should see "Admin User"
# Navigating to Portfolio to create a page
And I click on "Show Menu"
And I follow "Portfolio"
And I follow "Add"
And I click on "Page" in the dialog
......@@ -42,4 +43,4 @@ Scenario: Creating a page with content in it (Bug 1426983)
And I press "Remove"
And I display the page
# Verifying the page saved and is clickable
Then I should see "Test view"
\ No newline at end of file
Then I should see "Test view"
......@@ -16,7 +16,7 @@ Scenario: Add some externalfeed blocks
# Externalfeed block should be added in a page from several feed sources in
# RSS or Atom format
Given I log in as "userA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click on "Page 1" panel menu
And I click on "Edit" in "Page 1" panel menu
And I expand "External" node
......
......@@ -20,6 +20,7 @@ Background:
Scenario: Testing that views & collections are collated properly in the "My portfolios" block
Given I log in as "userA" with password "Kupuhipa1"
# I should see collections & individual pages
And I scroll to the id "column-container"
And I should see "C1" in the "div.list-group-item" "css_element"
And I should see "(2 pages)" in the "div.list-group-item" "css_element"
And I should see "page P2" in the "div.bt-myviews" "css_element"
......
......@@ -15,7 +15,7 @@ Background:
Scenario: Create Text block
Given I log in as "userA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click on "Page 1" panel menu
And I click on "Edit" in "Page 1" panel menu
And I follow "Text"
......@@ -29,7 +29,7 @@ Scenario: Create Text block
And I wait "2" seconds
Then I should see "Here is a new block" in the "div#column-container" element
And I should see "Text block 1" in the "div#column-container" element
And I scroll to the id "main-nav"
And I click on "Display page"
And I scroll to the id "main-column-container"
And I follow "Display page"
Then I should see "Here is a new block"
And I should see "Text block 1"
......@@ -17,7 +17,7 @@ Scenario: Open badges block
# party site we can't currently test that part and ship the details in this test
# So all we can do is check that the block exists and saves to a page
Given I log in as "userA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click on "Page 1" panel menu
And I click on "Edit" in "Page 1" panel menu
And I expand "External" node
......
......@@ -19,6 +19,7 @@ The wall post must generate a notification (Bug 547333)
And I press "Post"
And I log out
And I log in as "userA" with password "Kupuhipa1"
And I click on "Show User Menu"
And I follow "mail"
Then I should see "New post on your wall"
When I click on "New post on your wall"
......@@ -27,4 +28,4 @@ The wall post must generate a notification (Bug 547333)
When I follow "View whole wall"
Then I should see "Pete Mc: Wall"
And I should see "Son Nguyen"
And I should see "Hello"
\ No newline at end of file
And I should see "Hello"
......@@ -11,7 +11,7 @@ Scenario: Adding tags to files (Bug 1426983)
# Verifying log in was successful
And I should see "Admin User"
# Creating a folder with a tag
When I choose "Files" in "Content"
When I choose "Files" in "Content" from Main menu
And I set the following fields to these values:
| Create folder | folder1 |
# Pressing create folder button
......@@ -23,7 +23,7 @@ Scenario: Adding tags to files (Bug 1426983)
And I fill in select2 input "files_filebrowser_edit_tags" with "folder" and select "folder"
And I press "Save changes"
#Creating a Journal with tag
And I choose "Journals" in "Content"
And I choose "Journals" in "Content" from Main menu
And I follow "New entry"
And I set the following fields to these values:
| Title * | Journal one |
......@@ -33,7 +33,7 @@ Scenario: Adding tags to files (Bug 1426983)
And I fill in select2 input "editpost_tags" with "test" and select "test"
And I press "Save entry"
# Creating a Plan with a tag
And I choose "Plans" in "Content"
And I choose "Plans" in "Content" from Main menu
And I follow "New plan"
And I fill in the following:
| Title * | Plan 9 from outer space |
......@@ -52,6 +52,7 @@ Scenario: Adding tags to files (Bug 1426983)
And I fill in select2 input "addtasks_tags" with "test" and select "test"
And I press "Save task"
# Creating page 1 with a tag
And I click on "Show Menu"
And I follow "Portfolio"
And I follow "Add"
And I click on "Page" in the dialog
......@@ -60,6 +61,7 @@ Scenario: Adding tags to files (Bug 1426983)
And I fill in select2 input "editview_tags" with "page" and select "page"
And I fill in select2 input "editview_tags" with "test" and select "test"
And I press "Save"
And I click on "Show Menu"
And I follow "Portfolio"
# Creating page 2 with a tag
And I follow "Add"
......
......@@ -18,7 +18,7 @@ Scenario: Creating a collection AND adding pages
# Verifying log in was successful
And I should see "Admin User"
# Create Test collection
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I follow "Add"
And I click on "Collection" in the dialog
And I fill in the following:
......@@ -35,6 +35,7 @@ Scenario: Creating a collection AND adding pages
And I should see "Testing page 3"
And I should see "A page 4"
# Sort pages by Last modified
And I click on "Show Menu"
Then I follow "Portfolio"
And I select "Alphabetical" from "Sort by:"
And I press the key "Enter" in the "Search:" field
......@@ -47,18 +48,18 @@ Scenario: Creating a collection AND adding pages
And "Testing page 2" "link" should appear before "Testing page 3" "link"
# Sharing the collection then adding in a new page
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I follow "Edit access"
And I select "Registered users" from "accesslist[0][searchtype]"
And I press "Save"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I follow "Add"
And I click on "Page" in the dialog
And I set the following fields to these values:
| Page title | New page |
| Page description | testing |
And I press "Save"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I click on "Test Collection" panel menu
And I click on "Manage" in "Test Collection" panel menu
And I follow "All"
......
......@@ -7,7 +7,7 @@ Feature: Annotation block is off by default
Scenario: Accessing annotation block (Bug 1443730)
Given I log in as "admin" with password "Kupuhipa1"
# Creating a page
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I follow "Add"
And I click on "Page" in the dialog
And I fill in "My page is amazing" for "Page title *"
......@@ -17,8 +17,7 @@ Scenario: Accessing annotation block (Bug 1443730)
And I should not see "Annotation"
And I display the page
# Navigating to admin block to turn it on
And I follow "Administration"
And I choose "Plugin administration" in "Extensions"
And I choose "Plugin administration" in "Extensions" from Admin menu
And I press "activate_blocktype_annotation_submit"
And I am on homepage
# Editing page to enable annotation block
......
......@@ -11,7 +11,7 @@ Scenario: Creating sub folder and attaching files (Bug 1426983)
# Verifying log in was successful
And I should see "Admin User"
# Creating folder 1
When I choose "Files" in "Content"
When I choose "Files" in "Content" from Main menu
And I fill in "Folder1" for "files_filebrowser_createfolder_name"
And I press "Create folder"
And I wait "1" seconds
......
......@@ -16,7 +16,7 @@ Scenario: Adding collection to group (Bug 1448807)
| title | description| ownertype | ownername |
| Site Page 01 | This is the page 01 of the site | group 01 | userA |
When I log in as "userA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio"
And I choose "Pages and collections" in "Portfolio" from Main menu
And I follow "Add"
And I click on "Collection" in the dialog
And I set the following fields to these values:
......@@ -27,11 +27,12 @@ Scenario: Adding collection to group (Bug 1448807)
And I press "Add pages"
And I wait until the page is ready
And I follow "Done"
And I choose "Shared by me" in "Portfolio"
And I choose "Shared by me" in "Portfolio" from Main menu
And I follow "Edit access"
And I select "group 01" from "accesslist[0][searchtype]"
And I press "Save"
Then I should see "Access rules were updated for 1 page"
And I click on "Show Menu"
And I follow "Groups"
And I follow "group 01"
And I should see "Updated" in the "#sharedcollectionlist" element
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment