@@ -131,12 +131,29 @@ export const test = base.extend<{
131
131
132
132
await test . step ( "Configure the environment" , async ( ) => {
133
133
if ( vaultHostURL ) {
134
- const extensionURL = `chrome-extension://${ extensionId } /popup/index.html?uilocation=popout#/environment ` ;
134
+ const extensionURL = `chrome-extension://${ extensionId } /popup/index.html#/login ` ;
135
135
await testPage . goto ( extensionURL , defaultGotoOptions ) ;
136
- const baseUrlInput = await testPage . locator ( "input#baseUrl" ) ;
136
+
137
+ const environmentSelectorMenuButton = await testPage
138
+ . locator ( "environment-selector" )
139
+ . getByRole ( "button" ) ;
140
+
141
+ await environmentSelectorMenuButton . waitFor ( defaultWaitForOptions ) ;
142
+ await environmentSelectorMenuButton . click ( ) ;
143
+
144
+ const environmentSelectorMenu = await testPage . getByTestId (
145
+ "environment-selector-dialog-item-self-hosted" ,
146
+ ) ;
147
+
148
+ await environmentSelectorMenu . waitFor ( defaultWaitForOptions ) ;
149
+ await environmentSelectorMenu . click ( ) ;
150
+
151
+ const baseUrlInput = await testPage . locator (
152
+ "input#self_hosted_env_settings_form_input_base_url" ,
153
+ ) ;
137
154
await baseUrlInput . waitFor ( defaultWaitForOptions ) ;
138
155
139
- await testPage . fill ( "input#baseUrl" , vaultHostURL ) ;
156
+ await baseUrlInput . fill ( vaultHostURL ) ;
140
157
141
158
await testPage . screenshot ( {
142
159
fullPage : true ,
@@ -147,12 +164,7 @@ export const test = base.extend<{
147
164
) ,
148
165
} ) ;
149
166
150
- const serverConfigContent = await testPage . locator ( "#baseUrlHelp" ) ;
151
- await testPage . click ( "button[type='submit']" ) ;
152
- await serverConfigContent . waitFor ( {
153
- ...defaultWaitForOptions ,
154
- state : "detached" ,
155
- } ) ;
167
+ await testPage . click ( "bit-dialog button[type='submit']" ) ;
156
168
}
157
169
} ) ;
158
170
@@ -175,7 +187,7 @@ export const test = base.extend<{
175
187
await loginButton . waitFor ( defaultWaitForOptions ) ;
176
188
await loginButton . click ( ) ;
177
189
178
- const extensionURL = `chrome-extension://${ extensionId } /popup/index.html?uilocation=popout #/tabs/vault` ;
190
+ const extensionURL = `chrome-extension://${ extensionId } /popup/index.html#/tabs/vault` ;
179
191
await testPage . waitForURL ( extensionURL , defaultGotoOptions ) ;
180
192
// Legacy UI
181
193
const vaultFilterBox = await testPage
0 commit comments