Behat test: Profile page can be shared publicly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Steven |
Bug Description
Create a new Behat feature file
-------
@javascript @core
Feature: Profile page can be shared publicly
As a user
I want to sahre my Portfolio pages on my public profile page
So that visitors can quickly browse to see them
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuh1pa! | <email address hidden> | Angela | User | mahara | internal | member |
| UserB | Kupuh1pa! | <email address hidden> | Bob | User | mahara | internal | member |
And the following "pages" exist:
| title | description| ownertype | ownername |
| Page UserA_01 | Page 01 | user | UserA |
| Page UserA_02 | Page 01 | user | UserA |
| Page UserA_03 | Page 01 | user | UserA |
| Page UserA_04 | Page 01 | user | UserA |
| Page UserA_05 | Page 01 | user | UserA |
| Page UserA_06 | Page 01 | user | UserA |
| Page UserA_07 | Page 01 | user | UserA |
| Page UserA_08 | Page 01 | user | UserA |
| Page UserA_09 | Page 01 | user | UserA |
| Page UserA_10 | Page 01 | user | UserA |
| Page UserA_11 | Page 01 | user | UserA |
| Page UserA_12 | Page 01 | user | UserA |
Scenario: User checks pagination on profile page for shared portfolio pages
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Shared by me" in "Portfolio" from main menu
# Edit access for Page UserA_01
And I click on "Edit access" in "Page UserA_01" row
And I set the select2 value "Page UserA_02, Page UserA_03, Page UserA_04, Page UserA_05, Page UserA_06, Page UserA_07, Page UserA_08, Page UserA_09, Page UserA_10, Page UserA_11, Page UserA_12" for "editaccess_views"
And I select "Public" from "accesslist[
And I press "Save"
And I click on "Edit access" in "Profile page" row
And I select "Public" from "accesslist[
And I press "Save"
When I follow "Profile page"
Then I should see "Page UserA_01"
And I should see "Page UserA_02"
And I should see "Page UserA_03"
And I should see "Page UserA_04"
And I should see "Page UserA_05"
And I should see "Page UserA_06"
And I should see "Page UserA_07"
And I should see "Page UserA_08"
And I should see "Page UserA_09"
And I should see "Page UserA_10"
When I jump to page "2" of the list "myviews_
Then I should see "Page UserA_11"
Then I should see "Page UserA_12"
Changed in mahara: | |
status: | New → In Progress |
importance: | Undecided → Medium |
milestone: | none → 18.10.0 |
assignee: | nobody → Steven (stevens-q) |
Changed in mahara: | |
status: | In Progress → Fix Committed |
summary: |
- behat test for Profile page can be shared publicly + Behat test: Profile page can be shared publicly |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/8929