Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-25747

Integration tests: BrowserContainsText is not stable

    Details

      Description

      Moved over from github issue #1664:

      Condition test BrowserContainsText is not stable for pages where JS is loading data after page is loaded. G.e. redirecting OSIO login page using different account provider (jboss developer) results in refreshing already loaded page (Red Hat login page) instead of refreshing page for which there was a redirection attempt (jboss developer). In case of trying to set URL in code validity of page is lost (most likely because CSFR token is originally sent with redirecting using JS .click() ).
      Solution imo can be by override method arguments to add
      private boolean refresh; with

      public BrowserContainsText(String url, String text, boolean refresh) { ... }
      

      where page refresh will happen only when by default refresh=true .
      PR in progress..

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vprusa Vojtech Prusa
                  Reporter:
                  adietish André Dietisheim
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: