Skip to content

Commit

Permalink
synchronization test fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Nov 27, 2019
1 parent 90b3af2 commit a7f4594
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -363,8 +363,10 @@ public void resourceAccountCreatedWhenResourceUnreachableToBeLinked() throws IOE
);

changeResourceAttribute(ScenariosCommons.RESOURCE_CSV_GROUPS_AUTHORITATIVE_NAME , ScenariosCommons.CSV_RESOURCE_ATTR_FILE_PATH, CSV_TARGET_FILE.getAbsolutePath()+"err",false);
Selenide.sleep(MidPoint.TIMEOUT_LONG_1_M);

FileUtils.copyFile(ScenariosCommons.CSV_SOURCE_FILE,CSV_TARGET_FILE);
Selenide.sleep(MidPoint.TIMEOUT_LONG_1_M);

changeResourceAttribute(ScenariosCommons.RESOURCE_CSV_GROUPS_AUTHORITATIVE_NAME , ScenariosCommons.CSV_RESOURCE_ATTR_FILE_PATH, CSV_TARGET_FILE.getAbsolutePath(),true);

Expand All @@ -375,7 +377,7 @@ public void resourceAccountCreatedWhenResourceUnreachableToBeLinked() throws IOE
.clickByName("LiveSyncTest")
.clickResume();

Selenide.sleep(3000);
Selenide.sleep(MidPoint.TIMEOUT_LONG_1_M);

listUsersPage = basicPage.listUsers();
Assert.assertTrue(
Expand Down
Expand Up @@ -59,7 +59,7 @@ public PrismForm<AbstractTable<UserProjectionsTab>> clickByName(String name) {
@Override
public AbstractTable<UserProjectionsTab> selectCheckboxByName(String name) {

$(Schrodinger.byFollowingSiblingEnclosedValue("input", "type", "checkbox", "class", "check-table-label", name))
$(Schrodinger.byAncestorFollowingSiblingDescendantOrSelfElementEnclosedValue("input", "type", "checkbox", "data-s-id", "3", name))
.waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click();

return this;
Expand Down

0 comments on commit a7f4594

Please sign in to comment.