@datacamp/learn-vm-scripts 1.8.3 → 1.8.4
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 +11 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -366663,12 +366663,16 @@ var setInput = ({
|
|
|
366663
366663
|
|
|
366664
366664
|
// src/azureLogin.ts
|
|
366665
366665
|
var closeOnboardingPopups = async (page) => {
|
|
366666
|
-
|
|
366667
|
-
|
|
366668
|
-
|
|
366669
|
-
|
|
366670
|
-
|
|
366671
|
-
|
|
366666
|
+
try {
|
|
366667
|
+
const welcomeSurveyCloseButton = 'span.fxs-welcomesurvey-close-icon[role="button"]';
|
|
366668
|
+
await page.waitForSelector(welcomeSurveyCloseButton);
|
|
366669
|
+
await page.click(welcomeSurveyCloseButton);
|
|
366670
|
+
const popupButton = "button.fxs-teaching-bubble-close";
|
|
366671
|
+
await page.waitForSelector(popupButton);
|
|
366672
|
+
await page.click(popupButton);
|
|
366673
|
+
} catch {
|
|
366674
|
+
log("Onboarding popups not found or not clickable");
|
|
366675
|
+
}
|
|
366672
366676
|
};
|
|
366673
366677
|
var closeSideNavigation = async (page) => {
|
|
366674
366678
|
try {
|
|
@@ -366717,7 +366721,7 @@ async function loginToAzure({
|
|
|
366717
366721
|
log("Password entered successfully");
|
|
366718
366722
|
log("Ensuring user stays signed in ...");
|
|
366719
366723
|
await page.waitForSelector('[type="submit"]');
|
|
366720
|
-
await page.click('[type="submit"]');
|
|
366724
|
+
await Promise.all([page.waitForNavigation(), page.click('[type="submit"]')]);
|
|
366721
366725
|
if (skipOnboarding) {
|
|
366722
366726
|
log("Skipping onboarding...");
|
|
366723
366727
|
void closeOnboardingPopups(page).catch((error) => {
|
|
@@ -366725,7 +366729,6 @@ async function loginToAzure({
|
|
|
366725
366729
|
});
|
|
366726
366730
|
}
|
|
366727
366731
|
if (url.includes("m365.cloud.microsoft/chat")) {
|
|
366728
|
-
await page.waitForNavigation({ waitUntil: "networkidle0" });
|
|
366729
366732
|
void closeSideNavigation(page).catch((error) => {
|
|
366730
366733
|
console.error(
|
|
366731
366734
|
"Error closing side navigation for Microsoft 365 copilot chat: ",
|
package/package.json
CHANGED