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 ( ) ;
@@ -122,13 +123,21 @@ test('Adding database with SSH', async t => {
122
123
await myRedisDatabasePage . clickOnDBByName ( sshDbPasscode . databaseName ) ;
123
124
await Common . checkURLContainsText ( 'browser' ) ;
124
125
} ) ;
125
- test ( 'Adding OSS Cluster database with SSH' , async t => {
126
+ test ( 'Verify that OSS Cluster database with SSH can be added and work correctly ' , async t => {
126
127
const sshWithPass = {
127
128
...sshParams ,
128
129
sshPassword : 'pass'
129
130
} ;
130
131
// Verify that user can add SSH tunnel with Password for OSS Cluster database
131
132
await myRedisDatabasePage . AddRedisDatabase . addStandaloneSSHDatabase ( sshDbClusterPass , sshWithPass ) ;
132
133
await myRedisDatabasePage . clickOnDBByName ( sshDbPass . databaseName ) ;
133
- await Common . checkURLContainsText ( 'browser' ) ;
134
+
135
+ //verify that db is added and profiler works
136
+ await t . click ( browserPage . Profiler . expandMonitor ) ;
137
+ await t . click ( browserPage . Profiler . startMonitorButton ) ;
138
+ await t . expect ( browserPage . Profiler . monitorIsStartedText . innerText ) . eql ( 'Profiler is started.' ) ;
139
+
140
+ await t . click ( browserPage . NavigationPanel . analysisPageButton ) ;
141
+ await t . click ( clusterPage . overviewTab ) ;
142
+ await t . expect ( await clusterPage . getPrimaryNodesCount ( ) ) . eql ( Number ( '3' ) , 'Primary nodes in table are not corrected' ) ;
134
143
} ) ;
0 commit comments