@@ -38,8 +38,8 @@ test.describe('E2E test', () => {
3838 await selectedSubCategory . click ( ) ;
3939 await page . getByRole ( 'option' , { name : 'Required' } ) . click ( ) ;
4040
41- const filePath = path . join ( __dirname , '../../../../assets/img/cableinfo.png ' ) ;
42- const filePath2 = path . join ( __dirname , '../../../../assets/img/cablechat.png ' ) ;
41+ const filePath = path . join ( __dirname , '../../../../assets/img/cableinfo.jpg ' ) ;
42+ const filePath2 = path . join ( __dirname , '../../../../assets/img/cablechat.jpg ' ) ;
4343 const zeroBytesFile = path . join ( __dirname , '../../../../assets/img/Zerobytes' ) ;
4444
4545 // Checking required attachment field
@@ -80,7 +80,7 @@ test.describe('E2E test', () => {
8080 const singleAttachment = page . locator ( 'label[for="Attachment"]' ) ;
8181 await expect ( singleAttachment . locator ( 'span[role="button"]:has-text("Choose a file")' ) ) . toBeVisible ( ) ;
8282 await page . setInputFiles ( `#Attachment` , filePath ) ;
83- await expect ( page . locator ( 'div >> text="cableinfo.png "' ) ) . toBeVisible ( ) ;
83+ await expect ( page . locator ( 'div >> text="cableinfo.jpg "' ) ) . toBeVisible ( ) ;
8484 await expect ( page . locator ( 'span:has-text("Choose a file")' ) ) . toBeHidden ( ) ;
8585
8686 await page . locator ( 'button[aria-label="Delete Attachment"]' ) . click ( ) ;
@@ -104,8 +104,8 @@ test.describe('E2E test', () => {
104104 )
105105 ] ) ;
106106
107- await expect ( page . locator ( 'div >> text="cableinfo.png "' ) ) . toBeVisible ( ) ;
108- await expect ( page . locator ( 'div >> text="cablechat.png "' ) ) . toBeVisible ( ) ;
107+ await expect ( page . locator ( 'div >> text="cableinfo.jpg "' ) ) . toBeVisible ( ) ;
108+ await expect ( page . locator ( 'div >> text="cablechat.jpg "' ) ) . toBeVisible ( ) ;
109109
110110 await expect ( page . locator ( 'div >> text="Uploaded successfully" >> nth=0' ) ) . toBeVisible ( ) ;
111111
@@ -131,8 +131,8 @@ test.describe('E2E test', () => {
131131
132132 /** Delete attachment */
133133 await menuSelector . locator ( 'li >> text="Delete"' ) . click ( ) ;
134- await expect ( page . locator ( 'div >> text="cableinfo.png "' ) ) . toBeVisible ( ) ;
135- await expect ( page . locator ( 'div >> text="cablechat.png "' ) ) . toBeHidden ( ) ;
134+ await expect ( page . locator ( 'div >> text="cableinfo.jpg "' ) ) . toBeVisible ( ) ;
135+ await expect ( page . locator ( 'div >> text="cablechat.jpg "' ) ) . toBeHidden ( ) ;
136136 } , 10000 ) ;
137137} ) ;
138138
0 commit comments