Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jennypavlova committed Mar 4, 2025
1 parent 1e407ad commit cdbfe93
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
coreWorkerFixtures,
esArchiverFixture,
uiSettingsFixture,
synthtraceFixture,
} from './worker';
import type {
EsArchiverFixture,
Expand All @@ -23,30 +24,30 @@ import type {
ScoutLogger,
ScoutTestConfig,
UiSettingsFixture,
SynthtraceFixture,
} from './worker';
import {
scoutPageFixture,
browserAuthFixture,
pageObjectsFixture,
validateTagsFixture,
synthtraceFixture,
} from './test';
import type { BrowserAuthFixture, ScoutPage, PageObjects } from './test';
export type { PageObjects, ScoutPage } from './test';
import type { BrowserAuthFixture, ScoutPage, PageObjects, SynthtraceFixture } from './test';

export const scoutFixtures = mergeTests(
// worker scope fixtures
coreWorkerFixtures,
esArchiverFixture,
uiSettingsFixture,
synthtraceFixture,
// api fixtures
apiFixtures,
// test scope fixtures
browserAuthFixture,
scoutPageFixture,
pageObjectsFixture,
validateTagsFixture,
synthtraceFixture
validateTagsFixture
);

export interface ScoutTestFixtures {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ export type { ScoutPage } from './scout_page';
export { validateTagsFixture } from './validate_tags';
export { pageObjectsFixture, pageObjectsParallelFixture } from './page_objects';
export type { PageObjects } from './page_objects';
export { synthtraceFixture } from './synthtrace';
export type { SynthtraceFixture } from './synthtrace';
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ test.describe('Service Map', { tag: ['@ess', '@svlOblt'] }, () => {
await page.getByTestId('centerServiceMap').click();
await expect(page.getByTestId('serviceMap').getByLabel('Loading')).toBeHidden();
await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight));
await page.waitForTimeout(1000);
await page.getByTestId('serviceMap').click();
const serviceMapLocator = await page.getByTestId('serviceMap');
await expect(serviceMapLocator).toHaveScreenshot('service_map.png', {
animations: 'disabled',
maxDiffPixels: 10,
});
});

Expand All @@ -46,11 +46,11 @@ test.describe('Service Map', { tag: ['@ess', '@svlOblt'] }, () => {
await page.getByTestId('centerServiceMap').click();
await expect(page.getByTestId('serviceMap').getByLabel('Loading')).toBeHidden();
await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight));
await page.waitForTimeout(1000);
await page.getByTestId('serviceMap').click();
const serviceMapLocator = await page.getByTestId('serviceMap');
await expect(serviceMapLocator).toHaveScreenshot('detailed_service_map.png', {
animations: 'disabled',
maxDiffPixels: 10,
});
});

Expand Down

0 comments on commit cdbfe93

Please sign in to comment.