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

page objects tends to fail initialization on PublicationWorkflowFunctionalTests#setUp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Trivial Trivial
    • None
    • None

      Since MGNLEE-168 there is shakines in passing functional tests here:
      https://git.magnolia-cms.com/projects/PLATFORM/repos/dx-core/browse/integration-tests/tests/src/test/java/info/magnolia/functionaltests/PublicationWorkflowFunctionalTests.java#62

      Stacktrace org.openqa.selenium.StaleElementReferenceException: 
      stale element reference: element is not attached to the page document
        (Session info: chrome=88.0.4324.96)
      For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/stale_element_reference.html
      Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
      System info: host: 'ip-172-30-100-76', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-1052-aws', java.version: '1.8.0_152'
      Driver info: org.openqa.selenium.remote.RemoteWebDriver
      Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 88.0.4324.96, chrome: {chromedriverVersion: 88.0.4324.96 (68dba2d8a0b14..., userDataDir: /tmp/.com.google.Chrome.kouzz4}, goog:chromeOptions: {debuggerAddress: localhost:40377}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true, webdriver.remote.sessionid: 96d5b97aaefdde0a5cebe5e3d5d...}
      Session ID: 96d5b97aaefdde0a5cebe5e3d5ddd5a6
      	at info.magnolia.functionaltests.PublicationWorkflowFunctionalTests.setUp(PublicationWorkflowFunctionalTests.java:62)
      

      Notes:

       

      • in this the case above, failed line is first use of findBar() after login and most often last image of the run is login dialog (see image attached)
      • fix related TODOs in info.magnolia.functionaltests.PublicationWorkflowFunctionalTests

      To reproduce:

          @Test
          void loginLogin(PageObjects expect){
              expect.loginPage().login(Personas.ARMIN);
              expect.loginPage().login(Personas.ERIC);
          }
      

      Note that the 2nd expect.loginPage().login should logout first. The code is valid to swap the user.
      But it fails.

        Acceptance criteria

              Unassigned Unassigned
              asiska Adam Siska
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

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