File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ export const AppSettingsContextProvider = (
3232
3333 const [ agent , setAgent ] = useCurrentAgent ( ) ;
3434 const [ baseURL , setBaseURL ] = useServerURL ( ) ;
35- const [ drive , innerSetDrive ] = useLocalStorage ( 'drive' , baseURL ) ;
35+ // By default, we want to use the current URL's origin with a trailing slash.
36+ const [ drive , innerSetDrive ] = useLocalStorage ( 'drive' , baseURL + '/' ) ;
3637
3738 function setDrive ( newDrive : string ) {
3839 const url = new URL ( newDrive ) ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ test.describe('data-browser', async () => {
4646 await page . goto ( frontEndUrl ) ;
4747 // Sometimes we run the test server on a different port, but we should
4848 // only change the drive if it is non-default.
49- if ( serverUrl !== 'http://localhost:9883' ) {
49+ if ( serverUrl !== defaultDevServer ) {
5050 await changeDrive ( serverUrl , page ) ;
5151 }
5252 await expect ( page . locator ( currentDriveTitle ) ) . toBeVisible ( ) ;
You can’t perform that action at this time.
0 commit comments