Files

26 lines
748 B
TypeScript

import React from 'react';
import type { TestFnArgs } from 'playwright/lib';
import { test, expect } from 'playwright/lib';
import * as pwConfig from 'playwright/utils/config';
import Multisend from './Multisend';
const ESSENTIAL_DAPPS_CONFIG = JSON.stringify({
multisend: { chains: [ '1' ] },
});
test('base view +@dark-mode +@mobile', async({ render, mockEnvs, page }: TestFnArgs) => {
await mockEnvs([
[ 'NEXT_PUBLIC_MARKETPLACE_ENABLED', 'true' ],
[ 'NEXT_PUBLIC_MARKETPLACE_ESSENTIAL_DAPPS_CONFIG', ESSENTIAL_DAPPS_CONFIG ],
]);
const component = await render(<Multisend/>);
await expect(component).toHaveScreenshot({
mask: [ page.locator(pwConfig.adsBannerSelector) ],
maskColor: pwConfig.maskColor,
});
});