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

Provide a Page Object for a "Banner"

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Done
    • Neutral
    • 1.4.0
    • None
    • None

    Description

      So far we have "Alert" and "Notification" - which are both very similar - kind of "free floating bubbles" (with a messsage and possibly with buttons).

      See screenshots for examples of banners.

      Banners appear when sending message with the Messages app - or when an error occurs which is exposed at the UI. The later case is more important for UI tests.

      Developer notes

      The class should implement PageObject.
      And it should override
      void assertExists throws Throwable

      AND ...
      ... as an exception it also would be nice to have a method
      void assertDoesNotExists throws Throwable
      While at first one may think that to check whether the PO does not exist, in a test we just could write:
      !expect().banner().assertExists

      BUT ... assertExists typically is implemented in a way that it returns very quickly, when the PO exists, but would wait looong if it does not exist.
      Hence - !expect().banner().assertExists - would slow down such a test dramatically.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                hpola Harshini Pola
                cmeier Christoph Meier
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 1d 5.5h
                    1d 5.5h