Skip to content

Commit f3ea2ff

Browse files
committed
Add CIT.
1 parent f38030b commit f3ea2ff

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

  • x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/backup_step
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
});

0 commit comments

Comments
 (0)