@auxcode/auxta 1.3.78-beta.103 → 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.
package/build/AuxTA.js
CHANGED
|
@@ -120,7 +120,7 @@ class AuxTA extends code_helper_1.FunctionHelper {
|
|
|
120
120
|
this.uploadModel.baseUrl = overrideConfig.baseURL;
|
|
121
121
|
if (overrideConfig.bucket)
|
|
122
122
|
this.uploadModel.bucket = overrideConfig.bucket;
|
|
123
|
-
if (overrideConfig.isOfficial)
|
|
123
|
+
if (overrideConfig.isOfficial !== undefined)
|
|
124
124
|
this.uploadModel.isOfficial = overrideConfig.isOfficial;
|
|
125
125
|
this.config = (0, config_1.setupOverrideConfig)(overrideConfig);
|
|
126
126
|
}
|
|
@@ -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
|
}
|