@@ -23,7 +23,6 @@ fixture `Open insights panel`
23
23
await databaseHelper . acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneConfig ) ;
24
24
} )
25
25
. afterEach ( async ( ) => {
26
- // Clear and delete database
27
26
await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneConfig ) ;
28
27
} ) ;
29
28
test ( 'Verify Explore redis tab is opened from empty screens' , async t => {
@@ -37,15 +36,13 @@ test('Verify Explore redis tab is opened from empty screens', async t => {
37
36
await t . expect ( await browserPage . InsightsPanel . getActiveTabName ( ) ) . eql ( ExploreTabs . Explore ) ;
38
37
} ) ;
39
38
test
40
- . before ( async t => {
39
+ . before ( async ( ) => {
41
40
await databaseHelper . acceptLicenseTerms ( ) ;
42
41
await databaseAPIRequests . deleteAllDatabasesApi ( ) ;
43
42
await databaseAPIRequests . addNewStandaloneDatabaseApi ( ossStandaloneV5Config ) ;
44
43
await databaseAPIRequests . addNewStandaloneDatabaseApi ( ossStandaloneConfig , true ) ;
45
44
await browserPage . reloadPage ( ) ;
46
-
47
45
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneV5Config . databaseName ) ;
48
-
49
46
} )
50
47
. after ( async ( ) => {
51
48
await databaseAPIRequests . deleteAllDatabasesApi ( ) ;
54
51
await t . click ( browserPage . closeDialogButton ) ;
55
52
await t . click ( browserPage . NavigationPanel . myRedisDBButton ) ;
56
53
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneConfig . databaseName ) ;
57
- await t . expect ( browserPage . InsightsPanel . sidePanel . exists ) . ok ( 'the panel is opened' ) ;
54
+ await t . expect ( browserPage . InsightsPanel . sidePanel . exists ) . ok ( 'Insights panel is not opened' ) ;
58
55
await t . expect ( await browserPage . InsightsPanel . existsCompatibilityPopover . textContent ) . contains ( 'Search and query capability' , 'popover is not displayed' ) ;
59
56
const tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Explore ) ;
60
57
await t . expect ( tab . preselectArea . textContent ) . contains ( 'How To Query Your Data' , 'the tutorial is incorrect' ) ;
66
63
67
64
await t . click ( browserPage . NavigationPanel . myRedisDBButton ) ;
68
65
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneConfig . databaseName ) ;
69
- await t . expect ( browserPage . InsightsPanel . sidePanel . exists ) . ok ( 'the panel is opened' ) ;
66
+ await t . expect ( browserPage . InsightsPanel . sidePanel . exists ) . ok ( 'Insights panel is not opened' ) ;
70
67
await t . expect ( await browserPage . InsightsPanel . existsCompatibilityPopover . textContent ) . contains ( 'Time series data' , 'popover is not displayed' ) ;
71
68
await t . expect ( tab . preselectArea . textContent ) . contains ( 'Time Series' , 'the tutorial is incorrect' ) ;
72
69
} ) ;
73
70
74
71
test
75
- . before ( async t => {
72
+ . before ( async ( ) => {
76
73
await databaseAPIRequests . deleteAllDatabasesApi ( ) ;
77
74
await databaseHelper . acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneConfig ) ;
78
75
} )
98
95
tab = await welcomePage . InsightsPanel . setActiveTab ( ExploreTabs . Explore ) ;
99
96
await t . expect ( tab . preselectArea . textContent ) . contains ( welcomeTutorial , 'the tutorial is incorrect' ) ;
100
97
} ) ;
98
+ test ( 'Verify that user can open Explore tab into Insights panel by clicking on Explore Redis button' , async t => {
99
+ await t . click ( browserPage . exploreRedisBtn ) ;
100
+ await t . expect ( browserPage . InsightsPanel . sidePanel . exists ) . ok ( 'Insights panel is not opened' ) ;
101
+ await t . expect ( await browserPage . InsightsPanel . getActiveTabName ( ) ) . eql ( ExploreTabs . Explore ) ;
102
+ await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
103
+ await browserPage . InsightsPanel . togglePanel ( false ) ;
104
+ await t . click ( browserPage . exploreRedisBtn ) ;
105
+ await t . expect ( browserPage . InsightsPanel . sidePanel . exists ) . ok ( 'Insights panel is not opened' ) ;
106
+ await t . expect ( await browserPage . InsightsPanel . getActiveTabName ( ) ) . eql ( ExploreTabs . Explore ) ;
107
+ } ) ;
0 commit comments