openvidu-test-e2e: fix restApiTest with alert text

pull/707/head
pabloFuente 2022-03-17 22:18:06 +01:00
parent 5c5d609fc8
commit b28bbc7c41
1 changed files with 1 additions and 1 deletions

View File

@ -3345,7 +3345,7 @@ public class OpenViduTestAppE2eTest extends AbstractOpenViduTestappE2eTest {
user.getWaiter().until(ExpectedConditions.alertIsPresent()); user.getWaiter().until(ExpectedConditions.alertIsPresent());
Alert alert = user.getDriver().switchTo().alert(); Alert alert = user.getDriver().switchTo().alert();
Assert.assertTrue("Alert does not contain expected text", Assert.assertTrue("Alert does not contain expected text",
alert.getText().contains("Token " + tokenA + "is not valid")); alert.getText().contains("Token " + tokenA + " is not valid"));
alert.accept(); alert.accept();
} catch (Exception e) { } catch (Exception e) {
Assert.fail("Alert exception"); Assert.fail("Alert exception");