mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* [Reporting/Screenshots] add error for no shared items container found on the page * wording adjustment
This commit is contained in:
parent
c95fa975d8
commit
b184978f1f
1 changed files with 6 additions and 0 deletions
|
@ -47,5 +47,11 @@ export const getElementPositionAndAttributes = async (
|
|||
args: [layout.selectors.screenshot, { title: 'data-title', description: 'data-description' }],
|
||||
});
|
||||
|
||||
if (elementsPositionAndAttributes.length === 0) {
|
||||
throw new Error(
|
||||
`No shared items containers were found on the page! Reporting requires a container element with the '${layout.selectors.screenshot}' attribute on the page.`
|
||||
);
|
||||
}
|
||||
|
||||
return elementsPositionAndAttributes;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue