Skip to content

Commit

Permalink
Fix test - need to pass dynamicPartitionsDefinitionName
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Aug 7, 2024
1 parent da760e7 commit 6fb7d0d
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
buildAddDynamicPartitionSuccess,
buildAssetKey,
buildAssetNode,
buildDimensionDefinitionType,
buildDimensionPartitionKeys,
buildMultiPartitionStatuses,
buildPartitionDefinition,
Expand Down Expand Up @@ -127,6 +128,7 @@ describe('launchAssetChoosePartitionsDialog', () => {
const savePartitionButton = screen.getByTestId('save-partition-button');
userEvent.click(savePartitionButton);

// Verify that it refreshes asset health after partition is added
await waitFor(() => {
expect(assetASecondQueryMockResult).toHaveBeenCalled();
});
Expand All @@ -150,7 +152,18 @@ function buildAsset(name: string, dynamicPartitionKeys: string[]) {
}),
],
partitionDefinition: buildPartitionDefinition({
name: 'foo',
name: 'not-foo',
dimensionTypes: [
buildDimensionDefinitionType({
name: 'a',
type: PartitionDefinitionType.DYNAMIC,
dynamicPartitionsDefinitionName: 'foo',
}),
buildDimensionDefinitionType({
name: 'b',
type: PartitionDefinitionType.TIME_WINDOW,
}),
],
}),
assetPartitionStatuses: buildMultiPartitionStatuses({
primaryDimensionName: 'b',
Expand Down

0 comments on commit 6fb7d0d

Please sign in to comment.