ag-awsauth 0.0.275 → 0.0.276

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.
@@ -168,7 +168,23 @@ function getMFA(p) {
168
168
  }
169
169
  }
170
170
  try {
171
- (0, log_1.info)('wait for access prompt');
171
+ (0, log_1.info)('accept-user-code');
172
+ const messageDiv = yield page.waitForSelector('[data-analytics="accept-user-code"]', {
173
+ timeout: config_1.timeoutShortMs,
174
+ });
175
+ if (messageDiv) {
176
+ (0, log_1.info)('click access prompt');
177
+ yield messageDiv.click();
178
+ }
179
+ else {
180
+ throw new Error('access prompt not found');
181
+ }
182
+ }
183
+ catch (e) {
184
+ //
185
+ }
186
+ try {
187
+ (0, log_1.info)('allow-access-button');
172
188
  const messageDiv = yield page.waitForSelector('[data-testid="allow-access-button"]', {
173
189
  timeout: config_1.timeoutShortMs,
174
190
  });
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "andrei gec (andreigec@hotmail.com)",
6
6
  "license": "ISC",
7
7
  "private": false,
8
- "version": "0.0.275",
8
+ "version": "0.0.276",
9
9
  "preferGlobal": true,
10
10
  "scripts": {
11
11
  "format": "eslint --ext .ts,.tsx src --fix",