mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
26 lines
748 B
TypeScript
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,
|
|
});
|
|
});
|