Uploaded image for project: 'Magnolia Test Framework'
  1. Magnolia Test Framework
  2. MGNLTEST-19

Page object for rendered pages

XMLWordPrintable

      Overview & context

      Provide a page object to analyze rendered pages.
      It should work on both author and public context.

      For the big majority of the tests, it should be sufficient to analyze "only" text on the rendered page.
      Hence, let's start with a page object for rendered (content-)pages which focus on text-analyzing functions.

      Use cases:

      • pages app
      • p13n functions
      • workflow
      • etc.

      Required functions

      Page exist

      Tests whether a page for the give location exists.
      Should be able to differentiate whether it is really the requested page or just an error page returned by tomcat.

      Example use case:

      Given paige opens the Pages app and adds the page /xyz.
      When she publishes page /xyz.
      Then page $magnoliaPublic/xyz exists.
      

      has-text

      A function to test whether the rendered page contains a given text.

      textA-isBefore-textB

      A function to test, whether a text-A appears on the page before the text-B.

        Acceptance criteria

              mduerig Michael Duerig
              cmeier Christoph Meier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR