mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 22:47:39 +00:00
Added more webdriver tests testing against a real browser.
This commit is contained in:
@@ -5,6 +5,7 @@ import Collapser from './Collapser'
|
||||
export default class LayerListGroup extends React.Component {
|
||||
static propTypes = {
|
||||
title: PropTypes.string.isRequired,
|
||||
"data-wd-key": PropTypes.string,
|
||||
isActive: PropTypes.bool.isRequired,
|
||||
onActiveToggle: PropTypes.func.isRequired
|
||||
}
|
||||
@@ -12,6 +13,7 @@ export default class LayerListGroup extends React.Component {
|
||||
render() {
|
||||
return <li className="maputnik-layer-list-group">
|
||||
<div className="maputnik-layer-list-group-header"
|
||||
data-wd-key={"layer-list-group:"+this.props["data-wd-key"]}
|
||||
onClick={e => this.props.onActiveToggle(!this.props.isActive)}
|
||||
>
|
||||
<span className="maputnik-layer-list-group-title">{this.props.title}</span>
|
||||
|
||||
Reference in New Issue
Block a user