@auxcode/auxta 1.3.73-beta.6 → 1.3.74
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.
|
@@ -201,7 +201,11 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
|
|
|
201
201
|
const loginPage = pages[pages.length - 1];
|
|
202
202
|
yield this.extend_page_functions(loginPage);
|
|
203
203
|
yield loginPage.waitForNetworkIdle();
|
|
204
|
-
|
|
204
|
+
try {
|
|
205
|
+
yield loginPage.waitForSelector(next_button, { visible: true, timeout: 60000 });
|
|
206
|
+
}
|
|
207
|
+
catch (e) { }
|
|
208
|
+
this.log('Then', `I checked for the '${next_button}' element to be visible`, AuxTA_1.StepStatus.PASSED);
|
|
205
209
|
yield loginPage.type(email_input, email, { delay: 0 });
|
|
206
210
|
yield loginPage.keyboard.press('Enter');
|
|
207
211
|
yield loginPage.waitForNetworkIdle();
|
|
@@ -214,8 +218,16 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
|
|
|
214
218
|
else {
|
|
215
219
|
yield page.waitForNetworkIdle();
|
|
216
220
|
}
|
|
217
|
-
|
|
218
|
-
|
|
221
|
+
try {
|
|
222
|
+
yield loginPage.waitForSelector(sign_in_button, { visible: true, timeout: 60000 });
|
|
223
|
+
}
|
|
224
|
+
catch (e) { }
|
|
225
|
+
this.log('Then', `I checked for the '${sign_in_button}' element to be visible`, AuxTA_1.StepStatus.PASSED);
|
|
226
|
+
try {
|
|
227
|
+
yield loginPage.waitForSelector(password_input, { visible: true, timeout: 60000 });
|
|
228
|
+
}
|
|
229
|
+
catch (e) { }
|
|
230
|
+
this.log('Then', `I checked for the '${password_input}' element to be visible`, AuxTA_1.StepStatus.PASSED);
|
|
219
231
|
try {
|
|
220
232
|
(_a = (yield loginPage.$(password_input))) === null || _a === void 0 ? void 0 : _a.type(password);
|
|
221
233
|
yield this.log('Then', `I type password into the ${password_input}`, AuxTA_1.StepStatus.PASSED);
|
|
@@ -226,7 +238,11 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
|
|
|
226
238
|
}
|
|
227
239
|
yield this.timeout(3000);
|
|
228
240
|
yield loginPage.keyboard.press('Enter');
|
|
229
|
-
|
|
241
|
+
try {
|
|
242
|
+
yield loginPage.waitForSelector(no_button, { visible: true, timeout: 60000 });
|
|
243
|
+
}
|
|
244
|
+
catch (e) { }
|
|
245
|
+
this.log('Then', `I checked for the '${no_button}' element to be visible`, AuxTA_1.StepStatus.PASSED);
|
|
230
246
|
yield loginPage.keyboard.press('Enter');
|
|
231
247
|
});
|
|
232
248
|
}
|