🎨(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,7 +5,6 @@ export const keyCloakSignIn = async (
browserName: string,
accountName?: string,
) => {
const title = await page.locator('h1').first().textContent({
timeout: 5000,
});

View File

@@ -47,10 +47,7 @@ test.describe('Config', () => {
await expect(page).toHaveURL(/mail-domains\//);
await expect(
page
.getByText('Areas of the organization')
).toBeVisible();
await expect(page.getByText('Areas of the organization')).toBeVisible();
});
// 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();
await menu.getByLabel(`Mail Domains button`)
.click();
await menu.getByLabel(`Mail Domains button`).click();
await expect(page).toHaveURL(/mail-domains\//);
await expect(
page.getByLabel('Areas of the organization', { exact: true }),

View File

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

View File

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