← Back to team overview

mahara-contributors team mailing list archive

[Bug 1692746] Re: Behat test for shared access to pages

 

I have reviewed this more closely and think these are the things to
focus on here:

test/behat/features/group/shared_views_to_group.feature
 - change name to share_with_group.feature
 - make as concise as possible
 - use new date step https://reviews.mahara.org/#/c/7962/ to add relative date/s

test/behat/features/group/group_view_block.feature
 - remove functionality that is tested in share_with_group.feature
 - This test is way too huge. Look at making it more concise.

test/behat/features/group/shared_pages_timestamp.feature
 - combine with share_with_group.feature

test/behat/features/user/search_users_by_share_pages.feature
 - don't confirm login
 - add pages in Background
 - consider combining with the share_with_group.feature

test/behat/features/view/sharepage.feature
 - could be a scenario in a related test, e.g, search_users_by_share_pages.feature

-- 
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/1692746

Title:
  Behat test for shared access to pages

Status in Mahara:
  In Progress

Bug description:
  There isn't a good test for sharing page access.

  It would be good to have a test that creates a number of pages and
  users and confirms that the users whom the pages are shared with are
  the only ones that have access to them.

  So the test should go to pages and collections, set the access to a
  particular role, group or individual and confirm that the people
  shared with are the ones that have access.

  There are tests that start to test this function, but they don't comprehensively test it.
  /features/user/search_users_by_share_pages.feature
  /features/user/registered_users.feature

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


References