Skip to content

Commit c5d62a4

Browse files
committed
test(e2e): temporary change the way we navigate to the vector search page
re #RI-7275
1 parent 3df218a commit c5d62a4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/playwright/pageObjects/pages/vector-search/vector-search-page.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ export class VectorSearchPage extends BasePage {
194194

195195
async navigateToVectorSearchPage({
196196
forceOnboarding = false,
197-
}: { forceOnboarding?: boolean } = {}): Promise<void> {
197+
}: {
198+
forceOnboarding?: boolean
199+
} = {}): Promise<void> {
198200
// Toggle the visibility of the onboarding screen, based on the locaStorage flag
199201
await this.page.evaluate((vectorSearchOnboarding: boolean) => {
200202
localStorage.setItem(
@@ -203,7 +205,14 @@ export class VectorSearchPage extends BasePage {
203205
)
204206
}, forceOnboarding)
205207

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`)
207216

208217
if (forceOnboarding) {
209218
await this.waitForLocatorVisible(this.onboardingContainer)

0 commit comments

Comments
 (0)