@bigbinary/neeto-commons-frontend 2.0.117 → 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/constants.cjs.js +7 -8
- package/constants.cjs.js.map +1 -1
- package/constants.d.ts +2 -4
- package/constants.js +6 -8
- package/constants.js.map +1 -1
- package/cypress-utils.cjs.js +8 -1
- package/cypress-utils.cjs.js.map +1 -1
- package/cypress-utils.js +8 -2
- package/cypress-utils.js.map +1 -1
- package/package.json +1 -1
package/constants.cjs.js
CHANGED
|
@@ -7,17 +7,16 @@ var DEFAULT_PAGE_INDEX = 1;
|
|
|
7
7
|
var DEFAULT_STALE_TIME = 3600000; // 1 hour
|
|
8
8
|
|
|
9
9
|
// Constants for translation
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
count: 2
|
|
16
|
-
}
|
|
10
|
+
var SINGULAR = {
|
|
11
|
+
count: 1
|
|
12
|
+
};
|
|
13
|
+
var PLURAL = {
|
|
14
|
+
count: 2
|
|
17
15
|
};
|
|
18
16
|
|
|
19
17
|
exports.BASE_API_V1_URL = BASE_API_V1_URL;
|
|
20
18
|
exports.DEFAULT_PAGE_INDEX = DEFAULT_PAGE_INDEX;
|
|
21
19
|
exports.DEFAULT_STALE_TIME = DEFAULT_STALE_TIME;
|
|
22
|
-
exports.
|
|
20
|
+
exports.PLURAL = PLURAL;
|
|
21
|
+
exports.SINGULAR = SINGULAR;
|
|
23
22
|
//# sourceMappingURL=constants.cjs.js.map
|
package/constants.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.cjs.js","sources":["src/constants/index.js"],"sourcesContent":["export const BASE_API_V1_URL = \"/api/v1\";\n\nexport const DEFAULT_PAGE_INDEX = 1;\nexport const DEFAULT_STALE_TIME = 3_600_000; // 1 hour\n\n// Constants for translation\nexport const
|
|
1
|
+
{"version":3,"file":"constants.cjs.js","sources":["src/constants/index.js"],"sourcesContent":["export const BASE_API_V1_URL = \"/api/v1\";\n\nexport const DEFAULT_PAGE_INDEX = 1;\nexport const DEFAULT_STALE_TIME = 3_600_000; // 1 hour\n\n// Constants for translation\nexport const SINGULAR = { count: 1 };\nexport const PLURAL = { count: 2 };\n"],"names":["BASE_API_V1_URL","DEFAULT_PAGE_INDEX","DEFAULT_STALE_TIME","SINGULAR","count","PLURAL"],"mappings":";;;;AAAO,IAAMA,eAAe,GAAG,UAAS;AAEjC,IAAMC,kBAAkB,GAAG,EAAC;AACtBC,IAAAA,kBAAkB,GAAG,QAAU;;AAE5C;AACO,IAAMC,QAAQ,GAAG;AAAEC,EAAAA,KAAK,EAAE,CAAA;AAAE,EAAC;AAC7B,IAAMC,MAAM,GAAG;AAAED,EAAAA,KAAK,EAAE,CAAA;AAAE;;;;;;;;"}
|
package/constants.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export const BASE_API_V1_URL: string;
|
|
2
2
|
export const DEFAULT_PAGE_INDEX: number;
|
|
3
3
|
export const DEFAULT_STALE_TIME: number;
|
|
4
|
-
export const
|
|
5
|
-
|
|
6
|
-
PLURAL: { count: number }
|
|
7
|
-
}
|
|
4
|
+
export const SINGULAR: { count: number };
|
|
5
|
+
export const PLURAL: { count: number };
|
package/constants.js
CHANGED
|
@@ -3,14 +3,12 @@ var DEFAULT_PAGE_INDEX = 1;
|
|
|
3
3
|
var DEFAULT_STALE_TIME = 3600000; // 1 hour
|
|
4
4
|
|
|
5
5
|
// Constants for translation
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
count: 2
|
|
12
|
-
}
|
|
6
|
+
var SINGULAR = {
|
|
7
|
+
count: 1
|
|
8
|
+
};
|
|
9
|
+
var PLURAL = {
|
|
10
|
+
count: 2
|
|
13
11
|
};
|
|
14
12
|
|
|
15
|
-
export { BASE_API_V1_URL, DEFAULT_PAGE_INDEX, DEFAULT_STALE_TIME,
|
|
13
|
+
export { BASE_API_V1_URL, DEFAULT_PAGE_INDEX, DEFAULT_STALE_TIME, PLURAL, SINGULAR };
|
|
16
14
|
//# sourceMappingURL=constants.js.map
|
package/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["src/constants/index.js"],"sourcesContent":["export const BASE_API_V1_URL = \"/api/v1\";\n\nexport const DEFAULT_PAGE_INDEX = 1;\nexport const DEFAULT_STALE_TIME = 3_600_000; // 1 hour\n\n// Constants for translation\nexport const
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["src/constants/index.js"],"sourcesContent":["export const BASE_API_V1_URL = \"/api/v1\";\n\nexport const DEFAULT_PAGE_INDEX = 1;\nexport const DEFAULT_STALE_TIME = 3_600_000; // 1 hour\n\n// Constants for translation\nexport const SINGULAR = { count: 1 };\nexport const PLURAL = { count: 2 };\n"],"names":["BASE_API_V1_URL","DEFAULT_PAGE_INDEX","DEFAULT_STALE_TIME","SINGULAR","count","PLURAL"],"mappings":"AAAO,IAAMA,eAAe,GAAG,UAAS;AAEjC,IAAMC,kBAAkB,GAAG,EAAC;AACtBC,IAAAA,kBAAkB,GAAG,QAAU;;AAE5C;AACO,IAAMC,QAAQ,GAAG;AAAEC,EAAAA,KAAK,EAAE,CAAA;AAAE,EAAC;AAC7B,IAAMC,MAAM,GAAG;AAAED,EAAAA,KAAK,EAAE,CAAA;AAAE;;;;"}
|
package/cypress-utils.cjs.js
CHANGED
|
@@ -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;
|