Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Shey Gao <sheygao@amazon.com>
  • Loading branch information
Shey Gao committed Aug 23, 2024
1 parent 149d71a commit d572931
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Object {
>
<button
aria-label="import-file-button"
class="euiButton euiButton--primary euiButton--small euiButton--fill"
class="euiButton euiButton--primary euiButton--small"
id="submitButton"
type="button"
>
Expand Down Expand Up @@ -429,7 +429,7 @@ Object {
>
<button
aria-label="import-file-button"
class="euiButton euiButton--primary euiButton--small euiButton--fill"
class="euiButton euiButton--primary euiButton--small"
id="submitButton"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ describe('test delete layer modal', function () {
<DeleteLayerModal layerName={'test-layer'} onCancel={() => {}} onConfirm={() => {}} />
);
const testInstance = deleteLayerModal.root;
expect(testInstance.findByType(EuiConfirmModal).props.title).toBe('Delete layer');
//expect(testInstance.findByType(EuiConfirmModal).props.title).toBe('Delete layer');
expect(testInstance.findByType(EuiConfirmModal).props.title.props.children.props.children).toBe('Delete layer');
expect(testInstance.findByType(EuiConfirmModal).props.confirmButtonText).toBe('Delete');
expect(testInstance.findByType(EuiConfirmModal).props.cancelButtonText).toBe('Cancel');
expect(testInstance.findByType(EuiConfirmModal).props.buttonColor).toBe('danger');
Expand Down

0 comments on commit d572931

Please sign in to comment.