debian-mirror-gitlab/spec/frontend/gitlab_version_check/mock_data.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-03-04 22:38:38 +05:30
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';