@@ -43,15 +43,15 @@ const WAIT_TIME_BEFORE_RETRIEVING_BACKGROUND_MESSAGES_MILLISECONDS = 60000;
43
43
44
44
const wait = ms => new Promise ( res => setTimeout ( res , ms ) ) ;
45
45
46
- describe ( 'Starting Integration Test > Sending and Receiving ' , function ( ) {
46
+ describe ( 'Starting Integration Test > Sending and Receiving ' , function ( ) {
47
47
this . retries ( 3 ) ;
48
48
let globalWebDriver ;
49
49
50
- before ( async function ( ) {
50
+ before ( async function ( ) {
51
51
await testServer . start ( ) ;
52
52
} ) ;
53
53
54
- after ( async function ( ) {
54
+ after ( async function ( ) {
55
55
await testServer . stop ( ) ;
56
56
} ) ;
57
57
@@ -61,14 +61,14 @@ describe('Starting Integration Test > Sending and Receiving ', function() {
61
61
return ;
62
62
}
63
63
64
- describe ( `Testing browser: ${ assistantBrowser . getPrettyName ( ) } : ${ TEST_DOMAIN } ` , function ( ) {
65
- before ( async function ( ) {
64
+ describe ( `Testing browser: ${ assistantBrowser . getPrettyName ( ) } : ${ TEST_DOMAIN } ` , function ( ) {
65
+ before ( async function ( ) {
66
66
globalWebDriver = createPermittedWebDriver (
67
67
/* browser= */ assistantBrowser . getId ( )
68
68
) ;
69
69
} ) ;
70
70
71
- it ( 'Background app can receive a {} empty message from sw' , async function ( ) {
71
+ it ( 'Background app can receive a {} empty message from sw' , async function ( ) {
72
72
this . timeout ( TIMEOUT_BACKGROUND_MESSAGE_TEST_UNIT_MILLISECONDS ) ;
73
73
74
74
// Clearing the cache and db data by killing the previously instantiated driver. Note that ideally this call is placed inside the after/before hooks. However, Mocha forbids operations longer than 2s in hooks. Hence, this clearing call needs to be inside the test unit.
@@ -97,7 +97,7 @@ describe('Starting Integration Test > Sending and Receiving ', function() {
97
97
) ;
98
98
} ) ;
99
99
100
- it ( 'Background app can receive a {"data"} message frow sw' , async function ( ) {
100
+ it ( 'Background app can receive a {"data"} message frow sw' , async function ( ) {
101
101
this . timeout ( TIMEOUT_BACKGROUND_MESSAGE_TEST_UNIT_MILLISECONDS ) ;
102
102
103
103
await seleniumAssistant . killWebDriver ( globalWebDriver ) ;
@@ -126,7 +126,7 @@ describe('Starting Integration Test > Sending and Receiving ', function() {
126
126
) ;
127
127
} ) ;
128
128
129
- it ( 'Foreground app can receive a {} empty message in onMessage' , async function ( ) {
129
+ it ( 'Foreground app can receive a {} empty message in onMessage' , async function ( ) {
130
130
this . timeout ( TIMEOUT_FOREGROUND_MESSAGE_TEST_UNIT_MILLISECONDS ) ;
131
131
132
132
await seleniumAssistant . killWebDriver ( globalWebDriver ) ;
@@ -153,7 +153,7 @@ describe('Starting Integration Test > Sending and Receiving ', function() {
153
153
) ;
154
154
} ) ;
155
155
156
- it ( 'Foreground app can receive a {"notification"} message in onMessage' , async function ( ) {
156
+ it ( 'Foreground app can receive a {"notification"} message in onMessage' , async function ( ) {
157
157
this . timeout ( TIMEOUT_FOREGROUND_MESSAGE_TEST_UNIT_MILLISECONDS ) ;
158
158
159
159
await seleniumAssistant . killWebDriver ( globalWebDriver ) ;
@@ -180,7 +180,7 @@ describe('Starting Integration Test > Sending and Receiving ', function() {
180
180
) ;
181
181
} ) ;
182
182
183
- it ( 'Foreground app can receive a {"data"} message in onMessage' , async function ( ) {
183
+ it ( 'Foreground app can receive a {"data"} message in onMessage' , async function ( ) {
184
184
this . timeout ( TIMEOUT_FOREGROUND_MESSAGE_TEST_UNIT_MILLISECONDS ) ;
185
185
186
186
await seleniumAssistant . killWebDriver ( globalWebDriver ) ;
@@ -207,7 +207,7 @@ describe('Starting Integration Test > Sending and Receiving ', function() {
207
207
) ;
208
208
} ) ;
209
209
210
- it ( 'Foreground app can receive a {"notification", "data"} message in onMessage' , async function ( ) {
210
+ it ( 'Foreground app can receive a {"notification", "data"} message in onMessage' , async function ( ) {
211
211
this . timeout ( TIMEOUT_FOREGROUND_MESSAGE_TEST_UNIT_MILLISECONDS ) ;
212
212
213
213
await seleniumAssistant . killWebDriver ( globalWebDriver ) ;
0 commit comments