Skip to content

Commit d59da78

Browse files
author
Jonas Kutscha
committed
Make sure to find buttons within the summary view
1 parent 3b8b3ba commit d59da78

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects

tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/PitSummaryView.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ public PitSummaryView(SWTWorkbenchBot bot) {
3131

3232
public String clickBack(String expectedUrl) {
3333
showSummaryView();
34-
bot.toolbarButton(PitView.BACK_BUTTON_TEXT).click();
34+
bot.viewById(PitView.VIEW_ID).toolbarButton(PitView.BACK_BUTTON_TEXT).click();
3535
bot.waitUntil(new BrowserLoadCondition(expectedUrl));
3636
return getCurrentBrowserUrl();
3737
}
3838

3939
public String clickHome(String expectedUrl) {
4040
showSummaryView();
41-
bot.toolbarButton(PitView.HOME_BUTTON_TEXT).click();
41+
bot.viewById(PitView.VIEW_ID).toolbarButton(PitView.HOME_BUTTON_TEXT).click();
4242
bot.waitUntil(new BrowserLoadCondition(expectedUrl));
4343
return getCurrentBrowserUrl();
4444
}
4545

4646
public String clickForward(String expectedUrl) {
4747
showSummaryView();
48-
bot.toolbarButton(PitView.FORWARD_BUTTON_TEXT).click();
48+
bot.viewById(PitView.VIEW_ID).toolbarButton(PitView.FORWARD_BUTTON_TEXT).click();
4949
bot.waitUntil(new BrowserLoadCondition(expectedUrl));
5050
return getCurrentBrowserUrl();
5151
}

0 commit comments

Comments
 (0)