Skip to content

Commit

Permalink
Fix test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wylieconlon committed Jun 8, 2021
1 parent 4b81e5d commit f9a9c9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function DimensionEditor(props: DimensionEditorProps) {
{
isDimensionComplete:
prevOperationType === 'fullReference'
? hasIncompleteColumns
? !hasIncompleteColumns
: Boolean(hypotheticalLayer.columns[columnId]),
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,10 @@ describe('IndexPatternDimensionEditorPanel', () => {
.simulate('click');

// Now check that the dimension gets cleaned up on state update
expect(setState.mock.calls[0]).toEqual([expect.any(Function), { isDimensionComplete: true }]);
expect(setState.mock.calls[0]).toEqual([
expect.any(Function),
{ isDimensionComplete: false },
]);
expect(setState.mock.calls[0][0](state)).toEqual({
...state,
layers: {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/functional/apps/lens/smokescreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

await PageObjects.lens.configureDimension({
dimension: 'lnsXY_yDimensionPanel > lns-empty-dimension',
operation: 'minimum',
operation: 'min',
});

expect(await PageObjects.lens.getDimensionTriggerText('lnsXY_yDimensionPanel')).to.eql(
Expand Down

0 comments on commit f9a9c9a

Please sign in to comment.