@bigbinary/neeto-playwright-commons 1.24.6 → 1.24.8
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 +28 -2
- package/index.cjs.js.map +1 -1
- package/index.d.ts +4 -2
- package/index.js +28 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -118458,7 +118458,9 @@ class RolesPage {
|
|
|
118458
118458
|
const { permissions } = await this.roleApis
|
|
118459
118459
|
.fetch("permissions")
|
|
118460
118460
|
.then(response => response === null || response === void 0 ? void 0 : response.json());
|
|
118461
|
-
const permissionObjects = targetPermissions.flatMap(permission => permissions.filter((p) => isGranularPermission
|
|
118461
|
+
const permissionObjects = targetPermissions.flatMap(permission => permissions.filter((p) => isGranularPermission
|
|
118462
|
+
? p.description === permission
|
|
118463
|
+
: p.category === permission));
|
|
118462
118464
|
return ramda.pluck("id", permissionObjects);
|
|
118463
118465
|
};
|
|
118464
118466
|
this.getRoleIdAndOrganizationId = async (roleName) => {
|
|
@@ -123997,8 +123999,11 @@ const playdashLighthouseConfig = {
|
|
|
123997
123999
|
tags: process.env.TAG,
|
|
123998
124000
|
};
|
|
123999
124001
|
const isCI = neetoCist.isPresent(process.env.NEETO_CI_JOB_ID);
|
|
124002
|
+
const isDevEnv = process.env.TEST_ENV === ENVIRONMENT.development;
|
|
124003
|
+
const railsPort = process.env.RAILS_SERVER_PORT;
|
|
124004
|
+
const vitePort = process.env.VITE_PORT;
|
|
124000
124005
|
const definePlaywrightConfig = (overrides) => {
|
|
124001
|
-
const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], playdashStagingOverrides = {}, playdashProductionOverrides = {}, playdashLighthouseOverrides = {}, } = overrides;
|
|
124006
|
+
const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], playdashStagingOverrides = {}, playdashProductionOverrides = {}, playdashLighthouseOverrides = {}, webServerOverrides = [], } = overrides;
|
|
124002
124007
|
let reporter = !ramda.isEmpty(playdashStagingOverrides)
|
|
124003
124008
|
? [
|
|
124004
124009
|
[
|
|
@@ -124035,7 +124040,28 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
124035
124040
|
forbidOnly: isCI,
|
|
124036
124041
|
retries: isCI ? 1 : 0,
|
|
124037
124042
|
timeout: 5 * 60 * 1000,
|
|
124043
|
+
workers: isCI ? 6 : 5,
|
|
124038
124044
|
reporter: isCI ? reporter : [["line"]],
|
|
124045
|
+
...(isDevEnv && {
|
|
124046
|
+
webServer: [
|
|
124047
|
+
{
|
|
124048
|
+
command: `bundle exec puma -b tcp://0.0.0.0:${railsPort} -C config/puma.rb`,
|
|
124049
|
+
url: `http://spinkart.lvh.me:${railsPort}`,
|
|
124050
|
+
reuseExistingServer: !isCI,
|
|
124051
|
+
timeout: 5 * 60 * 1000,
|
|
124052
|
+
cwd: "..",
|
|
124053
|
+
env: { ...process.env, PORT: railsPort !== null && railsPort !== void 0 ? railsPort : "" },
|
|
124054
|
+
},
|
|
124055
|
+
{
|
|
124056
|
+
command: "yarn dev --host",
|
|
124057
|
+
url: `http://127.0.0.1:${vitePort}/@vite/client`,
|
|
124058
|
+
reuseExistingServer: !isCI,
|
|
124059
|
+
timeout: 2 * 60 * 1000,
|
|
124060
|
+
cwd: "..",
|
|
124061
|
+
},
|
|
124062
|
+
...webServerOverrides,
|
|
124063
|
+
],
|
|
124064
|
+
}),
|
|
124039
124065
|
...globalOverrides,
|
|
124040
124066
|
use: {
|
|
124041
124067
|
baseURL: process.env.BASE_URL,
|