Skip to content

Commit 807cb4c

Browse files
4manasamashm
andauthored
Reduced size of portal images (#458)
Co-authored-by: mashm <[email protected]>
1 parent a3e3e54 commit 807cb4c

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

assets/img/cablechat.jpg

43.6 KB
Loading

assets/img/cablechat.png

-351 KB
Binary file not shown.

assets/img/cableinfo.jpg

48.7 KB
Loading

assets/img/cableinfo.png

-2.19 MB
Binary file not shown.

src/samples/Embedded/EmbeddedTopLevel/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ export default function EmbeddedTopLevel() {
491491
</div>
492492
</div>
493493
<div className={classes.resolutionPartAccompanimentRight}>
494-
<img src='assets/img/cablechat.png' className={classes.pegaPartAccompanimentImage} />
494+
<img src='assets/img/cablechat.jpg' className={classes.pegaPartAccompanimentImage} />
495495
<br />
496496
<button className={classes.resolutionButton}>Chat Now</button>
497497
</div>
@@ -520,7 +520,7 @@ export default function EmbeddedTopLevel() {
520520
<div className={classes.pegaPartAccompaniment}>
521521
<div className={classes.pegaPartAccompanimentText}>We need to gather a little information about you.</div>
522522
<div>
523-
<img src='assets/img/cableinfo.png' className={classes.pegaPartAccompanimentImage} />
523+
<img src='assets/img/cableinfo.jpg' className={classes.pegaPartAccompanimentImage} />
524524
</div>
525525
</div>
526526
</div>

tests/e2e/Digv2/FormFields/Attachment.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

tests/e2e/MediaCo/portal.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ test.describe('E2E test', () => {
103103
await sendToMgr.check();
104104

105105
const currentCaseID = await page.locator('div[id="current-caseID"]').textContent();
106-
const filePath = path.join(__dirname, '../../../assets/img/cableinfo.png');
106+
const filePath = path.join(__dirname, '../../../assets/img/cableinfo.jpg');
107107

108108
const attachmentID = await page.locator('div[id="attachment-ID"]').textContent();
109109
await page.setInputFiles(`#${attachmentID}`, filePath);

0 commit comments

Comments
 (0)