@bigbinary/neeto-playwright-commons 1.3.0 → 1.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/index.cjs.js +4 -3
- package/index.cjs.js.map +1 -1
- package/index.d.ts +4 -14
- package/index.js +4 -3
- package/index.js.map +1 -1
- package/package.json +2 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as _playwright_test from '@playwright/test';
|
|
2
2
|
import { Page, APIRequestContext, Response, APIResponse, Fixtures, PlaywrightWorkerArgs, PlaywrightWorkerOptions, PlaywrightTestArgs, PlaywrightTestOptions } from '@playwright/test';
|
|
3
|
+
import * as playwright_test from 'playwright/test';
|
|
4
|
+
import * as playwright_i18next_fixture from 'playwright-i18next-fixture';
|
|
3
5
|
|
|
4
6
|
interface InterceptMultipleResponsesParams {
|
|
5
7
|
responseUrl: string;
|
|
@@ -66,19 +68,7 @@ declare const generateStagingData: (product?: string) => {
|
|
|
66
68
|
email: string;
|
|
67
69
|
};
|
|
68
70
|
|
|
69
|
-
declare const
|
|
70
|
-
options: {
|
|
71
|
-
debug: boolean;
|
|
72
|
-
fallbackLng: string;
|
|
73
|
-
resources: {
|
|
74
|
-
en: {
|
|
75
|
-
translation: Record<string, unknown>;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
cache: boolean;
|
|
80
|
-
auto: boolean;
|
|
81
|
-
};
|
|
71
|
+
declare const i18nFixture: playwright_test.Fixtures<playwright_i18next_fixture.I18nPlaywrightFixture, playwright_test.PlaywrightWorkerArgs & playwright_test.PlaywrightWorkerOptions, playwright_test.PlaywrightTestArgs & playwright_test.PlaywrightTestOptions, playwright_test.PlaywrightWorkerArgs & playwright_test.PlaywrightWorkerOptions>;
|
|
82
72
|
|
|
83
73
|
interface CreateOrganizationProps {
|
|
84
74
|
email: string;
|
|
@@ -382,4 +372,4 @@ interface Overrides {
|
|
|
382
372
|
}
|
|
383
373
|
declare const definePlaywrightConfig: (overrides: Overrides) => _playwright_test.PlaywrightTestConfig<{}, {}>;
|
|
384
374
|
|
|
385
|
-
export { BASE_URL, CHAT_WIDGET_SELECTORS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, type CustomFixture, ENVIRONMENT, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, IS_STAGING_ENV, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MERGE_TAGS_SELECTORS, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, OrganizationPage, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, STORAGE_STATE, TAGS_SELECTORS, clearCredentials, commands, definePlaywrightConfig, generateStagingData, hyphenize,
|
|
375
|
+
export { BASE_URL, CHAT_WIDGET_SELECTORS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, type CustomFixture, ENVIRONMENT, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, IS_STAGING_ENV, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MERGE_TAGS_SELECTORS, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, OrganizationPage, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, STORAGE_STATE, TAGS_SELECTORS, clearCredentials, commands, definePlaywrightConfig, generateStagingData, hyphenize, i18nFixture, initializeCredentials, joinHyphenCase, joinString, login, loginWithoutSSO, readFileSyncIfExists, readTranslations, updateCredentials, writeDataToFile };
|
package/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import require$$0$3 from 'stream';
|
|
|
8
8
|
import require$$0$4 from 'events';
|
|
9
9
|
import { mergeDeepLeft, mergeAll } from 'ramda';
|
|
10
10
|
import dayjs from 'dayjs';
|
|
11
|
+
import { createI18nFixture } from 'playwright-i18next-fixture';
|
|
11
12
|
import require$$3 from 'crypto';
|
|
12
13
|
|
|
13
14
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -6950,7 +6951,7 @@ const generateStagingData = (product = "invoice") => {
|
|
|
6950
6951
|
};
|
|
6951
6952
|
};
|
|
6952
6953
|
|
|
6953
|
-
const
|
|
6954
|
+
const i18nFixture = createI18nFixture({
|
|
6954
6955
|
// i18n configuration options
|
|
6955
6956
|
options: {
|
|
6956
6957
|
debug: false,
|
|
@@ -6963,7 +6964,7 @@ const i18n = {
|
|
|
6963
6964
|
// Run as auto fixture to be available through all tests by getI18nInstance()
|
|
6964
6965
|
// Default: true
|
|
6965
6966
|
auto: true,
|
|
6966
|
-
};
|
|
6967
|
+
});
|
|
6967
6968
|
|
|
6968
6969
|
const BASE_URL = "/api/v1";
|
|
6969
6970
|
const ROUTES = {
|
|
@@ -7747,5 +7748,5 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
7747
7748
|
});
|
|
7748
7749
|
};
|
|
7749
7750
|
|
|
7750
|
-
export { BASE_URL, CHAT_WIDGET_SELECTORS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, ENVIRONMENT, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, IS_STAGING_ENV, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MERGE_TAGS_SELECTORS, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, OrganizationPage, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, STORAGE_STATE, TAGS_SELECTORS, clearCredentials, commands, definePlaywrightConfig, generateStagingData, hyphenize,
|
|
7751
|
+
export { BASE_URL, CHAT_WIDGET_SELECTORS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, ENVIRONMENT, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, IS_STAGING_ENV, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MERGE_TAGS_SELECTORS, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, OrganizationPage, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, STORAGE_STATE, TAGS_SELECTORS, clearCredentials, commands, definePlaywrightConfig, generateStagingData, hyphenize, i18nFixture, initializeCredentials, joinHyphenCase, joinString, login, loginWithoutSSO, readFileSyncIfExists, readTranslations, updateCredentials, writeDataToFile };
|
|
7751
7752
|
//# sourceMappingURL=index.js.map
|