Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63159

MatrixAuthorizationStrategy PO failing to add users

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I am reliably observing a race condition in the MatrixAuthorizationStrategy page object when trying to add 2 users in succession

      MatrixAuthorizationStrategy auth = security.useAuthorizationStrategy(MatrixAuthorizationStrategy.class);
      auth.addUser("alice").admin();
      auth.addUser("bob").developer();
      

      the addition of the second user fails with :

      org.openqa.selenium.TimeoutException:
      Expected condition failed: waiting for alert to be present (tried for 10 second(s) with 500 milliseconds interval)
      

      looking at a screen recoring this may be due to the fact that the tooltip for the recently added "administrator" permission for alice is showing a tooltip that is partially obscuring the button

      using

      • acceptance-test-harness 1.74
      • selenium/standalone-firefox-debug:2.53 docker image for firefox (docker run -d -p 4444:4444 -p 5900:5900 -e no_proxy=localhost -e SCREEN_WIDTH=1680 -e SCREEN_HEIGHT=1090 selenium/standalone-firefox-debug:2.53.1)
      • BROWSER=remote-webdriver-firefox

        Attachments

          Activity

          teilo James Nord created issue -
          teilo James Nord made changes -
          Field Original Value New Value
          Summary MatrixAuthorizationStrategy PO not clicking in button due to tooltip MatrixAuthorizationStrategy PO failing to add users
          teilo James Nord made changes -
          Assignee Oliver Gond┼ża [ olivergondza ] James Nord [ teilo ]
          teilo James Nord made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          teilo James Nord made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          teilo James Nord made changes -
          Remote Link This issue links to "jenkinsci/acceptance-test-harness#593 (Web Link)" [ 25339 ]
          teilo James Nord made changes -
          Description I am reliably observing a race condition in the MatrixAuthorizationStrategy page object when trying to add 2 users in succession

          {noformat}
          MatrixAuthorizationStrategy auth = security.useAuthorizationStrategy(MatrixAuthorizationStrategy.class);
          auth.addUser("alice").admin();
          auth.addUser("bob").developer();
          {noformat}

          the addition of the second user fails with :

          {noformat}
          org.openqa.selenium.TimeoutException:
          Expected condition failed: waiting for alert to be present (tried for 10 second(s) with 500 milliseconds interval)
          {noformat}

          looking at a screen recoring this may be due to the fact that the tooltip for the recently added "administrator" permission for alice is showing a tooltip that is partially obscuring the button

           !image-2020-07-22-10-35-47-975.png|thumbnail!

          using
          * acceptance-test-harness 1.74
          * selenium/standalone-firefox-debug:2.53 docker image for firefox
          * BROWSER=remote-webdriver-firefox
          I am reliably observing a race condition in the MatrixAuthorizationStrategy page object when trying to add 2 users in succession

          {noformat}
          MatrixAuthorizationStrategy auth = security.useAuthorizationStrategy(MatrixAuthorizationStrategy.class);
          auth.addUser("alice").admin();
          auth.addUser("bob").developer();
          {noformat}

          the addition of the second user fails with :

          {noformat}
          org.openqa.selenium.TimeoutException:
          Expected condition failed: waiting for alert to be present (tried for 10 second(s) with 500 milliseconds interval)
          {noformat}

          looking at a screen recoring this may be due to the fact that the tooltip for the recently added "administrator" permission for alice is showing a tooltip that is partially obscuring the button

           !image-2020-07-22-10-35-47-975.png|thumbnail!

          using
          * acceptance-test-harness 1.74
          * selenium/standalone-firefox-debug:2.53 docker image for firefox ({{docker run -d -p 4444:4444 -p 5900:5900 -e no_proxy=localhost -e SCREEN_WIDTH=1680 -e SCREEN_HEIGHT=1090 selenium/standalone-firefox-debug:2.53.1}})
          * BROWSER=remote-webdriver-firefox
          teilo James Nord made changes -
          Resolution Not A Defect [ 7 ]
          Status In Review [ 10005 ] Resolved [ 5 ]
          teilo James Nord made changes -
          Assignee James Nord [ teilo ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: