@@ -46,9 +46,7 @@ test.describe('Existing User Read-Only Flow', () => {
4646 } else {
4747 // Check for empty state message (in main content area)
4848 await expect (
49- page
50- . locator ( 'main text=No threads found, [role="main"] text=No threads found' )
51- . first ( ) ,
49+ page . locator ( 'main text=No threads found, [role="main"] text=No threads found' ) . first ( ) ,
5250 ) . toBeVisible ( )
5351 }
5452 } )
@@ -69,9 +67,9 @@ test.describe('Existing User Read-Only Flow', () => {
6967 } )
7068
7169 // Verify thread content is visible (Message component or article)
72- await expect (
73- page . locator ( 'article, [data-testid="message"], .message, main' ) . first ( ) ,
74- ) . toBeVisible ( { timeout : 5000 } )
70+ await expect ( page . locator ( 'article, [data-testid="message"], .message, main' ) . first ( ) ) . toBeVisible ( {
71+ timeout : 5000 ,
72+ } )
7573 }
7674 } )
7775
@@ -89,16 +87,12 @@ test.describe('Existing User Read-Only Flow', () => {
8987
9088 // Verify email body is visible
9189 // The exact selector depends on your Message component
92- const messageBody = page
93- . locator ( '[data-testid="message-body"], .message-body, article, main' )
94- . first ( )
90+ const messageBody = page . locator ( '[data-testid="message-body"], .message-body, article, main' ) . first ( )
9591 await expect ( messageBody ) . toBeVisible ( { timeout : 5000 } )
9692
9793 // Check for attachments if they exist
9894 // This is optional - only check if attachments are present
99- const attachments = page . locator (
100- '[data-testid="attachment"], .attachment, a[href*="attachment"]' ,
101- )
95+ const attachments = page . locator ( '[data-testid="attachment"], .attachment, a[href*="attachment"]' )
10296 const attachmentCount = await attachments . count ( )
10397 if ( attachmentCount > 0 ) {
10498 await expect ( attachments . first ( ) ) . toBeVisible ( )
@@ -180,9 +174,7 @@ test.describe('Existing User Read-Only Flow', () => {
180174
181175 if ( bannerVisible ) {
182176 // eslint-disable-next-line no-console
183- console . log (
184- 'WebSocket connection banner is visible - connection may not be established' ,
185- )
177+ console . log ( 'WebSocket connection banner is visible - connection may not be established' )
186178 // eslint-disable-next-line no-console
187179 console . log (
188180 'Console messages:' ,
@@ -216,9 +208,7 @@ test.describe('Existing User Read-Only Flow', () => {
216208
217209 if ( response . status !== 204 ) {
218210 // eslint-disable-next-line no-console
219- console . log (
220- `Test endpoint returned status ${ String ( response . status ) } : ${ response . statusText } ` ,
221- )
211+ console . log ( `Test endpoint returned status ${ String ( response . status ) } : ${ response . statusText } ` )
222212 }
223213
224214 // Wait for the new subject to appear without reloading the page.
@@ -233,9 +223,7 @@ test.describe('Existing User Read-Only Flow', () => {
233223 expect ( updatedSubjects ) . not . toEqual ( initialSubjects )
234224 } )
235225
236- test ( 'clicking email navigates to thread with correct URL and displays body' , async ( {
237- page,
238- } ) => {
226+ test ( 'clicking email navigates to thread with correct URL and displays body' , async ( { page } ) => {
239227 const result = await setupInboxTest ( page )
240228 if ( ! result ) {
241229 // Skip if redirected to settings
@@ -277,9 +265,7 @@ test.describe('Existing User Read-Only Flow', () => {
277265
278266 // Verify email body/content is visible
279267 // Message component should render the email body
280- const messageContent = page
281- . locator ( 'article, [data-testid="message"], .message, main div.border-b' )
282- . first ( )
268+ const messageContent = page . locator ( 'article, [data-testid="message"], .message, main div.border-b' ) . first ( )
283269 await expect ( messageContent ) . toBeVisible ( { timeout : 5000 } )
284270
285271 // Verify sender is displayed in the message
0 commit comments