Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Jun 14, 2024
1 parent 0653d51 commit c7e971a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions apps/meteor/tests/e2e/administration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,20 +275,21 @@ test.describe.parallel('administration', () => {
});

test.describe('Integrations', () => {
const messageCodeHighlightDefault = 'javascript,css,markdown,dockerfile,json,go,rust,clean,bash,plaintext,powershell,scss,shell,yaml,vim';
const messageCodeHighlightDefault =
'javascript,css,markdown,dockerfile,json,go,rust,clean,bash,plaintext,powershell,scss,shell,yaml,vim';
const incomingIntegrationName = faker.string.uuid();

test.beforeAll(async ({ api }) => {
await setSettingValueById(api, 'Message_Code_highlight', '')
await setSettingValueById(api, 'Message_Code_highlight', '');
});

test.beforeEach(async ({ page }) => {
await page.goto('/admin/integrations');
});

test.afterAll(async ({ api }) => {
await setSettingValueById(api, 'Message_Code_highlight', messageCodeHighlightDefault)
})
await setSettingValueById(api, 'Message_Code_highlight', messageCodeHighlightDefault);
});

test('should display the example payload correctly', async () => {
await poAdmin.btnNew.click();
Expand All @@ -305,7 +306,7 @@ test.describe.parallel('administration', () => {
await poAdmin.btnSave.click();

await expect(poAdmin.inputWebhookUrl).not.toHaveValue('Will be available here after saving.');

await poAdmin.btnBack.click();
await expect(poAdmin.getIntegrationByName(incomingIntegrationName)).toBeVisible();
});
Expand Down
4 changes: 2 additions & 2 deletions apps/meteor/tests/e2e/page-objects/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class Admin {
get btnInstructions(): Locator {
return this.page.getByRole('button', { name: 'Instructions' });
}

get inputName(): Locator {
return this.page.getByRole('textbox', { name: 'Name' });
}
Expand All @@ -254,6 +254,6 @@ export class Admin {
}

get inputWebhookUrl(): Locator {
return this.page.getByRole('textbox', { name: 'Webhook URL' })
return this.page.getByRole('textbox', { name: 'Webhook URL' });
}
}

0 comments on commit c7e971a

Please sign in to comment.