Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
mykolaharmash committed Jan 3, 2025
1 parent a49aa38 commit f3f1c8b
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
*/

import { expect } from '@kbn/scout';
import { test } from '../../fixtures';
import { type ExtendedScoutTestFixtures, test } from '../../fixtures';

const CUSTOM_INTEGRATION_NAME = 'mylogs';

function setupPage({ isAdmin }) {
return async ({ browserAuth, pageObjects: { customLogsPage }, page }) => {
function setupPage({ isAdmin }: { isAdmin: boolean }) {
return async ({
browserAuth,
pageObjects: { customLogsPage },
page,
}: ExtendedScoutTestFixtures) => {
await browserAuth.loginAsAdmin();
await customLogsPage.deleteIntegration(CUSTOM_INTEGRATION_NAME);

Expand Down Expand Up @@ -69,14 +73,10 @@ test.describe(
}),
});
});

await setupPage({ isAdmin: true })({
browserAuth,
pageObjects: { customLogsPage },
page,
});
});

test.beforeEach(setupPage({ isAdmin: true }));

test('apiKey is not generated', async ({ pageObjects: { customLogsPage } }) => {
await expect(customLogsPage.apiKeyCreateErrorCallout()).toBeVisible();
});
Expand Down

0 comments on commit f3f1c8b

Please sign in to comment.