@@ -106,9 +106,8 @@ describe("Anonymous users can only access public resources", () => {
106106
107107 // Log out and search for the projects as an anonymous user
108108 cy . session ( anonymousSession . id , anonymousSession . setup ) ;
109- cy . visit ( "/v2 " ) ;
109+ cy . visit ( "/search " ) ;
110110 cy . getDataCy ( "navbar-login" ) . should ( "be.visible" ) ;
111- cy . getDataCy ( "navbar-link-search" ) . click ( ) ;
112111 cy . intercept (
113112 new RegExp ( `/api/data/search/query\\?(?:.*&)*q=.*?${ randomString } .*` ) ,
114113 ) . as ( "searchQuery" ) ;
@@ -160,9 +159,8 @@ describe("Anonymous users can only access public resources", () => {
160159
161160 // Verify the previously private project is now publicly visible
162161 cy . session ( anonymousSession . id , anonymousSession . setup ) ;
163- cy . visit ( "/v2 " ) ;
162+ cy . visit ( "/search " ) ;
164163 cy . getDataCy ( "navbar-login" ) . should ( "be.visible" ) ;
165- cy . getDataCy ( "navbar-link-search" ) . click ( ) ;
166164 cy . getDataCy ( "search-input" ) . clear ( ) . type ( randomString ) ;
167165 cy . getDataCy ( "search-button" ) . click ( ) ;
168166 cy . wait ( "@searchQuery" ) ;
@@ -200,9 +198,8 @@ describe("Anonymous users can only access public resources", () => {
200198
201199 // Verify the previously public project is now invisible
202200 cy . session ( anonymousSession . id , anonymousSession . setup ) ;
203- cy . visit ( "/v2 " ) ;
201+ cy . visit ( "/search " ) ;
204202 cy . getDataCy ( "navbar-login" ) . should ( "be.visible" ) ;
205- cy . getDataCy ( "navbar-link-search" ) . click ( ) ;
206203 cy . getDataCy ( "search-input" ) . clear ( ) . type ( randomString ) ;
207204 cy . getDataCy ( "search-button" ) . click ( ) ;
208205 cy . wait ( "@searchQuery" ) ;
0 commit comments