1
1
import { rte } from '../../../../helpers/constants' ;
2
- import { BrowserPage , MyRedisDatabasePage } from '../../../../pageObjects' ;
2
+ import { BrowserPage , ClusterDetailsPage , MyRedisDatabasePage } from '../../../../pageObjects' ;
3
3
import { commonUrl , ossClusterForSSHConfig , ossStandaloneForSSHConfig } from '../../../../helpers/conf' ;
4
4
import { DatabaseHelper } from '../../../../helpers/database' ;
5
5
import { DatabaseAPIRequests } from '../../../../helpers/api/api-database' ;
@@ -9,6 +9,7 @@ import { BrowserActions } from '../../../../common-actions/browser-actions';
9
9
10
10
const myRedisDatabasePage = new MyRedisDatabasePage ( ) ;
11
11
const browserPage = new BrowserPage ( ) ;
12
+ const clusterPage = new ClusterDetailsPage ( ) ;
12
13
const databaseHelper = new DatabaseHelper ( ) ;
13
14
const databaseAPIRequests = new DatabaseAPIRequests ( ) ;
14
15
const browserActions = new BrowserActions ( ) ;
@@ -121,13 +122,21 @@ test('Adding database with SSH', async t => {
121
122
await myRedisDatabasePage . clickOnDBByName ( sshDbPasscode . databaseName ) ;
122
123
await Common . checkURLContainsText ( 'browser' ) ;
123
124
} ) ;
124
- test ( 'Adding OSS Cluster database with SSH' , async t => {
125
+ test ( 'Verify that OSS Cluster database with SSH can be added and work correctly ' , async t => {
125
126
const sshWithPass = {
126
127
...sshParams ,
127
128
sshPassword : 'pass'
128
129
} ;
129
130
// Verify that user can add SSH tunnel with Password for OSS Cluster database
130
131
await myRedisDatabasePage . AddRedisDatabaseDialog . addStandaloneSSHDatabase ( sshDbClusterPass , sshWithPass ) ;
131
132
await myRedisDatabasePage . clickOnDBByName ( sshDbPass . databaseName ) ;
132
- await Common . checkURLContainsText ( 'browser' ) ;
133
+
134
+ //verify that db is added and profiler works
135
+ await t . click ( browserPage . Profiler . expandMonitor ) ;
136
+ await t . click ( browserPage . Profiler . startMonitorButton ) ;
137
+ await t . expect ( browserPage . Profiler . monitorIsStartedText . innerText ) . eql ( 'Profiler is started.' ) ;
138
+
139
+ await t . click ( browserPage . NavigationPanel . analysisPageButton ) ;
140
+ await t . click ( clusterPage . overviewTab ) ;
141
+ await t . expect ( await clusterPage . getPrimaryNodesCount ( ) ) . eql ( Number ( '3' ) , 'Primary nodes in table are not corrected' ) ;
133
142
} ) ;
0 commit comments