forked from BugorDmitriy/OpenWeatherJavaProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAboutUsTest.java
More file actions
30 lines (24 loc) · 815 Bytes
/
Copy pathAboutUsTest.java
File metadata and controls
30 lines (24 loc) · 815 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
29
30
package tests;
import base.BaseTest;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.util.Arrays;
import java.util.List;
public class AboutUsTest extends BaseTest {
@Test
public void testActiveOptionsForWhereToField() {
final List<String> expectedOptions = Arrays.asList(
"Buy by Subscription",
"Buy in the Marketplace",
"Products documentation",
"News and Updates"
);
List<String> actualOptions = openBaseURL()
.scrollToFooterMenu()
.clickAboutUsFooterMenu()
.scrollToWhereTo()
.waitAllOptionsAreVisibleAndClickable()
.getOptionsText();
Assert.assertEquals(actualOptions, expectedOptions);
}
}