Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove video-recorder in TestNG tests
- Loading branch information
Showing
5 changed files
with
52 additions
and
10 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
11 changes: 8 additions & 3 deletions
11
modules/testng/src/test/java/integration/TestNgSampleTest.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
modules/testng/src/test/java/integration/TestNgSoftTest.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 integration; | ||
|
||
import com.codeborne.selenide.Configuration; | ||
import org.testng.annotations.BeforeMethod; | ||
import org.testng.annotations.BeforeSuite; | ||
import org.testng.annotations.Test; | ||
|
||
import static com.codeborne.selenide.AssertionMode.SOFT; | ||
import static com.codeborne.selenide.Condition.text; | ||
import static com.codeborne.selenide.Condition.value; | ||
import static com.codeborne.selenide.Selenide.$; | ||
import static com.codeborne.selenide.Selenide.open; | ||
|
||
public class TestNgSoftTest extends BaseTest { | ||
@Override | ||
@BeforeSuite | ||
final void setupAsserts() { | ||
Configuration.assertionMode = SOFT; | ||
} | ||
|
||
@BeforeMethod | ||
public void setUp() { | ||
open("/page_with_selects_without_jquery.html?browser=" + Configuration.browser); | ||
} | ||
|
||
@Test | ||
public void header() { | ||
$("h1").shouldHave(text("Page with selects")); | ||
} | ||
|
||
@Test | ||
public void textArea() { | ||
$("#empty-text-area").val("text for textarea"); | ||
$("#empty-text-area").shouldHave(value("text for textarea")); | ||
} | ||
} |