Vojtech Prusa created JBIDE-25680:
-------------------------------------
Summary: Forced refreshing of browser prevents login using different account
providers
Key: JBIDE-25680
URL:
https://issues.jboss.org/browse/JBIDE-25680
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: openshift
Affects Versions: 4.5.3.AM1
Reporter: Vojtech Prusa
Priority: Minor
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..
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)