mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Synthetics] Update data view permission test (#143921)
This commit is contained in:
parent
51ec72488a
commit
13f2fab9e7
1 changed files with 5 additions and 5 deletions
|
@ -48,10 +48,10 @@ journey('DataViewPermissions', async ({ page, params }) => {
|
|||
step('Click explore data button', async () => {
|
||||
await page.click(byTestId('uptimeExploreDataButton'));
|
||||
await waitForLoadingToFinish({ page });
|
||||
await page.waitForSelector(`text=${permissionError}`, TIMEOUT_60_SEC);
|
||||
expect(await page.$(`text=${permissionError}`)).toBeTruthy();
|
||||
});
|
||||
|
||||
step('it renders for viewer user as well', async () => {
|
||||
await page.waitForSelector(`text=browser`, TIMEOUT_60_SEC);
|
||||
expect(await page.$(`text=Monitor duration`)).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
const permissionError =
|
||||
"Unable to create Data View. You don't have the required permission, please contact your admin.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue