-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenW9FormTest.java
More file actions
28 lines (23 loc) · 855 Bytes
/
Copy pathOpenW9FormTest.java
File metadata and controls
28 lines (23 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import step.Top100FormStep;
import static java.util.concurrent.TimeUnit.SECONDS;
import static org.awaitility.Awaitility.await;
import static org.hamcrest.Matchers.equalTo;
class OpenW9FormTest extends BaseTest {
private static final String TOP100_URL = "https://dev3.pdffiller.com/en/top.htm";
Top100FormStep top100FormStep;
@BeforeEach
void setUp() {
onSite().open(TOP100_URL);
top100FormStep = new Top100FormStep(driver, atlas);
}
@Test
void shouldSeeHelpModalWhenOpeningW9Form() {
top100FormStep.openW9FormFromTop100();
await("Wait help modal")
.atMost(20, SECONDS)
.ignoreExceptions()
.until(top100FormStep.helpModal()::getText, equalTo("Need Help?"));
}
}