File tree 2 files changed +10
-1
lines changed
src/test/java/templates/helloworldng
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ private UIElement title() {
14
14
return this .find .byText ("Details" );
15
15
}
16
16
17
+ public UIElement player (String player ) {
18
+ return this .find .byText (player );
19
+ }
20
+
17
21
public void loaded () {
18
22
Assert .assertNotNull (this .title ());
19
23
this .log .info ("HelloWorldNG item detail page loaded." );
Original file line number Diff line number Diff line change 2
2
3
3
import functional .tests .core .mobile .basetest .MobileTest ;
4
4
import io .appium .java_client .SwipeElementDirection ;
5
+ import org .springframework .util .Assert ;
5
6
import org .testng .annotations .BeforeClass ;
6
7
import org .testng .annotations .Test ;
7
8
import templates .helloworldng .Screens .HomePage ;
@@ -14,6 +15,8 @@ public class SmokeTests extends MobileTest {
14
15
private String itemFirst = "Ter Stegen" ;
15
16
private String itemLast = "Masip" ;
16
17
private String itemToTap = "Umtiti" ;
18
+ private String number = "23. " ;
19
+ private String position = "Defender" ;
17
20
18
21
@ BeforeClass (alwaysRun = true )
19
22
public void beforeSmokeTestsClass () {
@@ -38,7 +41,9 @@ public void test_03_itemDetail() throws Exception {
38
41
this .homePage .loaded ();
39
42
this .homePage .tapOnItem (itemToTap );
40
43
this .itemDetailPage .loaded ();
41
- // this.assertScreen();
44
+ Assert .notNull (this .itemDetailPage .player (itemToTap ));
45
+ Assert .notNull (this .itemDetailPage .player (number ));
46
+ Assert .notNull (this .itemDetailPage .player (position ));
42
47
}
43
48
44
49
@ Test (groups = {"android" , "ios" })
You can’t perform that action at this time.
0 commit comments