mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #28239
[Bug 1484361] [NEW] New Behat step for visiting a specific view
Public bug reported:
While writing a Behat test that requires placing comments by anonymous
users on a portfolio page, I realized there is no easy way to visit a
portfolio page while you're logged out.
For logged in users, I've been relying on the fact that the default
Dashboard page includes the "latest views" block, which in normal test
cases will show the small number of pages created for the test. But a
logged-out user has no such dashboard. They need to get to the page
directly by its URL. But we can't rely on the URL being the same every
time because it contains an ID number, and MySQL doesn't reset the
automatically assigned ID numbers back to 0 between each test.
So, what we need is a step like this:
Given I go to portfolio page "This is my page"
The step can then look up the page's ID, and send you to the correct
URL.
** Affects: mahara
Importance: Medium
Assignee: Aaron Wells (u-aaronw)
Status: In Progress
** Affects: mahara/15.04
Importance: Medium
Assignee: Aaron Wells (u-aaronw)
Status: In Progress
** Affects: mahara/15.10
Importance: Medium
Assignee: Aaron Wells (u-aaronw)
Status: In Progress
** Tags: behat
--
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/1484361
Title:
New Behat step for visiting a specific view
Status in Mahara:
In Progress
Status in Mahara 15.04 series:
In Progress
Status in Mahara 15.10 series:
In Progress
Bug description:
While writing a Behat test that requires placing comments by anonymous
users on a portfolio page, I realized there is no easy way to visit a
portfolio page while you're logged out.
For logged in users, I've been relying on the fact that the default
Dashboard page includes the "latest views" block, which in normal test
cases will show the small number of pages created for the test. But a
logged-out user has no such dashboard. They need to get to the page
directly by its URL. But we can't rely on the URL being the same every
time because it contains an ID number, and MySQL doesn't reset the
automatically assigned ID numbers back to 0 between each test.
So, what we need is a step like this:
Given I go to portfolio page "This is my page"
The step can then look up the page's ID, and send you to the correct
URL.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1484361/+subscriptions
Follow ups
-
[Bug 1484361] Re: New Behat step for visiting a specific view
From: Robert Lyon, 2016-11-06
-
[Bug 1484361] Re: New Behat step for visiting a specific view
From: Aaron Wells, 2015-10-23
-
[Bug 1484361] Re: New Behat step for visiting a specific view
From: Robert Lyon, 2015-08-19
-
[Bug 1484361] A patch has been submitted for review
From: Mahara Bot, 2015-08-18
-
[Bug 1484361] Re: New Behat step for visiting a specific view
From: Kristina Hoeppner, 2015-08-13
-
[Bug 1484361] A change has been merged
From: Mahara Bot, 2015-08-13
-
[Bug 1484361] A patch has been submitted for review
From: Mahara Bot, 2015-08-13
-
[Bug 1484361] A change has been merged
From: Mahara Bot, 2015-08-13
-
[Bug 1484361] A patch has been submitted for review
From: Mahara Bot, 2015-08-13
-
[Bug 1484361] Re: New Behat step for visiting a specific view
From: Aaron Wells, 2015-08-13