Skip to content

Commit

Permalink
[Dashboard] [Functional Tests] Unskip by value Example (#116513)
Browse files Browse the repository at this point in the history
* Unskip dashboard by value example tests
  • Loading branch information
ThomThomson authored Nov 9, 2021
1 parent 32f75a4 commit 56bfd0e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export class HelloWorldEmbeddable extends Embeddable {
* @param node
*/
public render(node: HTMLElement) {
node.innerHTML = '<div data-test-subj="helloWorldEmbeddable">HELLO WORLD!</div>';
node.innerHTML =
'<div data-test-subj="helloWorldEmbeddable" data-render-complete="true">HELLO WORLD!</div>';
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function wrapSearchTerms(task: string, search?: string) {

export function TodoEmbeddableComponentInner({ input: { icon, title, task, search } }: Props) {
return (
<EuiFlexGroup gutterSize="none">
<EuiFlexGroup gutterSize="none" data-render-complete="true">
<EuiFlexItem grow={false}>
{icon ? <EuiIcon type={icon} size="l" /> : <EuiAvatar name={title || task} size="l" />}
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function TodoRefEmbeddableComponentInner({
const title = savedAttributes?.title;
const task = savedAttributes?.task;
return (
<EuiFlexGroup>
<EuiFlexGroup data-render-complete="true">
<EuiFlexItem grow={false}>
{icon ? (
<EuiIcon type={icon} size="l" />
Expand Down
7 changes: 4 additions & 3 deletions test/examples/embeddables/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,19 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
const pieChart = getService('pieChart');
const dashboardExpect = getService('dashboardExpect');
const elasticChart = getService('elasticChart');
const PageObjects = getPageObjects(['common', 'visChart']);
const PageObjects = getPageObjects(['common', 'visChart', 'dashboard']);
const monacoEditor = getService('monacoEditor');

// FLAKY: https://github.com/elastic/kibana/issues/116414
describe.skip('dashboard container', () => {
describe('dashboard container', () => {
before(async () => {
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/dashboard/current/data');
await esArchiver.loadIfNeeded(
'test/functional/fixtures/es_archiver/dashboard/current/kibana'
);
await PageObjects.common.navigateToApp('dashboardEmbeddableExamples');
await testSubjects.click('dashboardEmbeddableByValue');
await PageObjects.dashboard.waitForRenderComplete();

await updateInput(JSON.stringify(testDashboardInput, null, 4));
});

Expand Down

0 comments on commit 56bfd0e

Please sign in to comment.