Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MODIFY a couple of component classes, ADD classes to support simulati…
…on of assigning projections, some refactoring
- Loading branch information
1 parent
dddad1b
commit a0a163b
Showing
33 changed files
with
328 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...dinger/src/main/java/com/evolveum/midpoint/schrodinger/component/FocusProjectionsTab.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...er/src/main/java/com/evolveum/midpoint/schrodinger/component/FocusSetProjectionModal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.evolveum.midpoint.schrodinger.component; | ||
|
||
import com.codeborne.selenide.Condition; | ||
import com.codeborne.selenide.SelenideElement; | ||
import com.evolveum.midpoint.schrodinger.MidPoint; | ||
import com.evolveum.midpoint.schrodinger.component.common.ModalBox; | ||
import com.evolveum.midpoint.schrodinger.component.common.table.Table; | ||
import com.evolveum.midpoint.schrodinger.component.user.UserProjectionsTab; | ||
import com.evolveum.midpoint.schrodinger.util.Schrodinger; | ||
import org.openqa.selenium.By; | ||
|
||
import static com.codeborne.selenide.Selenide.$; | ||
|
||
/** | ||
* Created by matus on 5/2/2018. | ||
*/ | ||
public class FocusSetProjectionModal<T> extends ModalBox<T> { | ||
public FocusSetProjectionModal(T parent, SelenideElement parentElement) { | ||
super(parent, parentElement); | ||
} | ||
|
||
public Table<FocusSetProjectionModal<T>> projectionsTable() { | ||
SelenideElement resourcesBox = $(By.cssSelector("box boxed-table")); | ||
|
||
return new Table<>(this, resourcesBox); | ||
} | ||
|
||
public T clickAdd() { | ||
|
||
$(Schrodinger.byDataResourceKey("userBrowserDialog.button.addButton")) | ||
.waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT).click(); | ||
|
||
return this.getParent(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...n/java/com/evolveum/midpoint/schrodinger/component/Resource/ResourceConnectorPoolTab.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...java/com/evolveum/midpoint/schrodinger/component/Resource/ResourceResultsHandlersTab.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...c/main/java/com/evolveum/midpoint/schrodinger/component/Resource/ResourceTimeoutsTab.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
...er/src/main/java/com/evolveum/midpoint/schrodinger/component/Resource/ResourcesTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...odinger/src/main/java/com/evolveum/midpoint/schrodinger/component/common/CogDropDown.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.evolveum.midpoint.schrodinger.component.common; | ||
|
||
import com.codeborne.selenide.SelenideElement; | ||
import com.evolveum.midpoint.schrodinger.component.Component; | ||
|
||
/** | ||
* Created by matus on 5/2/2018. | ||
*/ | ||
public class CogDropDown<T> extends Component<T> { | ||
public CogDropDown(T parent, SelenideElement parentElement) { | ||
super(parent, parentElement); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
.../com/evolveum/midpoint/schrodinger/component/common/table/TableWithClickableElements.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.evolveum.midpoint.schrodinger.component.common.table; | ||
|
||
import com.codeborne.selenide.Condition; | ||
import com.evolveum.midpoint.schrodinger.MidPoint; | ||
import com.evolveum.midpoint.schrodinger.page.BasicPage; | ||
import org.openqa.selenium.By; | ||
|
||
/** | ||
* Created by matus on 5/2/2018. | ||
*/ | ||
public interface TableWithClickableElements { | ||
|
||
|
||
public <E extends BasicPage> E clickByName(String name); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.