@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.
@@ -105,6 +105,10 @@ var dataCy = function dataCy(value) {
105
105
  var suffix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
106
106
  return "[data-cy='".concat(value, "']").concat(suffix);
107
107
  };
108
+ var dataTestId = function dataTestId(value) {
109
+ var suffix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
110
+ return "[data-testid='".concat(value, "']").concat(suffix);
111
+ };
108
112
  var setListCount = function setListCount(countSelector, alias) {
109
113
  return cy.get(countSelector).then(function (countText) {
110
114
  cy.wrap(getCountFromText(countText)).as(alias);
@@ -239,7 +243,8 @@ var profileSelectors = {
239
243
  logoutLink: dataCy("profile-logout-button"),
240
244
  profileOptionsContainer: '[class="tippy-box sidebar-featured-tooltip__content"]',
241
245
  myProfileButton: dataCy("my-profile-button"),
242
- organizationSettingsButton: dataCy("profile-organization-settings-button")
246
+ organizationSettingsButton: dataCy("profile-organization-settings-button"),
247
+ loader: dataTestId("spinner")
243
248
  };
244
249
 
245
250
  var commonTexts = {
@@ -722,6 +727,7 @@ var verifySSOLoginPage = function verifySSOLoginPage() {
722
727
  cy.get(commonSelectors.emailInputError).should("have.text", commonTexts.invalidEmailMessage);
723
728
  };
724
729
  var logout = function logout(homeUrl) {
730
+ cy.get(profileSelectors.loader).should("not.exist");
725
731
  cy.get(profileSelectors.tab).click();
726
732
  cy.get(profileSelectors.logoutLink).should("have.text", commonTexts.logout).invoke("click");
727
733
  cy.url({
@@ -1345,6 +1351,7 @@ exports.commonSelectors = commonSelectors;
1345
1351
  exports.commonTexts = commonTexts;
1346
1352
  exports.createOrganization = createOrganization;
1347
1353
  exports.dataCy = dataCy;
1354
+ exports.dataTestId = dataTestId;
1348
1355
  exports.dateUtils = dateUtils;
1349
1356
  exports.env = env;
1350
1357
  exports.environment = environment;