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

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();
@@ -194,6 +195,8 @@ class AuxGoogleAuth {
194
195
  yield code_helper_1.default.timeout(5000);
195
196
  yield code_helper_1.default.waitForSelector('visible', '#headingText', config_1.config.timeout, page, count >= 2);
196
197
  yield code_helper_1.default.timeout(5000);
198
+ screenshot = yield code_helper_1.default.screenshot(page);
199
+ code_helper_1.default.log('Then', 'screenshot after #headingText', status_of_step_1.default.PASSED, screenshot);
197
200
  yield code_helper_1.default.waitForSelector('visible', 'button', config_1.config.timeout, page, count >= 2);
198
201
  yield (yield page.$$('button'))[2].click();
199
202
  yield code_helper_1.default.timeout(5000);
@@ -202,11 +205,15 @@ class AuxGoogleAuth {
202
205
  yield code_helper_1.default.waitForSelector('visible', 'input[type="checkbox"]', config_1.config.timeout, page, count >= 2);
203
206
  yield code_helper_1.default.timeout(5000);
204
207
  yield checkbox[0].click();
208
+ screenshot = yield code_helper_1.default.screenshot(page);
209
+ code_helper_1.default.log('Then', 'screenshot after input[type="checkbox"]', status_of_step_1.default.PASSED, screenshot);
205
210
  yield (yield page.$$('button'))[2].click();
206
211
  }
207
212
  else {
208
213
  yield code_helper_1.default.waitForSelector('visible', `div[data-email="${email.toLocaleLowerCase()}"]`, config_1.config.timeout, page, count >= 2);
209
214
  yield code_helper_1.default.timeout(5000);
215
+ screenshot = yield code_helper_1.default.screenshot(page);
216
+ code_helper_1.default.log('Then', 'screenshot after div email', status_of_step_1.default.PASSED, screenshot);
210
217
  yield code_helper_1.default.waitForSelector('visible', 'button', config_1.config.timeout, page, count >= 2);
211
218
  yield (yield page.$$('button'))[2].click();
212
219
  }
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.105",
4
4
  "description": "",
5
5
  "main": "./build/AuxTA.js",
6
6
  "types": "./build/AuxTA.d.ts",