File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
tests/playwright/pageObjects/pages/vector-search Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,17 @@ export class VectorSearchPage extends BasePage {
133
133
this . startWizardButton = page . getByTestId ( 'start-wizard-button' )
134
134
}
135
135
136
- async navigateToVectorSearchPage ( ) : Promise < void > {
136
+ async navigateToVectorSearchPage ( {
137
+ forceOnboarding = false ,
138
+ } : { forceOnboarding ?: boolean } = { } ) : Promise < void > {
139
+ // Toggle the visibility of the onboarding screen, based on the locaStorage flag
140
+ await this . page . evaluate ( ( vectorSearchOnboarding : boolean ) => {
141
+ localStorage . setItem (
142
+ 'vectorSearchOnboarding' , // BrowserStorageItem.vectorSearchOnboarding,
143
+ ( ! vectorSearchOnboarding ) . toString ( ) ,
144
+ )
145
+ } , forceOnboarding )
146
+
137
147
await this . searchTab . getByRole ( 'paragraph' ) . click ( )
138
148
await this . waitForLocatorVisible ( this . vectorSearchPage )
139
149
}
You can’t perform that action at this time.
0 commit comments