@@ -329,7 +329,8 @@ describe('Connection string', function () {
329329 } ) ;
330330
331331 it ( 'can connect to an Atlas replicaset without srv' , async function ( ) {
332- if ( ! hasAtlasEnvironmentVariables ( ) ) {
332+ if ( ! hasAtlasEnvironmentVariables ( ) || TEST_COMPASS_WEB ) {
333+ // Skip this on web because it doesn't support saslprep.
333334 return this . skip ( ) ;
334335 }
335336
@@ -340,15 +341,13 @@ describe('Connection string', function () {
340341
341342 const connectionString = await resolveMongodbSrv ( withSRV ) ;
342343 await browser . connectWithConnectionString ( connectionString ) ;
343- if ( ! TEST_COMPASS_WEB ) {
344- const result = await browser . shellEval (
345- connectionNameFromString ( connectionString ) ,
346- 'db.runCommand({ connectionStatus: 1 })' ,
347- true
348- ) ;
349- assertNotError ( result ) ;
350- expect ( result ) . to . have . property ( 'ok' , 1 ) ;
351- }
344+ const result = await browser . shellEval (
345+ connectionNameFromString ( connectionString ) ,
346+ 'db.runCommand({ connectionStatus: 1 })' ,
347+ true
348+ ) ;
349+ assertNotError ( result ) ;
350+ expect ( result ) . to . have . property ( 'ok' , 1 ) ;
352351 } ) ;
353352
354353 it ( 'can connect to an Atlas cluster with a direct connection' , async function ( ) {
0 commit comments