Skip to content

Commit

Permalink
Adding tests for AvailableSoftwareSitesPreferencePage
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Grossmann <lgrossma@redhat.com>
  • Loading branch information
lgrossma authored and odockal committed Nov 15, 2022
1 parent fd29b42 commit 1d4dd1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests/org.eclipse.reddeer.eclipse.test/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Bundle-Vendor: Eclipse.org - RedDeer
Bundle-SymbolicName: org.eclipse.reddeer.eclipse.test;singleton:=true
Bundle-Version: 4.4.0.qualifier
Bundle-Activator: org.eclipse.reddeer.eclipse.test.Activator
Require-Bundle: org.eclipse.reddeer.go;bundle-version="[2.2.0,4.4.1)",
Require-Bundle: org.eclipse.equinox.p2.ui.sdk,
org.eclipse.reddeer.go;bundle-version="[2.2.0,4.4.1)",
org.eclipse.reddeer.gef;bundle-version="[2.2.0,4.4.1)",
org.eclipse.jst.servlet.ui,
org.eclipse.jdt.debug.ui,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.LinkedHashMap;
import java.util.Map;

import org.eclipse.reddeer.common.wait.TimePeriod;
import org.eclipse.reddeer.common.wait.WaitUntil;
import org.eclipse.reddeer.integration.test.installation.common.preferences.AvailableSoftwareSitesPreferencePage;
import org.eclipse.reddeer.jface.preference.PreferenceDialog;
Expand Down Expand Up @@ -179,10 +180,10 @@ public void clickRemoveTest() {
@Test
public void clickReloadTest() {
page.selectItem(ECLIPSE);
page.clickRemove();
new WaitUntil(new ShellIsAvailable("Progress Information"));
page.clickReload();
shell = new DefaultShell();
assertTrue("Shell with title Reload is not opened", shell.getText().contains("Reload"));
assertTrue("Progress Information shell did not open", shell.getText().contains("Progress Information"));
new PushButton(shell, "Cancel").click();
}

@Test
Expand Down

0 comments on commit 1d4dd1a

Please sign in to comment.