Commit 210c2ffb authored by tom's avatar tom

Merge branch 'client-api-calls' into client-api-calls-pt2

parents 79fa44f9 e62dd630
import { test, expect, devices } from '@playwright/experimental-ct-react'; import { test, expect, devices } from '@playwright/experimental-ct-react';
import React from 'react'; import React from 'react';
import { RESOURCES } from 'lib/api/resources';
import * as profileMock from 'mocks/user/profile'; import * as profileMock from 'mocks/user/profile';
import authFixture from 'playwright/fixtures/auth'; import authFixture from 'playwright/fixtures/auth';
import TestApp from 'playwright/TestApp'; import TestApp from 'playwright/TestApp';
...@@ -29,7 +30,7 @@ test.describe('auth', () => { ...@@ -29,7 +30,7 @@ test.describe('auth', () => {
}); });
extendedTest('base view', async({ mount, page }) => { extendedTest('base view', async({ mount, page }) => {
await page.route('/node-api/account/profile', (route) => route.fulfill({ await page.route('/proxy/poa/core' + RESOURCES.user_info.path, (route) => route.fulfill({
status: 200, status: 200,
body: JSON.stringify(profileMock.base), body: JSON.stringify(profileMock.base),
})); }));
......
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