🎨(front) fix linter issues with --fix

Simply run the lint command with "autofix" to format files.
This commit is contained in:
Quentin BEY
2025-05-06 10:17:17 +02:00
parent e274c309cd
commit 5544a40f5f
5 changed files with 12 additions and 36 deletions

View File

@@ -5,11 +5,10 @@ export const keyCloakSignIn = async (
browserName: string, browserName: string,
accountName?: string, accountName?: string,
) => { ) => {
const title = await page.locator('h1').first().textContent({ const title = await page.locator('h1').first().textContent({
timeout: 5000, timeout: 5000,
}); });
const username = accountName const username = accountName
? `e2e.${accountName}` ? `e2e.${accountName}`
: `user-e2e-${browserName}`; : `user-e2e-${browserName}`;

View File

@@ -47,10 +47,7 @@ test.describe('Config', () => {
await expect(page).toHaveURL(/mail-domains\//); await expect(page).toHaveURL(/mail-domains\//);
await expect( await expect(page.getByText('Areas of the organization')).toBeVisible();
page
.getByText('Areas of the organization')
).toBeVisible();
}); });
// test('it checks that the user abilities display teams', async ({ // test('it checks that the user abilities display teams', async ({

View File

@@ -13,8 +13,7 @@ test.describe('When a commune, domain is created on first login via ProConnect',
}) => { }) => {
const menu = page.locator('menu').first(); const menu = page.locator('menu').first();
await menu.getByLabel(`Mail Domains button`) await menu.getByLabel(`Mail Domains button`).click();
.click();
await expect(page).toHaveURL(/mail-domains\//); await expect(page).toHaveURL(/mail-domains\//);
await expect( await expect(
page.getByLabel('Areas of the organization', { exact: true }), page.getByLabel('Areas of the organization', { exact: true }),

View File

@@ -143,7 +143,6 @@ const navigateToMailboxCreationFormForMailDomainFr = async (
}; };
test.describe('Mail domain create mailbox', () => { test.describe('Mail domain create mailbox', () => {
test('checks user can New mail address when he has post ability', async ({ test('checks user can New mail address when he has post ability', async ({
page, page,
browserName, browserName,
@@ -317,8 +316,6 @@ test.describe('Mail domain create mailbox', () => {
await page.getByLabel(`domain.fr listboxDomains button`).click(); await page.getByLabel(`domain.fr listboxDomains button`).click();
await expect( await expect(page.getByTestId('button-new-mailbox')).toBeDisabled();
page.getByTestId('button-new-mailbox')
).toBeDisabled();
}); });
}); });

View File

@@ -186,9 +186,7 @@ test.describe('Mail domain', () => {
await assertMailDomainUpperElementsAreVisible(page); await assertMailDomainUpperElementsAreVisible(page);
await expect( await expect(page.getByTestId('button-new-mailbox')).toBeVisible();
page.getByTestId('button-new-mailbox'),
).toBeVisible();
await expect( await expect(
page.getByText('No mail box was created with this mail domain.'), page.getByText('No mail box was created with this mail domain.'),
@@ -237,9 +235,7 @@ test.describe('Mail domain', () => {
page.getByRole('heading', { name: 'domain.fr' }), page.getByRole('heading', { name: 'domain.fr' }),
).toBeVisible(); ).toBeVisible();
await expect( await expect(page.getByTestId('button-new-mailbox')).toBeVisible();
page.getByTestId('button-new-mailbox'),
).toBeVisible();
await expect( await expect(
page.getByText('No mail box was created with this mail domain.'), page.getByText('No mail box was created with this mail domain.'),
@@ -286,9 +282,7 @@ test.describe('Mail domain', () => {
), ),
).toBeVisible(); ).toBeVisible();
await expect( await expect(page.getByTestId('button-new-mailbox')).toBeDisabled();
page.getByTestId('button-new-mailbox'),
).toBeDisabled();
await expect( await expect(
page.getByText('No mail box was created with this mail domain.'), page.getByText('No mail box was created with this mail domain.'),
@@ -339,9 +333,7 @@ test.describe('Mail domain', () => {
page.getByRole('link', { name: 'suiteterritoriale@anct.gouv.fr' }), page.getByRole('link', { name: 'suiteterritoriale@anct.gouv.fr' }),
).toBeVisible(); ).toBeVisible();
await expect( await expect(page.getByTestId('button-new-mailbox')).toBeDisabled();
page.getByTestId('button-new-mailbox'),
).toBeDisabled();
await expect( await expect(
page.getByText('No mail box was created with this mail domain.'), page.getByText('No mail box was created with this mail domain.'),
@@ -523,9 +515,7 @@ test.describe('Mail domain', () => {
await assertMailDomainUpperElementsAreVisible(page); await assertMailDomainUpperElementsAreVisible(page);
await expect( await expect(page.getByTestId('button-new-mailbox')).toBeDisabled();
page.getByTestId('button-new-mailbox'),
).toBeDisabled();
await assertFilledMailboxesTableElementsAreVisible( await assertFilledMailboxesTableElementsAreVisible(
page, page,
@@ -576,9 +566,7 @@ test.describe('Mail domain', () => {
page.getByRole('heading', { name: 'domain.fr' }), page.getByRole('heading', { name: 'domain.fr' }),
).toBeVisible(); ).toBeVisible();
await expect( await expect(page.getByTestId('button-new-mailbox')).toBeDisabled();
page.getByTestId('button-new-mailbox'),
).toBeDisabled();
await expect( await expect(
page.getByText('No mail box was created with this mail domain.'), page.getByText('No mail box was created with this mail domain.'),
@@ -625,9 +613,7 @@ test.describe('Mail domain', () => {
), ),
).toBeVisible(); ).toBeVisible();
await expect( await expect(page.getByTestId('button-new-mailbox')).toBeDisabled();
page.getByTestId('button-new-mailbox'),
).toBeDisabled();
await expect( await expect(
page.getByText('No mail box was created with this mail domain.'), page.getByText('No mail box was created with this mail domain.'),
@@ -674,9 +660,7 @@ test.describe('Mail domain', () => {
), ),
).toBeVisible(); ).toBeVisible();
await expect( await expect(page.getByTestId('button-new-mailbox')).toBeDisabled();
page.getByTestId('button-new-mailbox'),
).toBeDisabled();
await expect( await expect(
page.getByText('No mail box was created with this mail domain.'), page.getByText('No mail box was created with this mail domain.'),