Skip to content

Commit

Permalink
Merge branch 'develop' into fix/appsTyping
Browse files Browse the repository at this point in the history
  • Loading branch information
Dnouv authored Sep 12, 2023
2 parents b3c28f4 + 1000b9b commit a0453c4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/young-trains-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': minor
---

Fixed the issue of apps icon uneven alignment in case of missing icons inside message composer toolbar & message toolbar menu.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const MessageActionMenu = ({ options, onChangeMenuVisibility, ...props }: Messag
data-qa-type='message-action'
data-qa-id={option.id}
role={option.role ? option.role : 'button'}
gap={!option.icon && option.type === 'apps'}
/>
))}
{index !== arr.length - 1 && <OptionDivider />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const ActionsToolbarDropdown = ({ isRecording, rid, tmid, actions, ...props }: A
chat: chatContext,
})
}
gap={!item.icon}
>
{item.icon && <OptionIcon name={item.icon as ComponentProps<typeof OptionIcon>['name']} />}
<OptionContent>{item.name}</OptionContent>
Expand Down
12 changes: 6 additions & 6 deletions apps/meteor/tests/e2e/homepage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test.describe.serial('homepage', () => {
await adminPage.close();
});

test('layout', async () => {
test('expect customize button and all cards to be visible', async () => {
await test.step('expect show customize button', async () => {
await expect(adminPage.locator('role=button[name="Customize"]')).toBeVisible();
});
Expand All @@ -47,7 +47,7 @@ test.describe.serial('homepage', () => {
await expect((await api.post('/settings/Layout_Home_Body', { value: '' })).status()).toBe(200);
});

test('layout', async () => {
test('visibility and button functionality in custom body with empty custom content', async () => {
await test.step('expect default value in custom body', async () => {
await expect(
adminPage.locator('role=status[name="Admins may insert content html to be rendered in this white space."]'),
Expand All @@ -70,7 +70,7 @@ test.describe.serial('homepage', () => {
await expect((await api.post('/settings/Layout_Home_Body', { value: 'Hello admin' })).status()).toBe(200);
});

test('layout', async () => {
test('visibility and button functionality in custom body with custom content', async () => {
await test.step('expect custom body to be visible', async () => {
await expect(adminPage.locator('role=status[name="Hello admin"]')).toBeVisible();
});
Expand Down Expand Up @@ -122,7 +122,7 @@ test.describe.serial('homepage', () => {
await regularUserPage.close();
});

test('layout', async () => {
test('the option customize is not be active', async () => {
await test.step('expect to not show customize button', async () => {
await expect(regularUserPage.locator('role=button[name="Customize"]')).not.toBeVisible();
});
Expand Down Expand Up @@ -162,7 +162,7 @@ test.describe.serial('homepage', () => {
expect((await api.post('/settings/Layout_Home_Title', { value: 'Home' })).status()).toBe(200);
});

test('layout', async () => {
test('expect welcome text and header text to be correct', async () => {
await test.step('expect welcome text to be NewSiteName', async () => {
await expect(regularUserPage.locator('role=heading[name="Welcome to NewSiteName"]')).toBeVisible();
});
Expand Down Expand Up @@ -202,7 +202,7 @@ test.describe.serial('homepage', () => {
expect((await api.post('/settings/Layout_Custom_Body_Only', { value: false })).status()).toBe(200);
});

test('layout', async () => {
test('expect default layout not be visible and custom body visible', async () => {
await test.step('expect default layout to not be visible', async () => {
await expect(regularUserPage.locator('[data-qa-id="homepage-welcome-text"]')).not.toBeVisible();
});
Expand Down

0 comments on commit a0453c4

Please sign in to comment.