@bigbinary/neeto-commons-frontend 2.0.118 → 2.0.119

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/cypress-utils.js CHANGED
@@ -97,6 +97,10 @@ var dataCy = function dataCy(value) {
97
97
  var suffix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
98
98
  return "[data-cy='".concat(value, "']").concat(suffix);
99
99
  };
100
+ var dataTestId = function dataTestId(value) {
101
+ var suffix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
102
+ return "[data-testid='".concat(value, "']").concat(suffix);
103
+ };
100
104
  var setListCount = function setListCount(countSelector, alias) {
101
105
  return cy.get(countSelector).then(function (countText) {
102
106
  cy.wrap(getCountFromText(countText)).as(alias);
@@ -231,7 +235,8 @@ var profileSelectors = {
231
235
  logoutLink: dataCy("profile-logout-button"),
232
236
  profileOptionsContainer: '[class="tippy-box sidebar-featured-tooltip__content"]',
233
237
  myProfileButton: dataCy("my-profile-button"),
234
- organizationSettingsButton: dataCy("profile-organization-settings-button")
238
+ organizationSettingsButton: dataCy("profile-organization-settings-button"),
239
+ loader: dataTestId("spinner")
235
240
  };
236
241
 
237
242
  var commonTexts = {
@@ -714,6 +719,7 @@ var verifySSOLoginPage = function verifySSOLoginPage() {
714
719
  cy.get(commonSelectors.emailInputError).should("have.text", commonTexts.invalidEmailMessage);
715
720
  };
716
721
  var logout = function logout(homeUrl) {
722
+ cy.get(profileSelectors.loader).should("not.exist");
717
723
  cy.get(profileSelectors.tab).click();
718
724
  cy.get(profileSelectors.logoutLink).should("have.text", commonTexts.logout).invoke("click");
719
725
  cy.url({
@@ -1331,5 +1337,5 @@ var navigationUtils = {
1331
1337
  verifyOrganizationTab: verifyOrganizationTab
1332
1338
  };
1333
1339
 
1334
- export { authUtils, chatWidgetSelectors, commonSelectors, commonTexts, createOrganization, dataCy, dateUtils, env, environment, getTestTitle, getUrl, helpIconSelectors, helpIconTexts, initCustomCommands, initializeCredentials, isStagingEnv, joinHyphenCase, loginSelectors, memberFormErrorTexts, memberFormSelectors, memberSelectors, memberTableTexts, memberTexts, memberUtils, navigationUtils, profileSelectors, profileTexts, setListCount, signUpSelectors, signUpTexts, tableSelectors, verifyCrossSiteScript, verifyListCount };
1340
+ export { authUtils, chatWidgetSelectors, commonSelectors, commonTexts, createOrganization, dataCy, dataTestId, dateUtils, env, environment, getTestTitle, getUrl, helpIconSelectors, helpIconTexts, initCustomCommands, initializeCredentials, isStagingEnv, joinHyphenCase, loginSelectors, memberFormErrorTexts, memberFormSelectors, memberSelectors, memberTableTexts, memberTexts, memberUtils, navigationUtils, profileSelectors, profileTexts, setListCount, signUpSelectors, signUpTexts, tableSelectors, verifyCrossSiteScript, verifyListCount };
1335
1341
  //# sourceMappingURL=cypress-utils.js.map