File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
tests/playwright/pageObjects/pages/vector-search Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,9 @@ export class VectorSearchPage extends BasePage {
194
194
195
195
async navigateToVectorSearchPage ( {
196
196
forceOnboarding = false ,
197
- } : { forceOnboarding ?: boolean } = { } ) : Promise < void > {
197
+ } : {
198
+ forceOnboarding ?: boolean
199
+ } = { } ) : Promise < void > {
198
200
// Toggle the visibility of the onboarding screen, based on the locaStorage flag
199
201
await this . page . evaluate ( ( vectorSearchOnboarding : boolean ) => {
200
202
localStorage . setItem (
@@ -203,7 +205,14 @@ export class VectorSearchPage extends BasePage {
203
205
)
204
206
} , forceOnboarding )
205
207
206
- await this . searchTab . getByRole ( 'paragraph' ) . click ( )
208
+ // Note: Temporray disable the navigation to the vector search page through the search tab because of a feature flag
209
+ // await this.searchTab.getByRole('paragraph').click()
210
+
211
+ // Note: Temporary get the instance ID from the URL and navigate to the vector search page directly
212
+ const url = await this . page . url ( ) . split ( '/' )
213
+ const instanceId = url [ url . length - 2 ]
214
+
215
+ await this . navigateTo ( `/${ instanceId } /vector-search` )
207
216
208
217
if ( forceOnboarding ) {
209
218
await this . waitForLocatorVisible ( this . onboardingContainer )
You can’t perform that action at this time.
0 commit comments