sfdx-browserforce-plugin 6.3.1 → 6.3.2

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/README.md CHANGED
@@ -197,7 +197,7 @@ FLAG DESCRIPTIONS
197
197
  The trace file can be viewed with "sf browserforce playwright -- show-trace trace-<date>.zip".
198
198
  ```
199
199
 
200
- _See code: [src/commands/browserforce/apply.ts](https://github.com/amtrack/sfdx-browserforce-plugin/blob/v6.3.1/src/commands/browserforce/apply.ts)_
200
+ _See code: [src/commands/browserforce/apply.ts](https://github.com/amtrack/sfdx-browserforce-plugin/blob/v6.3.2/src/commands/browserforce/apply.ts)_
201
201
 
202
202
  ## `sf browserforce playwright`
203
203
 
@@ -220,7 +220,7 @@ EXAMPLES
220
220
  $ sf browserforce playwright -- install chromium
221
221
  ```
222
222
 
223
- _See code: [src/commands/browserforce/playwright.ts](https://github.com/amtrack/sfdx-browserforce-plugin/blob/v6.3.1/src/commands/browserforce/playwright.ts)_
223
+ _See code: [src/commands/browserforce/playwright.ts](https://github.com/amtrack/sfdx-browserforce-plugin/blob/v6.3.2/src/commands/browserforce/playwright.ts)_
224
224
  <!-- commandsstop -->
225
225
 
226
226
  ## Playwright
@@ -10,6 +10,10 @@ export class LoginPage {
10
10
  const org = await Org.create({ connection });
11
11
  const frontDoorUrl = await org.getFrontDoorUrl(POST_LOGIN_PATH);
12
12
  await this.page.goto(frontDoorUrl);
13
+ const currentUrl = new URL(this.page.url());
14
+ if (currentUrl.pathname === '/msg/maintenanceandavailable.jsp') {
15
+ await this.page.goto(currentUrl.origin + POST_LOGIN_PATH);
16
+ }
13
17
  await Promise.race([this.page.waitForURL((url) => url.pathname === POST_LOGIN_PATH), waitForPageErrors(this.page)]);
14
18
  return this;
15
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sourceRoot":"","sources":["../../src/pages/login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAmB,MAAM,kBAAk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e,CAAC,CAAC;QAChE,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QAC5C,IAAI,UAAU,CAAC,QAAQ,KAAK,kCAAkC,EAAE,CAAC;YAC/D,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,eAAe,CAAC,CAAC;QAC5D,CAAC;QACD,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,KAAK,eAAe,CAAC,EAAE,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpH,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -173,5 +173,5 @@
173
173
  ]
174
174
  }
175
175
  },
176
- "version": "6.3.1"
176
+ "version": "6.3.2"
177
177
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfdx-browserforce-plugin",
3
- "version": "6.3.1",
3
+ "version": "6.3.2",
4
4
  "description": "sfdx plugin for browser automation",
5
5
  "author": "Matthias Rolke <mr.amtrack@gmail.com>",
6
6
  "type": "module",