@auxcode/auxta 1.3.78-beta.104 → 1.3.78-beta.106

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.
@@ -179,6 +179,7 @@ class AuxGoogleAuth {
179
179
  const email = EMAIL ? EMAIL : process.env.google_account;
180
180
  const password = PASSWORD ? PASSWORD : process.env.google_password;
181
181
  yield puppeteer_extra_1.default.startBrowser();
182
+ let screenshot;
182
183
  count++;
183
184
  if (email && password) {
184
185
  const context = yield puppeteer_extra_1.default.defaultPage.browser().createIncognitoBrowserContext();
@@ -186,14 +187,20 @@ class AuxGoogleAuth {
186
187
  yield page.goto(authUrl);
187
188
  yield code_helper_1.default.waitForSelector('visible', '#identifierId', config_1.config.timeout, page, count >= 2);
188
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);
189
192
  yield (yield page.$$('button'))[3].click();
190
193
  yield code_helper_1.default.timeout(5000);
191
194
  yield code_helper_1.default.waitForSelector('visible', 'input[type="password"]', config_1.config.timeout, page, count >= 2);
192
195
  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);
193
198
  yield (yield page.$$('button'))[1].click();
194
199
  yield code_helper_1.default.timeout(5000);
195
200
  yield code_helper_1.default.waitForSelector('visible', '#headingText', config_1.config.timeout, page, count >= 2);
196
201
  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);
197
204
  yield code_helper_1.default.waitForSelector('visible', 'button', config_1.config.timeout, page, count >= 2);
198
205
  yield (yield page.$$('button'))[2].click();
199
206
  yield code_helper_1.default.timeout(5000);
@@ -202,11 +209,15 @@ class AuxGoogleAuth {
202
209
  yield code_helper_1.default.waitForSelector('visible', 'input[type="checkbox"]', config_1.config.timeout, page, count >= 2);
203
210
  yield code_helper_1.default.timeout(5000);
204
211
  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);
205
214
  yield (yield page.$$('button'))[2].click();
206
215
  }
207
216
  else {
208
217
  yield code_helper_1.default.waitForSelector('visible', `div[data-email="${email.toLocaleLowerCase()}"]`, config_1.config.timeout, page, count >= 2);
209
218
  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);
210
221
  yield code_helper_1.default.waitForSelector('visible', 'button', config_1.config.timeout, page, count >= 2);
211
222
  yield (yield page.$$('button'))[2].click();
212
223
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auxcode/auxta",
3
- "version": "1.3.78-beta.104",
3
+ "version": "1.3.78-beta.106",
4
4
  "description": "",
5
5
  "main": "./build/AuxTA.js",
6
6
  "types": "./build/AuxTA.d.ts",