@datacamp/learn-vm-scripts 1.7.0 → 1.7.1

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.
Files changed (2) hide show
  1. package/dist/index.cjs +0 -15
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -366810,12 +366810,6 @@ var resetChrome = async ({ userDataDir }) => {
366810
366810
  };
366811
366811
 
366812
366812
  // src/snowflakeLogin.ts
366813
- var findAsync = (elements, predicate) => {
366814
- const promises = elements.map(predicate);
366815
- return Promise.all(promises).then(
366816
- (results) => elements.find((_, i) => results[i])
366817
- );
366818
- };
366819
366813
  async function loginToSnowflake({
366820
366814
  url,
366821
366815
  username,
@@ -366858,15 +366852,6 @@ async function loginToSnowflake({
366858
366852
  }
366859
366853
  await signInButtonHandle.click();
366860
366854
  log("Logged in to Snowflake!");
366861
- log("Skipping optional parts of login");
366862
- await page.waitForSelector('[data-testid="Dialog Footer"]');
366863
- log("Dialog Footer found");
366864
- const dialogButtons = await page.$$('div[role="button"]');
366865
- const notNowButton = await findAsync(dialogButtons, async (button) => {
366866
- const innerText = await page.evaluate((el) => el.innerText, button);
366867
- return innerText === "Not now";
366868
- });
366869
- await notNowButton?.click();
366870
366855
  }
366871
366856
 
366872
366857
  // src/fabricLogin.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datacamp/learn-vm-scripts",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "repository": "git@github.com:datacamp-engineering/learn-vm-scripts.git",
5
5
  "description": "Scripts used by VMs in learn.",
6
6
  "main": "./dist/index.cjs",