Skip to content

Commit 037b58f

Browse files
alvarosaugarlrbrianchandotcom
authored andcommitted
LPD-59421 functional test
1 parent 729dfc2 commit 037b58f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

modules/test/playwright/tests/headless-discovery-web/main/apiExplorer.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,15 @@ test(
4343
});
4444
}
4545
);
46+
47+
test(
48+
'Error mensaje is shown if the endpoint parameter is wrong',
49+
{tag: '@LPD-59421'},
50+
async ({page}) => {
51+
await page.goto('/o/api?endpoint=http://attacker.com/openapi.json');
52+
53+
await expect(page.getByText(`Forbidden access.`)).toBeVisible({
54+
timeout: 3000,
55+
});
56+
}
57+
);

0 commit comments

Comments
 (0)