File tree Expand file tree Collapse file tree
x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/backup_step Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+ * or more contributor license agreements. Licensed under the Elastic License
4+ * 2.0; you may not use this file except in compliance with the Elastic License
5+ * 2.0.
6+ */
7+
8+ import { act } from 'react-dom/test-utils' ;
9+
10+ import { setupEnvironment } from '../../helpers' ;
11+ import { OverviewTestBed , setupOverviewPage } from '../overview.helpers' ;
12+
13+ describe ( 'Overview - Backup Step' , ( ) => {
14+ let testBed : OverviewTestBed ;
15+ const { server } = setupEnvironment ( ) ;
16+
17+ beforeEach ( async ( ) => {
18+ testBed = await setupOverviewPage ( ) ;
19+ testBed . component . update ( ) ;
20+ } ) ;
21+
22+ afterAll ( ( ) => {
23+ server . restore ( ) ;
24+ } ) ;
25+
26+ describe ( 'On-prem' , ( ) => {
27+ test ( 'Shows link to Snapshot and Restore' , ( ) => {
28+ const { exists } = testBed ;
29+ expect ( exists ( 'snapshotRestoreLink' ) ) . toBe ( true ) ;
30+ } ) ;
31+ } ) ;
32+ } ) ;
You can’t perform that action at this time.
0 commit comments