Commit 9d4ad245 authored by tom's avatar tom

update screenshots

parent 8ab312fc
......@@ -11,8 +11,6 @@ const test = base.extend<{ context: BrowserContext }>({
context: contextWithAuth,
});
test.use({ viewport: { width: 200, height: 200 } });
test.describe('with multiple items', () => {
const hooksConfig = {
router: {
......@@ -30,14 +28,14 @@ test.describe('with multiple items', () => {
const component = await render(<AccountActionsMenu/>, { hooksConfig });
await component.getByRole('button').click();
await expect(page).toHaveScreenshot();
await expect(page).toHaveScreenshot({ clip: { x: 0, y: 0, width: 200, height: 200 } });
});
test('base view with styles', async({ render, page }) => {
const component = await render(<AccountActionsMenu m={ 2 } outline="1px solid lightpink"/>, { hooksConfig });
await component.getByRole('button').click();
await expect(page).toHaveScreenshot();
await expect(page).toHaveScreenshot({ clip: { x: 0, y: 0, width: 200, height: 200 } });
});
test('loading', async({ render }) => {
......@@ -65,15 +63,15 @@ test.describe('with one item', () => {
test('base view', async({ render, page }) => {
const component = await render(<AccountActionsMenu/>, { hooksConfig });
await component.getByRole('button').hover();
await expect(page).toHaveScreenshot();
await expect(page.getByText('Add private tag')).toBeVisible();
await expect(page).toHaveScreenshot({ clip: { x: 0, y: 0, width: 200, height: 200 } });
});
test('base view with styles', async({ render, page }) => {
const component = await render(<AccountActionsMenu m={ 2 } outline="1px solid lightpink"/>, { hooksConfig });
await component.getByRole('button').hover();
await expect(page).toHaveScreenshot();
await expect(page.getByText('Add private tag')).toBeVisible();
await expect(page).toHaveScreenshot({ clip: { x: 0, y: 0, width: 200, height: 200 } });
});
test('loading', async({ render }) => {
......
......@@ -67,12 +67,12 @@ const ChartsWidgetsList = ({ filterQuery, isError, isPlaceholderData, charts, in
charts?.map((section) => (
<Box
key={ section.id }
mb={ 8 }
mb={{ base: 6, lg: 8 }}
_last={{
marginBottom: 0,
}}
>
<Skeleton loading={ isPlaceholderData } mb={ 3 } display="inline-flex" alignItems="center" columnGap={ 2 } id={ section.id }>
<Skeleton loading={ isPlaceholderData } mb={{ base: 3, lg: 4 }} display="inline-flex" alignItems="center" columnGap={ 2 } id={ section.id }>
<Heading level="2" id={ section.id }>
{ section.title }
</Heading>
......@@ -85,7 +85,7 @@ const ChartsWidgetsList = ({ filterQuery, isError, isPlaceholderData, charts, in
<Grid
templateColumns={{ lg: 'repeat(2, minmax(0, 1fr))' }}
gap={ 4 }
gap={{ base: 3, lg: 4 }}
>
{ section.charts.map((chart) => (
<ChartWidgetContainer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment