diff --git a/ui/pages/ScrollL2TxnBatches.pw.tsx b/ui/pages/ScrollL2TxnBatches.pw.tsx index 1aa2589c6a..907464d1a9 100644 --- a/ui/pages/ScrollL2TxnBatches.pw.tsx +++ b/ui/pages/ScrollL2TxnBatches.pw.tsx @@ -2,11 +2,11 @@ import React from 'react'; import * as scrollTxnBatchesMock from 'mocks/scroll/txnBatches'; import { ENVS_MAP } from 'playwright/fixtures/mockEnvs'; -import { test, expect } from 'playwright/lib'; +import { test, expect, devices } from 'playwright/lib'; import ScrollL2TxnBatches from './ScrollL2TxnBatches'; -test('base view +@mobile', async({ render, mockEnvs, mockTextAd, mockApiResponse }) => { +test('base view', async({ render, mockEnvs, mockTextAd, mockApiResponse }) => { test.slow(); await mockEnvs(ENVS_MAP.scrollRollup); await mockTextAd(); @@ -16,3 +16,18 @@ test('base view +@mobile', async({ render, mockEnvs, mockTextAd, mockApiResponse const component = await render(); await expect(component).toHaveScreenshot(); }); + +test.describe('mobile', () => { + test.use({ viewport: devices['iPhone 13 Pro'].viewport }); + + test('base view', async({ render, mockEnvs, mockTextAd, mockApiResponse }) => { + test.slow(); + await mockEnvs(ENVS_MAP.scrollRollup); + await mockTextAd(); + await mockApiResponse('scroll_l2_txn_batches', scrollTxnBatchesMock.baseResponse); + await mockApiResponse('scroll_l2_txn_batches_count', 9927); + + const component = await render(); + await expect(component).toHaveScreenshot(); + }); +}); diff --git a/ui/pages/__screenshots__/ScrollL2Deposits.pw.tsx_default_base-view-1.png b/ui/pages/__screenshots__/ScrollL2Deposits.pw.tsx_default_base-view-1.png index 0b796b1b7d..f06e0b8a83 100644 Binary files a/ui/pages/__screenshots__/ScrollL2Deposits.pw.tsx_default_base-view-1.png and b/ui/pages/__screenshots__/ScrollL2Deposits.pw.tsx_default_base-view-1.png differ diff --git a/ui/pages/__screenshots__/ScrollL2Deposits.pw.tsx_default_mobile-base-view-1.png b/ui/pages/__screenshots__/ScrollL2Deposits.pw.tsx_default_mobile-base-view-1.png index dd53695ab6..a6c2306b73 100644 Binary files a/ui/pages/__screenshots__/ScrollL2Deposits.pw.tsx_default_mobile-base-view-1.png and b/ui/pages/__screenshots__/ScrollL2Deposits.pw.tsx_default_mobile-base-view-1.png differ diff --git a/ui/pages/__screenshots__/ScrollL2TxnBatch.pw.tsx_default_base-view-1.png b/ui/pages/__screenshots__/ScrollL2TxnBatch.pw.tsx_default_base-view-1.png index 74a843a4dd..ff00c4ad96 100644 Binary files a/ui/pages/__screenshots__/ScrollL2TxnBatch.pw.tsx_default_base-view-1.png and b/ui/pages/__screenshots__/ScrollL2TxnBatch.pw.tsx_default_base-view-1.png differ diff --git a/ui/pages/__screenshots__/ScrollL2TxnBatch.pw.tsx_default_base-view-mobile-1.png b/ui/pages/__screenshots__/ScrollL2TxnBatch.pw.tsx_default_base-view-mobile-1.png deleted file mode 100644 index 74a843a4dd..0000000000 Binary files a/ui/pages/__screenshots__/ScrollL2TxnBatch.pw.tsx_default_base-view-mobile-1.png and /dev/null differ diff --git a/ui/pages/__screenshots__/ScrollL2TxnBatch.pw.tsx_default_mobile-base-view-1.png b/ui/pages/__screenshots__/ScrollL2TxnBatch.pw.tsx_default_mobile-base-view-1.png index bbab012f20..6e5199593b 100644 Binary files a/ui/pages/__screenshots__/ScrollL2TxnBatch.pw.tsx_default_mobile-base-view-1.png and b/ui/pages/__screenshots__/ScrollL2TxnBatch.pw.tsx_default_mobile-base-view-1.png differ diff --git a/ui/pages/__screenshots__/ScrollL2TxnBatches.pw.tsx_default_base-view-1.png b/ui/pages/__screenshots__/ScrollL2TxnBatches.pw.tsx_default_base-view-1.png new file mode 100644 index 0000000000..1672fa617e Binary files /dev/null and b/ui/pages/__screenshots__/ScrollL2TxnBatches.pw.tsx_default_base-view-1.png differ diff --git a/ui/pages/__screenshots__/ScrollL2TxnBatches.pw.tsx_default_base-view-mobile-1.png b/ui/pages/__screenshots__/ScrollL2TxnBatches.pw.tsx_default_base-view-mobile-1.png deleted file mode 100644 index bffcc9fe97..0000000000 Binary files a/ui/pages/__screenshots__/ScrollL2TxnBatches.pw.tsx_default_base-view-mobile-1.png and /dev/null differ diff --git a/ui/pages/__screenshots__/ScrollL2TxnBatches.pw.tsx_default_mobile-base-view-1.png b/ui/pages/__screenshots__/ScrollL2TxnBatches.pw.tsx_default_mobile-base-view-1.png new file mode 100644 index 0000000000..a669a1b0b8 Binary files /dev/null and b/ui/pages/__screenshots__/ScrollL2TxnBatches.pw.tsx_default_mobile-base-view-1.png differ diff --git a/ui/pages/__screenshots__/ScrollL2TxnBatches.pw.tsx_mobile_base-view-mobile-1.png b/ui/pages/__screenshots__/ScrollL2TxnBatches.pw.tsx_mobile_base-view-mobile-1.png deleted file mode 100644 index d086f64128..0000000000 Binary files a/ui/pages/__screenshots__/ScrollL2TxnBatches.pw.tsx_mobile_base-view-mobile-1.png and /dev/null differ diff --git a/ui/pages/__screenshots__/ScrollL2Withdrawals.pw.tsx_default_base-view-1.png b/ui/pages/__screenshots__/ScrollL2Withdrawals.pw.tsx_default_base-view-1.png index d52eda465f..714047e684 100644 Binary files a/ui/pages/__screenshots__/ScrollL2Withdrawals.pw.tsx_default_base-view-1.png and b/ui/pages/__screenshots__/ScrollL2Withdrawals.pw.tsx_default_base-view-1.png differ diff --git a/ui/pages/__screenshots__/ScrollL2Withdrawals.pw.tsx_default_mobile-base-view-1.png b/ui/pages/__screenshots__/ScrollL2Withdrawals.pw.tsx_default_mobile-base-view-1.png index 3e14692aaa..5be17a762a 100644 Binary files a/ui/pages/__screenshots__/ScrollL2Withdrawals.pw.tsx_default_mobile-base-view-1.png and b/ui/pages/__screenshots__/ScrollL2Withdrawals.pw.tsx_default_mobile-base-view-1.png differ