@datacamp/learn-vm-scripts 0.0.3 → 0.0.4-rc.0
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/dist/index.cjs +5 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -95341,9 +95341,6 @@ async function loginToAzure({
|
|
|
95341
95341
|
});
|
|
95342
95342
|
await page.click('input[type="submit"]');
|
|
95343
95343
|
spinner.start("Entering password...");
|
|
95344
|
-
await new Promise((resolve5) => {
|
|
95345
|
-
setTimeout(resolve5, 1e3);
|
|
95346
|
-
});
|
|
95347
95344
|
const passwordQuerySelector = 'input[type="password"]';
|
|
95348
95345
|
await page.waitForSelector(passwordQuerySelector, { visible: true });
|
|
95349
95346
|
await setInput({
|
|
@@ -95351,14 +95348,14 @@ async function loginToAzure({
|
|
|
95351
95348
|
querySelector: passwordQuerySelector,
|
|
95352
95349
|
value: password
|
|
95353
95350
|
});
|
|
95354
|
-
await
|
|
95355
|
-
|
|
95351
|
+
await Promise.all([
|
|
95352
|
+
page.waitForNavigation(),
|
|
95353
|
+
page.click('input[type="submit"]')
|
|
95354
|
+
]);
|
|
95356
95355
|
spinner.start("Ensuring user stays signed in ...");
|
|
95357
95356
|
await page.waitForSelector('[type="submit"]');
|
|
95358
95357
|
await page.click('[type="submit"]');
|
|
95359
|
-
await page.keyboard.press("Enter");
|
|
95360
|
-
spinner.start("Logging in...");
|
|
95361
|
-
await page.waitForNavigation();
|
|
95358
|
+
await Promise.all([page.waitForNavigation(), page.keyboard.press("Enter")]);
|
|
95362
95359
|
spinner.succeed(source_default.green("Logged in to Azure successfully"));
|
|
95363
95360
|
}
|
|
95364
95361
|
|
package/package.json
CHANGED