debian-mirror-gitlab/spec/frontend/gitlab_version_check/mock_data.js
2023-03-05 14:24:40 +05:30

22 lines
1.1 KiB
JavaScript

export const VERSION_CHECK_BADGE_NO_PROP_FIXTURE =
'<div class="js-gitlab-version-check-badge"></div>';
export const VERSION_CHECK_BADGE_NO_SEVERITY_FIXTURE = `<div class="js-gitlab-version-check-badge" data-version='{ "size": "sm" }'></div>`;
export const VERSION_CHECK_BADGE_FIXTURE = `<div class="js-gitlab-version-check-badge" data-version='{ "severity": "success" }'></div>`;
export const VERSION_CHECK_BADGE_FINDER = '[data-testid="badge-click-wrapper"]';
export const VERSION_BADGE_TEXT = 'Up to date';
export const SECURITY_PATCH_FIXTURE = `<div id="js-security-patch-upgrade-alert" data-current-version="15.1"></div>`;
export const SECURITY_PATCH_FINDER = 'h2';
export const SECURITY_PATCH_TEXT = 'Critical security upgrade available';
export const SECURITY_MODAL_FIXTURE = `<div id="js-security-patch-upgrade-alert-modal" data-current-version="15.1" data-version='{ "details": "test details", "latest-stable-versions": "[]" }'></div>`;
export const SECURITY_MODAL_FINDER = '[data-testid="alert-modal-title"]';
export const SECURITY_MODAL_TEXT = 'Important notice - Critical security release';