Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.

Commit cef24b3

Browse files
authored
changed button from Done to Ok (#323)
* changed button from Done to Ok * unittest fix
1 parent e23c6b9 commit cef24b3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

WebApplication/ClientApp/src/components/modalDownloadProgress.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ export class ModalDownloadProgress extends Component {
7979
/>
8080
<Button className="button" style={
8181
{ width: '116px', height: '36px', borderRadius: '2px', marginLeft: '12px'}}
82-
type="secondary"
82+
type="primary"
8383
size="small"
84-
title="Done"
84+
title="Ok"
8585
onClick={this.props.onClose}
8686
/>
8787
</div>

WebApplication/ClientApp/src/components/modalDownloadProgress.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ describe('modal progress ', () => {
5555
expect(children[0].props['children']).toBe("Missing label.");
5656
});
5757

58-
it('check Done button when specified download url', () => {
58+
it('check Ok button when specified download url', () => {
5959

6060
const props = { url: "someUrl" };
6161

6262
const wrapper = shallow(<ModalDownloadProgress {...props} />);
6363

6464
const button = wrapper.find('Button');
65-
expect(button.prop('title')).toBe('Done');
65+
expect(button.prop('title')).toBe('Ok');
6666
});
6767

6868
it('check that here is NO button available when not used download url', () => {
@@ -85,13 +85,13 @@ describe('modal progress ', () => {
8585
expect(buttons.length).toBe(1);
8686
});
8787

88-
it('should close when DONE button clicked', () => {
88+
it('should close when Ok button clicked', () => {
8989
const closeMockFn = jest.fn();
9090
const props = { onClose: closeMockFn, url: 'http://example.com' };
9191

9292
const wrapper = shallow(<ModalDownloadProgress {...props} />);
9393

94-
const closeButton = wrapper.find({ title: "Done"});
94+
const closeButton = wrapper.find({ title: "Ok"});
9595
expect(closeButton.length).toEqual(1);
9696

9797
closeButton.simulate('click');

0 commit comments

Comments
 (0)