@datacamp/learn-vm-scripts 1.8.6 → 1.8.7
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 +10 -17
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -366743,22 +366743,6 @@ async function loginToAzure({
|
|
|
366743
366743
|
}
|
|
366744
366744
|
|
|
366745
366745
|
// src/awsLogin.ts
|
|
366746
|
-
var oldUi = async (page) => {
|
|
366747
|
-
const rememberAccountCheckbox = 'input[id="remember_account_checkbox"]';
|
|
366748
|
-
await page.waitForSelector(rememberAccountCheckbox);
|
|
366749
|
-
await page.click(rememberAccountCheckbox);
|
|
366750
|
-
const signInButton = 'a[id="signin_button"]';
|
|
366751
|
-
await page.waitForSelector(signInButton);
|
|
366752
|
-
await page.click(signInButton);
|
|
366753
|
-
};
|
|
366754
|
-
var newUi = async (page) => {
|
|
366755
|
-
const rememberAccountCheckbox = 'span[data-testid="remember-account"] input[type="checkbox"]';
|
|
366756
|
-
await page.waitForSelector(rememberAccountCheckbox);
|
|
366757
|
-
await page.click(rememberAccountCheckbox);
|
|
366758
|
-
const signInButton = 'button[type="submit"]';
|
|
366759
|
-
await page.waitForSelector(signInButton);
|
|
366760
|
-
await page.click(signInButton);
|
|
366761
|
-
};
|
|
366762
366746
|
async function loginToAWS({
|
|
366763
366747
|
url,
|
|
366764
366748
|
username,
|
|
@@ -366781,7 +366765,16 @@ async function loginToAWS({
|
|
|
366781
366765
|
querySelector: 'input[name="password"]',
|
|
366782
366766
|
value: password
|
|
366783
366767
|
});
|
|
366784
|
-
|
|
366768
|
+
try {
|
|
366769
|
+
const closeFeedbackPopupButton = 'button[title="Close feedback dialog"]';
|
|
366770
|
+
await page.waitForSelector(closeFeedbackPopupButton, { timeout: 2e3 });
|
|
366771
|
+
await page.click(closeFeedbackPopupButton);
|
|
366772
|
+
} catch {
|
|
366773
|
+
log("Feedback popup not found or not clickable");
|
|
366774
|
+
}
|
|
366775
|
+
const signInButton = 'button[type="submit"]';
|
|
366776
|
+
await page.waitForSelector(signInButton);
|
|
366777
|
+
await page.click(signInButton);
|
|
366785
366778
|
log("Logged in to AWS successfully");
|
|
366786
366779
|
}
|
|
366787
366780
|
|
package/package.json
CHANGED