Skip to content

Commit 4cb3936

Browse files
author
Álvaro Santos Laserna López
committed
remove test
1 parent b668c2b commit 4cb3936

1 file changed

Lines changed: 0 additions & 36 deletions

File tree

src/test/java/TestRunners/TestBrowser.java

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55
import org.junit.Test;
66
import org.openqa.selenium.chrome.ChromeDriver;
77
import org.openqa.selenium.chrome.ChromeOptions;
8-
import org.openqa.selenium.remote.DesiredCapabilities;
98
import pages.GoogleLandingPage;
109
import testUI.Configuration;
1110
import testUI.Utils.GridTestUI;
1211

13-
import java.util.HashMap;
14-
import java.util.Map;
15-
1612
import static testUI.TestUIDriver.getSelenideDriver;
1713
import static testUI.TestUIDriver.setDriver;
1814
import static testUI.TestUIServer.stop;
@@ -22,7 +18,6 @@
2218
import static testUI.Utils.By.*;
2319
import static testUI.Utils.Performance.getListOfCommandsTime;
2420
import static testUI.Utils.Performance.logAverageTime;
25-
import static testUI.elements.TestUI.E;
2621

2722
public class TestBrowser {
2823
private GoogleLandingPage googleLandingPage = new GoogleLandingPage();
@@ -167,35 +162,4 @@ public void testAndroidBrowserOneLine() {
167162
.then("I find the submit").setElement(byCssSelector("[type=\"submit\"]"))
168163
.and("I click on it").click();
169164
}
170-
171-
@Test
172-
public void testUIWithLoadero() {
173-
174-
String linkId = "AbbzyH2Gl_dPBPk0";
175-
int participant = 1;
176-
sleep(participant * 15 * 1000);
177-
ChromeOptions options = new ChromeOptions();
178-
Map<String, Object> prefs = new HashMap<String, Object>();
179-
prefs.put("profile.default_content_setting_values.notifications", 1);
180-
options.setExperimentalOption("prefs", prefs);
181-
options.addArguments("no-sandbox");
182-
options.addArguments("use-fake-ui-for-media-stream");
183-
options.addArguments("use-fake-device-for-media-stream");
184-
ChromeDriver driver = new ChromeDriver(options);
185-
setDriver(driver);
186-
Configuration.testUILogLevel = LogLevel.DEBUG;
187-
open("https://m.me/v/" + linkId);
188-
E(byId("username")).sendKeys("Test");
189-
E(byCssSelector("._6z07")).waitFor(10).untilIsVisible().click();
190-
for (int i = 0; i < 10; i++) {
191-
try {
192-
E(byCssSelector("[aria-label=\"Mute microphone\"]")).waitFor(10).untilIsVisible().click();
193-
E(byCssSelector("[aria-label=\"Unmute microphone\"]")).waitFor(4).untilIsVisible();
194-
break;
195-
} catch(Error e) {
196-
System.out.println(e.getMessage());
197-
}
198-
}
199-
sleep(600000);
200-
}
201165
}

0 commit comments

Comments
 (0)