Commit 981f1fce authored by Max Alekseenko's avatar Max Alekseenko

add tests for loading state

parent 9ee3d3cf
......@@ -29,6 +29,11 @@ test('wallet is not connected (home page) +@dark-mode', async({ page, render })
await expect(page).toHaveScreenshot({ clip: { x: 0, y: 0, width: 250, height: 50 } });
});
test('wallet is loading', async({ page, render }) => {
await render(<WalletMenuDesktopComponent { ...props } isModalOpen/>);
await expect(page).toHaveScreenshot({ clip: { x: 0, y: 0, width: 250, height: 50 } });
});
test('wallet connected +@dark-mode', async({ page, render, mockApiResponse }) => {
await mockApiResponse('address', addressMock.eoa, { pathParams: { hash: addressMock.hash } });
......
......@@ -24,6 +24,11 @@ test('wallet is not connected +@dark-mode', async({ page, render }) => {
await expect(page).toHaveScreenshot();
});
test('wallet is loading', async({ page, render }) => {
await render(<WalletMenuMobileComponent { ...props } isModalOpen/>);
await expect(page).toHaveScreenshot();
});
test('wallet connected +@dark-mode', async({ page, render, mockApiResponse }) => {
await mockApiResponse('address', addressMock.eoa, { pathParams: { hash: addressMock.hash } });
......
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