Adjust program detail page URL routing
The new URL pattern expects a program ID and allows a program name to be included, if desired. It will match paths like 'programs/123/' and 'programs/123/foo/', but not 'programs/123/foo/bar/'. The given ID is passed to the view, where it will be used to retrieve program data. Part of ECOM-4415.
This commit is contained in:
@@ -24,7 +24,7 @@ class ProgramListingPage(PageObject):
|
||||
|
||||
class ProgramDetailsPage(PageObject):
|
||||
"""Program details page."""
|
||||
url = BASE_URL + '/dashboard/programs/123'
|
||||
url = BASE_URL + '/dashboard/programs/123/program-name/'
|
||||
|
||||
def is_browser_on_page(self):
|
||||
return self.q(css='.js-program-details-wrapper').present
|
||||
|
||||
Reference in New Issue
Block a user