mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
Explore update button labels (#3534)
* resolve ui ambiguity * resolve button name ambiguity * update test
This commit is contained in:
parent
17c7ca239a
commit
82b85d1d6c
@ -93,7 +93,7 @@ export default class DisplayQueryButton extends React.PureComponent {
|
|||||||
<ModalTrigger
|
<ModalTrigger
|
||||||
animation={this.props.animation}
|
animation={this.props.animation}
|
||||||
isButton
|
isButton
|
||||||
triggerNode={<span>Query</span>}
|
triggerNode={<span>View Query</span>}
|
||||||
modalTitle={t('Query')}
|
modalTitle={t('Query')}
|
||||||
bsSize="large"
|
bsSize="large"
|
||||||
beforeOpen={this.beforeOpen}
|
beforeOpen={this.beforeOpen}
|
||||||
|
@ -41,7 +41,7 @@ export default function QueryAndSaveBtns(
|
|||||||
bsStyle={qryButtonStyle}
|
bsStyle={qryButtonStyle}
|
||||||
disabled={!!errorMessage}
|
disabled={!!errorMessage}
|
||||||
>
|
>
|
||||||
<i className="fa fa-bolt" /> Query
|
<i className="fa fa-bolt" /> Run Query
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ describe('QueryAndSaveButtons', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('renders buttons with correct text', () => {
|
it('renders buttons with correct text', () => {
|
||||||
expect(wrapper.find(Button).contains(' Query')).to.eql(true);
|
expect(wrapper.find(Button).contains(' Run Query')).to.eql(true);
|
||||||
expect(wrapper.find(Button).contains(' Save')).to.eql(true);
|
expect(wrapper.find(Button).contains(' Save')).to.eql(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user