-
Notifications
You must be signed in to change notification settings - Fork 188
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 bulk actions page
- Loading branch information
1 parent
977b670
commit 1da104b
Showing
3 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
...gertest/src/test/java/com/evolveum/midpoint/testing/schrodinger/page/BulkActionsTest.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,37 @@ | ||
/** | ||
* Copyright (c) 2010-2019 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.codeborne.selenide.Condition; | ||
import com.evolveum.midpoint.schrodinger.page.configuration.BulkActionsPage; | ||
import com.evolveum.midpoint.testing.schrodinger.TestBase; | ||
import org.openqa.selenium.By; | ||
import org.testng.Assert; | ||
import org.testng.annotations.Test; | ||
|
||
import static com.codeborne.selenide.Selenide.$; | ||
|
||
/** | ||
* Created by Kate Honchar | ||
*/ | ||
public class BulkActionsTest extends TestBase { | ||
|
||
private static final String PARSING_ERROR_MESSAGE = "Couldn't parse bulk action object"; | ||
|
||
@Test | ||
public void wrongBulkActionXmlExecution(){ | ||
BulkActionsPage bulkActionsPage = basicPage.bulkActions(); | ||
bulkActionsPage | ||
.insertOneLineTextIntoEditor("<objects></objects>") | ||
.startButtonClick(); | ||
|
||
$(By.linkText(PARSING_ERROR_MESSAGE)) | ||
.shouldBe(Condition.visible); | ||
|
||
Assert.assertTrue(bulkActionsPage.isAceEditorVisible()); | ||
} | ||
} |
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