@@ -31,10 +31,9 @@ fixture `Monitor`
31
31
. afterEach ( async ( ) => {
32
32
//Delete database
33
33
await deleteDatabase ( ossStandaloneConfig . databaseName ) ;
34
- } )
34
+ } ) ;
35
35
test
36
- . meta ( { rte : rte . standalone } )
37
- ( 'Verify that when user closes the Monitor by clicking on "Close Monitor" button Monitor stopped' , async t => {
36
+ . meta ( { rte : rte . standalone } ) ( 'Verify that when user closes the Monitor by clicking on "Close Monitor" button Monitor stopped' , async t => {
38
37
//Run monitor
39
38
await monitorPage . startMonitor ( ) ;
40
39
//Close Monitor
47
46
await t . expect ( monitorPage . startMonitorButton . visible ) . ok ( 'Start profiler button' ) ;
48
47
} ) ;
49
48
test
50
- . meta ( { rte : rte . standalone } )
51
- ( 'Verify that Monitor is stopped when user clicks on "Stop" button' , async t => {
49
+ . meta ( { rte : rte . standalone } ) ( 'Verify that Monitor is stopped when user clicks on "Stop" button' , async t => {
52
50
//Run monitor
53
51
await monitorPage . startMonitor ( ) ;
54
52
//Click on Stop Monitor button
59
57
await t . expect ( monitorPage . monitorIsStoppedText . nextSibling ( ) . exists ) . notOk ( 'No commands in monitor' ) ;
60
58
} ) ;
61
59
test
62
- . meta ( { rte : rte . standalone } )
63
- ( 'Verify that when user refreshes the page the list of results in Monitor is not saved' , async t => {
60
+ . meta ( { rte : rte . standalone } ) ( 'Verify that when user refreshes the page the list of results in Monitor is not saved' , async t => {
64
61
//Run monitor
65
62
await monitorPage . startMonitor ( ) ;
66
63
//Refresh the page
72
69
await t . expect ( monitorPage . monitorWarningMessage . exists ) . ok ( 'Warning message in monitor' ) ;
73
70
} ) ;
74
71
test
75
- . meta ( { rte : rte . standalone } )
76
- ( 'Verify that when user clicks on "Clear" button in Monitor, all commands history is removed' , async t => {
72
+ . meta ( { rte : rte . standalone } ) ( 'Verify that when user clicks on "Clear" button in Monitor, all commands history is removed' , async t => {
77
73
//Run monitor
78
74
await monitorPage . startMonitor ( ) ;
79
75
//Stop Monitor
99
95
await settingsPage . changeKeysToScanValue ( '10000' ) ;
100
96
//Delete database
101
97
await deleteDatabase ( ossStandaloneBigConfig . databaseName ) ;
102
- } )
103
- ( 'Verify that user can see monitor results in high DB load' , async t => {
98
+ } ) ( 'Verify that user can see monitor results in high DB load' , async t => {
104
99
//Run monitor
105
100
await monitorPage . startMonitor ( ) ;
106
101
//Search by not existed key pattern
107
- await browserPage . searchByKeyName ( `${ chance . string ( { length :10 } ) } *` ) ;
102
+ await browserPage . searchByKeyName ( `${ chance . string ( { length : 10 } ) } *` ) ;
108
103
//Check that the last child is updated
109
104
for ( let i = 0 ; i <= 10 ; i ++ ) {
110
105
const previousTimestamp = await monitorPage . monitorCommandLineTimestamp . nth ( - 1 ) . textContent ;
@@ -116,16 +111,13 @@ test
116
111
test
117
112
. meta ( { rte : rte . standalone } )
118
113
. before ( async t => {
119
- console . log ( 'Before acceptLicenseTermsAndAddDatabase function' ) ;
120
114
await acceptLicenseTermsAndAddDatabase ( ossStandaloneConfig , ossStandaloneConfig . databaseName ) ;
121
- console . log ( 'After acceptLicenseTermsAndAddDatabase function' ) ;
122
115
await cliPage . sendCommandInCli ( 'acl setuser noperm nopass on +@all ~* -monitor' ) ;
123
116
//Check command result in CLI
124
117
await t . click ( cliPage . cliExpandButton ) ;
125
118
await t . expect ( cliPage . cliOutputResponseSuccess . textContent ) . eql ( '"OK"' , 'Command from autocomplete was found & executed' ) ;
126
119
await t . click ( cliPage . cliCollapseButton ) ;
127
120
await deleteDatabase ( ossStandaloneConfig . databaseName ) ;
128
- console . log ( 'Before addNewStandaloneDatabase function with no permissions' ) ;
129
121
await addNewStandaloneDatabase ( ossStandaloneNoPermissionsConfig ) ;
130
122
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneNoPermissionsConfig . databaseName ) ;
131
123
} )
134
126
await cliPage . sendCommandInCli ( 'acl DELUSER noperm' ) ;
135
127
//Delete database
136
128
await deleteDatabase ( ossStandaloneNoPermissionsConfig . databaseName ) ;
137
- } )
138
- ( 'Verify that if user doesn\'t have permissions to run monitor, user can see error message' , async t => {
129
+ } ) ( 'Verify that if user doesn\'t have permissions to run monitor, user can see error message' , async t => {
139
130
//Expand the Profiler
140
131
await t . click ( monitorPage . expandMonitor ) ;
141
132
//Click on run monitor button
0 commit comments