Behat test: Profile page can be shared publicly

Bug #1774504 reported by Steven
6
This bug affects 1 person
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[0][searchtype]"
    And I press "Save"
    And I click on "Edit access" in "Profile page" row
    And I select "Public" from "accesslist[0][searchtype]"
    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_pagination"
    Then I should see "Page UserA_11"
    Then I should see "Page UserA_12"

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/8929

Changed in mahara:
status: New → In Progress
importance: Undecided → Medium
milestone: none → 18.10.0
assignee: nobody → Steven (stevens-q)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8929
Committed: https://git.mahara.org/mahara/mahara/commit/5d13f48b98273c8deb7d9875e48388094ef25223
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 5d13f48b98273c8deb7d9875e48388094ef25223
Author: Steven Spinelli <email address hidden>
Date: Fri Jun 1 09:16:22 2018 +1200

Bug 1774504: behat test for Profile page can be shared publicly
updated script

Change-Id: I9258cc18ff48d3c360666c95b08ad916f76721fc

Robert Lyon (robertl-9)
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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.