Commit 2280059b authored by tom's avatar tom

fix tests

parent 406b442d
...@@ -8,8 +8,9 @@ import buildApiUrl from 'playwright/utils/buildApiUrl'; ...@@ -8,8 +8,9 @@ import buildApiUrl from 'playwright/utils/buildApiUrl';
import AddressEnsDomains from './AddressEnsDomains'; import AddressEnsDomains from './AddressEnsDomains';
const ADDRESSES_LOOKUP_API_URL = buildApiUrl('addresses_lookup', { chainId: config.chain.id });
const ADDRESS_HASH = ensDomainMock.ensDomainA.owner?.hash ?? ''; const ADDRESS_HASH = ensDomainMock.ensDomainA.owner?.hash ?? '';
const ADDRESSES_LOOKUP_API_URL = buildApiUrl('addresses_lookup', { chainId: config.chain.id }) +
`?address=${ ADDRESS_HASH }&resolved_to=true&owned_by=true&only_active=true&order=ASC`;
test('base view', async({ mount, page }) => { test('base view', async({ mount, page }) => {
await page.route(ADDRESSES_LOOKUP_API_URL, (route) => route.fulfill({ await page.route(ADDRESSES_LOOKUP_API_URL, (route) => route.fulfill({
...@@ -21,7 +22,6 @@ test('base view', async({ mount, page }) => { ...@@ -21,7 +22,6 @@ test('base view', async({ mount, page }) => {
ensDomainMock.ensDomainC, ensDomainMock.ensDomainC,
ensDomainMock.ensDomainD, ensDomainMock.ensDomainD,
], ],
totalRecords: 4,
}), }),
})); }));
......
...@@ -9,7 +9,7 @@ import buildApiUrl from 'playwright/utils/buildApiUrl'; ...@@ -9,7 +9,7 @@ import buildApiUrl from 'playwright/utils/buildApiUrl';
import NameDomains from './NameDomains'; import NameDomains from './NameDomains';
const DOMAINS_LOOKUP_API_URL = buildApiUrl('domains_lookup', { chainId: config.chain.id }); const DOMAINS_LOOKUP_API_URL = buildApiUrl('domains_lookup', { chainId: config.chain.id }) + '?only_active=true';
test.beforeEach(async({ page }) => { test.beforeEach(async({ page }) => {
await page.route('https://request-global.czilladx.com/serve/native.php?z=19260bf627546ab7242', (route) => route.fulfill({ await page.route('https://request-global.czilladx.com/serve/native.php?z=19260bf627546ab7242', (route) => route.fulfill({
...@@ -34,6 +34,9 @@ test('default view +@mobile', async({ mount, page }) => { ...@@ -34,6 +34,9 @@ test('default view +@mobile', async({ mount, page }) => {
ensDomainMock.ensDomainC, ensDomainMock.ensDomainC,
ensDomainMock.ensDomainD, ensDomainMock.ensDomainD,
], ],
next_page_params: {
token_id: '<token-id>',
},
}), }),
})); }));
......
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