feat: e2e tests call for an update api
This commit is contained in:
parent
eaa9b7c359
commit
86afa4f911
1 changed files with 7 additions and 0 deletions
|
|
@ -25,6 +25,13 @@ beforeAll(async () => {
|
|||
await page.setJavaScriptEnabled(true);
|
||||
await page.setDefaultNavigationTimeout(10000);
|
||||
await page.setRequestInterception(true);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
const response = await fetch(appUrlBase + '/API_TESTING/update');
|
||||
const text = await response.text();
|
||||
return text;
|
||||
});
|
||||
|
||||
page.on('request', (req) => {
|
||||
if (['image', 'font'].indexOf(req.resourceType()) !== -1) {
|
||||
req.abort();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue