[
https://issues.jboss.org/browse/JBIDE-25747?page=com.atlassian.jira.plugi...
]
Andre Dietisheim reassigned JBIDE-25747:
----------------------------------------
Description:
Moved over from github [issue
#1664|https://github.com/jbosstools/jbosstools-openshift/issues/1664]:
Condition test
[
BrowserContainsText|https://github.com/jbosstools/jbosstools-openshift/bl...]
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
{code}
public BrowserContainsText(String url, String text, boolean refresh) { ... }
{code}
where page refresh will happen only when by default refresh=true .
PR in progress..
was:
Condition test
[
BrowserContainsText|https://github.com/jbosstools/jbosstools-openshift/bl...]
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
{code}
public BrowserContainsText(String url, String text, boolean refresh) { ... }
{code}
where page refresh will happen only when by default refresh=true .
PR in progress..
Assignee: Vojtech Prusa
Integration tests: BrowserContainsText is not stable
-----------------------------------------------------
Key: JBIDE-25747
URL:
https://issues.jboss.org/browse/JBIDE-25747
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.5.3.AM1
Reporter: Andre Dietisheim
Assignee: Vojtech Prusa
Moved over from github [issue
#1664|https://github.com/jbosstools/jbosstools-openshift/issues/1664]:
Condition test
[
BrowserContainsText|https://github.com/jbosstools/jbosstools-openshift/bl...]
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
{code}
public BrowserContainsText(String url, String text, boolean refresh) { ... }
{code}
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)