← Back to team overview

mahara-contributors team mailing list archive

[Bug 1774504] A patch has been submitted for review

 

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

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1774504

Title:
  behat test for Profile page can be shared publicly

Status in Mahara:
  New

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! | UserA@xxxxxxxxxxx | Angela | User | mahara | internal | member |
      | UserB | Kupuh1pa! | UserB@xxxxxxxxxxx | 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"

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1774504/+subscriptions


References