mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 2f9015102f
)
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
This commit is contained in:
parent
7391fa0bcd
commit
4f5940ea49
1 changed files with 6 additions and 3 deletions
|
@ -53,6 +53,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
|
|||
const find = getService('find');
|
||||
const es = getService('es');
|
||||
const common = getPageObject('common');
|
||||
const retry = getService('retry');
|
||||
|
||||
const createAttachmentAndNavigate = async (attachment: CommentRequest) => {
|
||||
const caseData = await cases.api.createCase({
|
||||
|
@ -107,8 +108,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
|
|||
});
|
||||
});
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/139300
|
||||
describe.skip('Persistable state attachments', () => {
|
||||
describe('Persistable state attachments', () => {
|
||||
const getLensState = (dataViewId: string) => ({
|
||||
title: '',
|
||||
visualizationType: 'lnsXY',
|
||||
|
@ -205,7 +205,10 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
|
|||
it('renders a persistable attachment type correctly', async () => {
|
||||
const attachmentId = caseWithAttachment?.comments?.[0].id;
|
||||
await validateAttachment(CommentType.persistableState, attachmentId);
|
||||
expect(await find.existsByCssSelector('.lnsExpressionRenderer')).toBe(true);
|
||||
await retry.waitFor(
|
||||
'actions accordion to exist',
|
||||
async () => await find.existsByCssSelector('.lnsExpressionRenderer')
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue