Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
schrodinger test for MID-5346 (query play ground)
- Loading branch information
1 parent
7e8a464
commit e4dd2a0
Showing
4 changed files
with
132 additions
and
2 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
...src/test/java/com/evolveum/midpoint/testing/schrodinger/page/QueryPlaygroundPageTest.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 @@ | ||
/* | ||
* Copyright (c) 2010-2018 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.testing.schrodinger.page; | ||
|
||
import com.evolveum.midpoint.schrodinger.page.configuration.QueryPlaygroundPage; | ||
import com.evolveum.midpoint.schrodinger.page.user.ListUsersPage; | ||
import com.evolveum.midpoint.schrodinger.page.user.UserPage; | ||
import com.evolveum.midpoint.testing.schrodinger.TestBase; | ||
import org.testng.Assert; | ||
import org.testng.annotations.Test; | ||
|
||
/** | ||
* Created by Kate Honchar. | ||
*/ | ||
public class QueryPlaygroundPageTest extends TestBase{ | ||
|
||
@Test //covers MID-5346 | ||
public void test001useInObjectListOptionTest() { | ||
UserPage user = basicPage.newUser(); | ||
|
||
Assert.assertTrue( | ||
user.selectTabBasic() | ||
.form() | ||
.addAttributeValue("name", "a_start") | ||
.and() | ||
.and() | ||
.clickSave() | ||
.feedback() | ||
.isSuccess() | ||
); | ||
|
||
user = basicPage.newUser(); | ||
Assert.assertTrue( | ||
user.selectTabBasic() | ||
.form() | ||
.addAttributeValue("name", "b_start") | ||
.and() | ||
.and() | ||
.clickSave() | ||
.feedback() | ||
.isSuccess() | ||
); | ||
|
||
QueryPlaygroundPage queryPlaygroundPage = basicPage.queryPlayground(); | ||
queryPlaygroundPage | ||
.setQuerySampleValue(QueryPlaygroundPage.QueryPlaygroundSample.FIRST_10_USERS_WITH_FIRST_A) | ||
.useInObjectListButtonClick(); | ||
|
||
ListUsersPage usersPage = basicPage.listUsers(); | ||
Assert.assertTrue( | ||
usersPage | ||
.table() | ||
.containsLinkTextPartially("a_start") | ||
); | ||
|
||
Assert.assertFalse( | ||
usersPage | ||
.table() | ||
.containsLinkTextPartially("b_start") | ||
); | ||
|
||
|
||
} | ||
} |
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