@globisnv/cypress-core 0.0.6 → 0.0.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.
@@ -366,7 +366,10 @@ const waitForProgressBar = () => {
366
366
  let attempts = 0;
367
367
  const log = Cypress.log({ name: 'checkLoadingIndicator', message: 'Waiting for the progress bar…', autoEnd: false, timeout: 0 });
368
368
  const checkStatus = (resolve, reject) => {
369
- cy.get('body', { log: false }).then(($body) => {
369
+ // cy.document(), not cy.get('body'): commands called from inside a .within() block - such as
370
+ // GLO_clickRowInGrid - would scope that query to the within subject and never find the body.
371
+ cy.document({ log: false }).then((doc) => {
372
+ const $body = Cypress.$(doc.body);
370
373
  if (!$body.find(progressBarSelector).length) {
371
374
  log.end();
372
375
  resolve();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globisnv/cypress-core",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Core building blocks for Globis Cypress E2E tests",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",