🎨(front) fix linter issues with --fix
Simply run the lint command with "autofix" to format files.
This commit is contained in:
@@ -5,11 +5,10 @@ export const keyCloakSignIn = async (
|
||||
browserName: string,
|
||||
accountName?: string,
|
||||
) => {
|
||||
|
||||
const title = await page.locator('h1').first().textContent({
|
||||
timeout: 5000,
|
||||
});
|
||||
|
||||
|
||||
const username = accountName
|
||||
? `e2e.${accountName}`
|
||||
: `user-e2e-${browserName}`;
|
||||
|
||||
@@ -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 ({
|
||||
|
||||
@@ -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 }),
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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.'),
|
||||
|
||||
Reference in New Issue
Block a user