mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* epochs page * epoch rewards distribution * epoch election rewards * address epoch rewards * block epoch tag * add some tests * adjust epoch details for L1 epochs * support non-finalized epochs * fixes after design review * add truncation to block numbers on mobile * update epochs table layout * update timestamp hint * fix bug with subheading of first epoch * fixes of mobile view * update screenshots
18 lines
522 B
TypeScript
18 lines
522 B
TypeScript
import React from 'react';
|
|
|
|
import { list as epochsList } from 'mocks/epochs/celo';
|
|
import { ENVS_MAP } from 'playwright/fixtures/mockEnvs';
|
|
import { test, expect } from 'playwright/lib';
|
|
|
|
import Epochs from './Epochs';
|
|
|
|
test('base view +@mobile', async({ render, mockEnvs, mockTextAd, mockApiResponse }) => {
|
|
await mockEnvs(ENVS_MAP.celo);
|
|
await mockTextAd();
|
|
await mockApiResponse('general:epochs_celo', epochsList);
|
|
|
|
const component = await render(<Epochs/>);
|
|
|
|
await expect(component).toHaveScreenshot();
|
|
});
|