@@ -5,29 +5,31 @@ const assert = require("chai").assert;
5
5
6
6
iosOptions . capabilities . app = app ;
7
7
8
- describe ( "Basic IOS interactions" , function ( ) {
8
+ describe ( "Basic IOS interactions" , function ( ) {
9
9
let client ;
10
10
11
- beforeEach ( async function ( ) {
11
+ beforeEach ( async function ( ) {
12
12
client = await webdriverio . remote ( iosOptions ) ;
13
13
} ) ;
14
14
15
- afterEach ( async function ( ) {
16
- await client . deleteSession ( ) ;
15
+ afterEach ( async function ( ) {
16
+ await client . deleteSession ( ) ;
17
17
} ) ;
18
18
19
- it ( "should send keys to inputs" , async function ( ) {
20
- const elementId = await client . findElement ( "accessibility id" , "TextField1" ) ;
19
+ it ( "should send keys to inputs" , async function ( ) {
20
+ const elementId = await client . findElement ( "accessibility id" , "TextField1" ) ;
21
21
client . elementSendKeys ( elementId . ELEMENT , "Hello World!" ) ;
22
- const elementValue = await client . findElement ( "accessibility id" , "TextField1" ) ;
23
- await client . getElementAttribute ( elementValue . ELEMENT , "value" ) . then ( ( attr ) => {
24
- assert . equal ( attr , "Hello World!" ) ;
22
+
23
+ const elementValue = await client . findElement ( "accessibility id" , "TextField1" ) ;
24
+ await client . getElementAttribute ( elementValue . ELEMENT , "value" ) . then ( ( attr ) => {
25
+ assert . equal ( attr , "Hello World!" ) ;
25
26
} ) ;
26
27
} ) ;
27
28
28
- it ( "should click a button that opens an alert" , async function ( ) {
29
- const element = await client . findElement ( "accessibility id" , "show alert" ) ;
29
+ it ( "should click a button that opens an alert" , async function ( ) {
30
+ const element = await client . findElement ( "accessibility id" , "show alert" ) ;
30
31
await client . elementClick ( element . ELEMENT ) ;
31
- assert . equal ( await client . getAlertText ( ) , "Cool title\nthis alert is so cool." ) ;
32
+
33
+ assert . equal ( await client . getAlertText ( ) , "Cool title\nthis alert is so cool." ) ;
32
34
} ) ;
33
35
} ) ;
0 commit comments