Skip to content

Commit

Permalink
trying of fixing schrodinger tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Apr 7, 2020
1 parent 4548b96 commit 74420b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Expand Up @@ -45,10 +45,11 @@ public void test020selfRegistration() throws IOException, InterruptedException {
FormLoginPage login = midPoint.formLogin();
open("/login");
open("/");
TimeUnit.SECONDS.sleep(2);
Selenide.sleep(MidPoint.TIMEOUT_DEFAULT_2_S);
SelfRegistrationPage registrationPage = login.register();
registrationPage.setGivenName("Test").setFamilyName("User").setEmail("test.user@evolveum.com").setPassword("5ecr3t").submit();
TimeUnit.SECONDS.sleep(6);
Selenide.sleep(MidPoint.TIMEOUT_MEDIUM_6_S);
basicPage.feedback().isSuccess();
String notification = readLastNotification();
String linkTag = "link='";
String link = notification.substring(notification.indexOf(linkTag) + linkTag.length(), notification.lastIndexOf("''"));
Expand Down
Expand Up @@ -34,7 +34,7 @@ public void test001createNewTask() {
String handler = "http://midpoint.evolveum.com/xml/ns/public/model/synchronization/task/recompute/handler-3";
TaskPage task = basicPage.newTask();
task.selectTabBasic().form().addAttributeValue("handlerUri", handler);
Selenide.sleep(2000);
Selenide.sleep(4000);
task.selectTabBasic()
.form()
.addAttributeValue("name", name)
Expand Down
Expand Up @@ -176,6 +176,7 @@ public void test130rejectCaseAction() {
.clickByName(ASSIGNING_ROLE_CASE_NAME + REJECT_WORKITEM_TEST_USER_NAME)
.rejectButtonClick();

Selenide.sleep(MidPoint.TIMEOUT_DEFAULT_2_S);
allRequestsPage = basicPage.listAllRequests();
CasePage casePage = allRequestsPage
.table()
Expand Down

0 comments on commit 74420b8

Please sign in to comment.