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

API for time-sensitive assertions of element presence/absence

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 1.0.1
    • 1.0.1
    • None

    Description

      Use case:

      Within a test we have e.g.
      form.cancel()
      And the next step only works, if the form did disappear.

      @ImplicitWaitTimeout does not help in this situation.

      Exact API to be defined.


       

      Another example from a self-test (PageEditorTest#smokeTest)

             // WHEN
              mainArea.selectComponent("Text"); // selects the first component under this area
              editor.hitAction("Edit component");
              Form form = expect.form("Dialog"); //shrug
      
              // THEN
              assertEquals("Main - Component One", form.getTextFieldValue("Title"));
      
              // GIVEN
              form.cancel();
      
              // WHEN
              mainArea.selectComponentAtPosition("Text", 1); // position index starts at 0
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                apchelintcev Aleksandr Pchelintcev
                cmeier Christoph Meier
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD