(frontend) add tabs for mail domain page (#466)

Currently, it is complicated to understand the navigation between mailbox
management and role management for an email domain.
This is why we add tabs with explicit naming
This commit is contained in:
Nathan Panchout
2024-10-23 17:45:42 +02:00
committed by GitHub
parent 30229e11f9
commit a08689a64d
16 changed files with 360 additions and 183 deletions

View File

@@ -211,6 +211,19 @@ test.describe('Mail domain', () => {
},
];
test('checks if all tabs are visible', async ({ page }) => {
await interceptCommonApiCalls(page, mailDomainsFixtures);
await clickOnMailDomainsNavButton(page);
await assertMailDomainUpperElementsAreVisible(page);
await expect(
page.getByLabel('Go to accesses management'),
).toBeVisible();
await expect(page.getByLabel('Go to mailbox management')).toBeVisible();
});
test('checks all the elements are visible when domain exist but contains no mailboxes', async ({
page,
}) => {