@amanat-qa/utils-frontend 5.4.1 → 5.5.0

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.
@@ -35,7 +35,7 @@ var jobs = testSuites.map(function (suite) {
35
35
  tags: ['k8s'],
36
36
  before_script: [
37
37
  // eslint-disable-next-line no-template-curly-in-string
38
- 'echo "${ENV_TEST}" | tr -d \'\\r\' > ./.env.test', 'apt-get update && apt-get install -y jq', 'docker login --username $USER --password $PASS registry.gitlab.com'].concat(_toConsumableArray(projectName !== 'amanat24' ? ['service docker start'] : []), ['npm ci --prefix ./cypress', 'npm install @amanat-qa/ui-core@latest --prefix ./cypress --no-save', 'npm install @amanat-qa/utils-frontend@latest --prefix ./cypress --no-save', 'npm run lint --prefix ./cypress',
38
+ 'echo "${ENV_TEST}" | tr -d \'\\r\' > ./.env.test', 'apt-get update && apt-get install -y jq', 'docker login --username $USER --password $PASS registry.gitlab.com'].concat(_toConsumableArray(projectName !== 'amanat24' ? ['service docker start'] : []), ['npm ci --prefix ./cypress', 'npm install @amanat-qa/utils-frontend@latest --prefix ./cypress --no-save', 'npm install @amanat-qa/ui-core@latest --prefix ./cypress --no-save', 'npm run lint --prefix ./cypress',
39
39
  // eslint-disable-next-line no-template-curly-in-string
40
40
  'REPO_NAME="${CI_PROJECT_NAME%_*}" && PROJECT_DATA=$(curl --silent --header "PRIVATE-TOKEN: $TOKEN" "https://gitlab.com/api/v4/projects?search=$REPO_NAME" | jq -r \'.[] | select(.path == "\'${REPO_NAME}\'") | [.id, .container_registry_image_prefix] | join(" ")\') && read -r PROJECT_ID REGISTRY_NAME <<< "$PROJECT_DATA" && if [ -z "$PROJECT_ID" ] || [ "$PROJECT_ID" == "null" ]; then echo "Project $REPO_NAME not found"; exit 1; fi && FULL_SHA=$(curl --silent --fail --header "PRIVATE-TOKEN: $TOKEN" "https://gitlab.com/api/v4/projects/$PROJECT_ID/repository/commits?ref_name=$CI_COMMIT_REF_NAME" | jq -r ".[0].id") && export LATEST_COMMIT="${FULL_SHA:0:8}" && export REPO_NAME && export REGISTRY_NAME && echo "Run tests on image from project $REPO_NAME with branch $CI_COMMIT_REF_NAME and commit $LATEST_COMMIT"']),
41
41
  script: [
@@ -137,6 +137,14 @@ var Randomizer = /*#__PURE__*/function () {
137
137
  }
138
138
  return element;
139
139
  }
140
+ }, {
141
+ key: "getRandomInsuranceType",
142
+ value: function getRandomInsuranceType(group) {
143
+ var insuranceGroup = JSONLoader.testData.insurance_group[group];
144
+ var keys = Object.keys(insuranceGroup);
145
+ var randomKey = keys[this.getRandomInteger(keys.length - 1, 0)];
146
+ return insuranceGroup[randomKey];
147
+ }
140
148
  }]);
141
149
  }();
142
150
  module.exports = Randomizer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amanat-qa/utils-frontend",
3
- "version": "5.4.1",
3
+ "version": "5.5.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },