Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD PolyStringTests suite , FIX typo in Search component class
- Loading branch information
1 parent
81b3b8f
commit 2078a70
Showing
5 changed files
with
88 additions
and
12 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
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
68 changes: 68 additions & 0 deletions
68
tools/schrodinger/src/test/java/schrodinger/scenarios/PolyStringTests.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,68 @@ | ||
package schrodinger.scenarios; | ||
|
||
import com.evolveum.midpoint.schrodinger.page.user.ListUsersPage; | ||
import com.evolveum.midpoint.schrodinger.page.user.UserPage; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.UserType; | ||
import org.testng.Assert; | ||
import org.testng.annotations.Test; | ||
import schrodinger.TestBase; | ||
|
||
/** | ||
* Created by matus on 5/21/2018. | ||
*/ | ||
public class PolyStringTests extends TestBase { | ||
|
||
private static final String TEST_USER_JOZKO_NAME = "džordž"; | ||
private static final String TEST_USER_JOZKO_NAME_NO_DIAC = "dzordz"; | ||
private static final String TEST_USER_JOZKO_GIVEN_NAME = "Jožko"; | ||
private static final String TEST_USER_JOZKO_FAMILY_NAME = "Mrkvička"; | ||
private static final String TEST_USER_JOZKO_FULL_NAME = "Jožko Jörg Nguyễn Trißtan Guðmund Mrkvička"; | ||
private static final String TEST_USER_JOZKO_ADDITIONAL_NAME = "Jörg Nguyễn Trißtan Guðmund "; | ||
|
||
@Test | ||
public void createUserWithDiacritic(){ | ||
UserPage user = basicPage.newUser(); | ||
|
||
Assert.assertTrue(user.selectTabBasic() | ||
.form() | ||
.addAttributeValue("name", TEST_USER_JOZKO_NAME) | ||
.addAttributeValue(UserType.F_GIVEN_NAME, TEST_USER_JOZKO_GIVEN_NAME) | ||
.addAttributeValue(UserType.F_FAMILY_NAME, TEST_USER_JOZKO_FAMILY_NAME) | ||
.addAttributeValue(UserType.F_FULL_NAME,TEST_USER_JOZKO_FULL_NAME) | ||
.addAttributeValue(UserType.F_ADDITIONAL_NAME,TEST_USER_JOZKO_ADDITIONAL_NAME) | ||
.and() | ||
.and() | ||
.checkKeepDisplayingResults() | ||
.clickSave() | ||
.feedback() | ||
.isSuccess() | ||
); | ||
|
||
} | ||
|
||
@Test | ||
public void searchForUserWithDiacritic(){ | ||
|
||
ListUsersPage usersPage = basicPage.listUsers(); | ||
Assert.assertTrue( | ||
usersPage | ||
.table() | ||
.search() | ||
.byName() | ||
.inputValue(TEST_USER_JOZKO_NAME) | ||
.updateSearch() | ||
.and() | ||
.currentTableContains(TEST_USER_JOZKO_NAME) | ||
); | ||
usersPage | ||
.table() | ||
.search() | ||
.byName() | ||
.inputValue(TEST_USER_JOZKO_NAME_NO_DIAC) | ||
.updateSearch() | ||
.and() | ||
.currentTableContains(TEST_USER_JOZKO_NAME_NO_DIAC); | ||
|
||
} | ||
|
||
} |
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