Skip to content

Commit

Permalink
Reduce assets's size as done in SDK-R (#166)
Browse files Browse the repository at this point in the history
Co-authored-by: Vishal <[email protected]>
  • Loading branch information
vishalshrm539 and Vishal authored Jun 11, 2024
1 parent 9276236 commit ba68081
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="mc-info-banner">
<div class="mc-info-banner-text">We need to gather a little information about you.</div>
<div>
<img src="constellation/assets/cableinfo.png" class="mc-info-image" />
<img src="constellation/assets/cableinfo.jpg" class="mc-info-image" />
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
</div>
<div>
<img src="constellation/assets/cablechat.png" class="mc-chat-image" />
<img src="constellation/assets/cablechat.jpg" class="mc-chat-image" />
<button class="mc-chat-button">Chat Now</button>
</div>
</div>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed projects/angular-test-app/src/assets/cablechat.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed projects/angular-test-app/src/assets/cableinfo.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ test.describe('E2E test', () => {
await selectedSubCategory.click();
await page.getByRole('option', { name: 'Required' }).click();

const cableChatFilePath = path.join(__dirname, '../../../../src/assets/cablechat.png');
const cableInfoFilePath = path.join(__dirname, '../../../../src/assets/cableinfo.png');
const cableChatFilePath = path.join(__dirname, '../../../../src/assets/cablechat.jpg');
const cableInfoFilePath = path.join(__dirname, '../../../../src/assets/cableinfo.jpg');
const zeroBytesFilePath = path.join(__dirname, '../../../../src/assets/zerobytes');

// Checking required attachment field
Expand Down Expand Up @@ -89,8 +89,8 @@ test.describe('E2E test', () => {
const singleAttachment = page.locator('div[id="attachment-container"]');
await expect(singleAttachment.locator('button:has-text("Upload file")')).toBeVisible();
await page.setInputFiles(`#Attachment`, cableChatFilePath);
await expect(page.locator('div >> text="cablechat.png"')).toBeVisible();
await expect(page.locator('span:has-text("Upload file")')).toBeHidden();
await expect(page.locator('div >> text="cablechat.jpg"')).toBeVisible();
await expect(page.locator('span:has-text("Choose a file")')).toBeHidden();

await page.locator('button[id="delete-attachment"]').click();

Expand All @@ -112,8 +112,8 @@ test.describe('E2E test', () => {
)
]);

await expect(page.locator('div >> text="cableinfo.png"')).toBeVisible();
await expect(page.locator('div >> text="cablechat.png"')).toBeVisible();
await expect(page.locator('div >> text="cableinfo.jpg"')).toBeVisible();
await expect(page.locator('div >> text="cablechat.jpg"')).toBeVisible();

await expect(multipleAttachment.locator('button:has-text("Upload files")')).toBeVisible();

Expand All @@ -136,8 +136,8 @@ test.describe('E2E test', () => {

/** Delete attachment */
await menuSelector.locator('button >> text="Delete"').click();
await expect(page.locator('div >> text="cableinfo.png"')).toBeVisible();
await expect(page.locator('div >> text="cablechat.png"')).toBeHidden();
await expect(page.locator('div >> text="cableinfo.jpg"')).toBeVisible();
await expect(page.locator('div >> text="cablechat.jpg"')).toBeHidden();
}, 10000);
});

Expand Down
2 changes: 1 addition & 1 deletion projects/angular-test-app/tests/e2e/MediaCo/portal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ test.describe('E2E test', () => {
await sendToMgr.click();

const currentCaseID = await page.locator('div[id="current-caseID"]').textContent();
const filePath = path.join(__dirname, '../../../src/assets/cableinfo.png');
const filePath = path.join(__dirname, '../../../src/assets/cableinfo.jpg');
const attachInputId = await page.locator('div[id="attachment-container"] >> input').getAttribute('id');
await page.setInputFiles(`#${attachInputId}`, filePath);

Expand Down

0 comments on commit ba68081

Please sign in to comment.