Skip to content

Commit

Permalink
Make sure to find buttons within the summary view
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Kutscha committed Aug 30, 2021
1 parent 3b8b3ba commit d59da78
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ public PitSummaryView(SWTWorkbenchBot bot) {

public String clickBack(String expectedUrl) {
showSummaryView();
bot.toolbarButton(PitView.BACK_BUTTON_TEXT).click();
bot.viewById(PitView.VIEW_ID).toolbarButton(PitView.BACK_BUTTON_TEXT).click();
bot.waitUntil(new BrowserLoadCondition(expectedUrl));
return getCurrentBrowserUrl();
}

public String clickHome(String expectedUrl) {
showSummaryView();
bot.toolbarButton(PitView.HOME_BUTTON_TEXT).click();
bot.viewById(PitView.VIEW_ID).toolbarButton(PitView.HOME_BUTTON_TEXT).click();
bot.waitUntil(new BrowserLoadCondition(expectedUrl));
return getCurrentBrowserUrl();
}

public String clickForward(String expectedUrl) {
showSummaryView();
bot.toolbarButton(PitView.FORWARD_BUTTON_TEXT).click();
bot.viewById(PitView.VIEW_ID).toolbarButton(PitView.FORWARD_BUTTON_TEXT).click();
bot.waitUntil(new BrowserLoadCondition(expectedUrl));
return getCurrentBrowserUrl();
}
Expand Down

0 comments on commit d59da78

Please sign in to comment.