[MGNLTEST-19] Page object for rendered pages Created: 18/Sep/19 Updated: 25/Aug/20 Resolved: 18/Aug/20 |
|
| Status: | Closed |
| Project: | Magnolia Test Framework |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.0.1 |
| Type: | Task | Priority: | Neutral |
| Reporter: | Christoph Meier | Assignee: | Michael Duerig |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | QA&Testing, ui-test-fwk | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoR: |
Empty
|
||||||||
| Date of First Response: | |||||||||
| Epic Link: | core-TF-features-bugs-improvements | ||||||||
| Sprint: | TE 8, TE 9 | ||||||||
| Story Points: | 5 | ||||||||
| Description |
| Comments |
| Comment by Federico Grilli [ 11/Feb/20 ] |
|
Re: the page exists case, we should already have all we need. E.g. ... pagesApp.hitAction("Publish"); ... // GIVEN expect.navigation().to(LoginPage.PUBLIC); expect.loginPage().login(LoginPage.SUPERUSER); // WHEN expect.findBar().openApp("pages-app"); // THEN assertTrue(expect.contentApp("Pages").hasRow("myNewPage")); |
| Comment by Christoph Meier [ 03/Mar/20 ] |
True indeed. But since me (as the QAE) should not think too much about implementations - the above sense must be considered as a philosophical remark only ;^) |
| Comment by Christoph Meier [ 03/Mar/20 ] |
Possible APIclass: RenderedPage Object provider: PageObjects#render(String path)
RenderedPage render(String path)
I propose that the path is a path in the website JCR workspace.
The 2nd example is debatable, but I expect it doesn't make a difference for the implementation to allow this or not. prbly makes sense. Methods RenderedPage itself then provides the methods as described above:
|
| Comment by Christoph Meier [ 03/Mar/20 ] |
|
The changes from Sang on info.magnolia.functionaltests.PagesCoreFunctionalTests - so far on a PR (https://git.magnolia-cms.com/projects/PLATFORM/repos/ce/pull-requests/243/overview) prbly shows a possible way how this one could be tackled with the already info.magnolia.testframework.util.TestUtil#openJcrPropServlet |