@auxcode/auxta 1.3.78-beta.105 → 1.3.78-beta.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -187,16 +187,26 @@ class AuxGoogleAuth {
|
|
|
187
187
|
yield page.goto(authUrl);
|
|
188
188
|
yield code_helper_1.default.waitForSelector('visible', '#identifierId', config_1.config.timeout, page, count >= 2);
|
|
189
189
|
yield ((_a = (yield page.$('#identifierId'))) === null || _a === void 0 ? void 0 : _a.type(email));
|
|
190
|
+
if (count >= 2) {
|
|
191
|
+
screenshot = yield code_helper_1.default.screenshot(page);
|
|
192
|
+
code_helper_1.default.log('Then', 'screenshot after #identifierId', status_of_step_1.default.PASSED, screenshot);
|
|
193
|
+
}
|
|
190
194
|
yield (yield page.$$('button'))[3].click();
|
|
191
195
|
yield code_helper_1.default.timeout(5000);
|
|
192
196
|
yield code_helper_1.default.waitForSelector('visible', 'input[type="password"]', config_1.config.timeout, page, count >= 2);
|
|
193
197
|
yield ((_b = (yield page.$('input[type="password"]'))) === null || _b === void 0 ? void 0 : _b.type(password));
|
|
198
|
+
if (count >= 2) {
|
|
199
|
+
screenshot = yield code_helper_1.default.screenshot(page);
|
|
200
|
+
code_helper_1.default.log('Then', 'screenshot after #password', status_of_step_1.default.PASSED, screenshot);
|
|
201
|
+
}
|
|
194
202
|
yield (yield page.$$('button'))[1].click();
|
|
195
203
|
yield code_helper_1.default.timeout(5000);
|
|
196
204
|
yield code_helper_1.default.waitForSelector('visible', '#headingText', config_1.config.timeout, page, count >= 2);
|
|
197
205
|
yield code_helper_1.default.timeout(5000);
|
|
198
|
-
|
|
199
|
-
|
|
206
|
+
if (count >= 2) {
|
|
207
|
+
screenshot = yield code_helper_1.default.screenshot(page);
|
|
208
|
+
code_helper_1.default.log('Then', 'screenshot after #headingText', status_of_step_1.default.PASSED, screenshot);
|
|
209
|
+
}
|
|
200
210
|
yield code_helper_1.default.waitForSelector('visible', 'button', config_1.config.timeout, page, count >= 2);
|
|
201
211
|
yield (yield page.$$('button'))[2].click();
|
|
202
212
|
yield code_helper_1.default.timeout(5000);
|
|
@@ -205,15 +215,19 @@ class AuxGoogleAuth {
|
|
|
205
215
|
yield code_helper_1.default.waitForSelector('visible', 'input[type="checkbox"]', config_1.config.timeout, page, count >= 2);
|
|
206
216
|
yield code_helper_1.default.timeout(5000);
|
|
207
217
|
yield checkbox[0].click();
|
|
208
|
-
|
|
209
|
-
|
|
218
|
+
if (count >= 2) {
|
|
219
|
+
screenshot = yield code_helper_1.default.screenshot(page);
|
|
220
|
+
code_helper_1.default.log('Then', 'screenshot after input[type="checkbox"]', status_of_step_1.default.PASSED, screenshot);
|
|
221
|
+
}
|
|
210
222
|
yield (yield page.$$('button'))[2].click();
|
|
211
223
|
}
|
|
212
224
|
else {
|
|
213
225
|
yield code_helper_1.default.waitForSelector('visible', `div[data-email="${email.toLocaleLowerCase()}"]`, config_1.config.timeout, page, count >= 2);
|
|
214
226
|
yield code_helper_1.default.timeout(5000);
|
|
215
|
-
|
|
216
|
-
|
|
227
|
+
if (count >= 2) {
|
|
228
|
+
screenshot = yield code_helper_1.default.screenshot(page);
|
|
229
|
+
code_helper_1.default.log('Then', 'screenshot after div email', status_of_step_1.default.PASSED, screenshot);
|
|
230
|
+
}
|
|
217
231
|
yield code_helper_1.default.waitForSelector('visible', 'button', config_1.config.timeout, page, count >= 2);
|
|
218
232
|
yield (yield page.$$('button'))[2].click();
|
|
219
233
|
}
|