Skip to content

Commit d30fc1c

Browse files
author
Mike Reiche
committed
Merge fixes from master
1 parent a7d250d commit d30fc1c

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

integration-tests/src/test/java/eu/tsystems/mms/tic/testframework/test/guielement/GuiElementShadowRootTest.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,18 @@
2323
package eu.tsystems.mms.tic.testframework.test.guielement;
2424

2525
import eu.tsystems.mms.tic.testframework.AbstractExclusiveTestSitesTest;
26-
import eu.tsystems.mms.tic.testframework.AbstractTestSitesTest;
2726
import eu.tsystems.mms.tic.testframework.core.pageobjects.testdata.GuiElementShadowRootPage;
2827
import eu.tsystems.mms.tic.testframework.core.testpage.TestPage;
2928
import eu.tsystems.mms.tic.testframework.exceptions.UiElementAssertionError;
30-
import eu.tsystems.mms.tic.testframework.exceptions.UiElementException;
3129
import eu.tsystems.mms.tic.testframework.pageobjects.GuiElement;
3230
import eu.tsystems.mms.tic.testframework.pageobjects.XPath;
33-
import eu.tsystems.mms.tic.testframework.exceptions.TimeoutException;
34-
import eu.tsystems.mms.tic.testframework.pageobjects.factory.PageFactory;
3531
import eu.tsystems.mms.tic.testframework.report.model.steps.TestStep;
36-
import eu.tsystems.mms.tic.testframework.test.page.PageFactoryTest;
3732
import eu.tsystems.mms.tic.testframework.test.PageFactoryTest;
3833
import org.junit.Assert;
3934
import org.openqa.selenium.By;
40-
import org.openqa.selenium.By;
4135
import org.testng.annotations.Test;
4236

43-
public class GuiElementShadowRootTest extends AbstractExclusiveTestSitesTest<GuiElementShadowRootPage> {
37+
public class GuiElementShadowRootTest extends AbstractExclusiveTestSitesTest<GuiElementShadowRootPage> implements PageFactoryTest {
4438

4539
@Override
4640
protected TestPage getTestPage() {
@@ -90,11 +84,4 @@ public void test_ShadowRoot_findById_fails() {
9084
Assert.assertTrue(shadowRootElement.find(XPath.from("div").attribute("id", "shadow-content")).waitFor().displayed(true));
9185
shadowRootElement.findById("shadow-content").expect().present(true);
9286
}
93-
94-
@Test(expectedExceptions = TimeoutException.class)
95-
public void test_ShadowRoot_getSubElement_nonXPath_fails() {
96-
final GuiElementShadowRootPage page = getPage();
97-
page.shadowRootElement.getSubElement(By.id("shadow-content'"));
98-
}
99-
10087
}

0 commit comments

Comments
 (0)