@auxcode/auxta 1.3.78-beta.106 → 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,20 +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
- screenshot = yield code_helper_1.default.screenshot(page);
191
- code_helper_1.default.log('Then', 'screenshot after #identifierId', status_of_step_1.default.PASSED, screenshot);
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
+ }
192
194
  yield (yield page.$$('button'))[3].click();
193
195
  yield code_helper_1.default.timeout(5000);
194
196
  yield code_helper_1.default.waitForSelector('visible', 'input[type="password"]', config_1.config.timeout, page, count >= 2);
195
197
  yield ((_b = (yield page.$('input[type="password"]'))) === null || _b === void 0 ? void 0 : _b.type(password));
196
- screenshot = yield code_helper_1.default.screenshot(page);
197
- code_helper_1.default.log('Then', 'screenshot after #password', status_of_step_1.default.PASSED, screenshot);
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
+ }
198
202
  yield (yield page.$$('button'))[1].click();
199
203
  yield code_helper_1.default.timeout(5000);
200
204
  yield code_helper_1.default.waitForSelector('visible', '#headingText', config_1.config.timeout, page, count >= 2);
201
205
  yield code_helper_1.default.timeout(5000);
202
- screenshot = yield code_helper_1.default.screenshot(page);
203
- code_helper_1.default.log('Then', 'screenshot after #headingText', status_of_step_1.default.PASSED, screenshot);
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
+ }
204
210
  yield code_helper_1.default.waitForSelector('visible', 'button', config_1.config.timeout, page, count >= 2);
205
211
  yield (yield page.$$('button'))[2].click();
206
212
  yield code_helper_1.default.timeout(5000);
@@ -209,15 +215,19 @@ class AuxGoogleAuth {
209
215
  yield code_helper_1.default.waitForSelector('visible', 'input[type="checkbox"]', config_1.config.timeout, page, count >= 2);
210
216
  yield code_helper_1.default.timeout(5000);
211
217
  yield checkbox[0].click();
212
- screenshot = yield code_helper_1.default.screenshot(page);
213
- code_helper_1.default.log('Then', 'screenshot after input[type="checkbox"]', status_of_step_1.default.PASSED, screenshot);
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
+ }
214
222
  yield (yield page.$$('button'))[2].click();
215
223
  }
216
224
  else {
217
225
  yield code_helper_1.default.waitForSelector('visible', `div[data-email="${email.toLocaleLowerCase()}"]`, config_1.config.timeout, page, count >= 2);
218
226
  yield code_helper_1.default.timeout(5000);
219
- screenshot = yield code_helper_1.default.screenshot(page);
220
- code_helper_1.default.log('Then', 'screenshot after div email', status_of_step_1.default.PASSED, screenshot);
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
+ }
221
231
  yield code_helper_1.default.waitForSelector('visible', 'button', config_1.config.timeout, page, count >= 2);
222
232
  yield (yield page.$$('button'))[2].click();
223
233
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auxcode/auxta",
3
- "version": "1.3.78-beta.106",
3
+ "version": "1.3.78-beta.107",
4
4
  "description": "",
5
5
  "main": "./build/AuxTA.js",
6
6
  "types": "./build/AuxTA.d.ts",