debian-mirror-gitlab/spec/frontend/gitlab_version_check/mock_data.js
2023-03-17 16:20:25 +05:30

16 lines
877 B
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_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';