Skip to content

Commit ef55fe9

Browse files
committed
Update remotedev-app
1 parent 1516103 commit ef55fe9

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"redux": "^3.5.2",
8080
"redux-devtools": "^3.3.1",
8181
"redux-devtools-instrument": "^1.3.3",
82-
"remotedev-app": "^0.9.0-beta",
82+
"remotedev-app": "^0.9.0",
8383
"remotedev-slider": "^1.1.1",
8484
"remotedev-utils": "0.0.1"
8585
}

src/app/containers/App.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class App extends Component {
4747
<DevTools
4848
monitor={monitor}
4949
liftedState={liftedState}
50+
monitorState={this.props.monitorState}
5051
dispatch={this.props.liftedDispatch}
5152
testComponent={isRedux && TestGenerator}
5253
/>
@@ -122,6 +123,7 @@ App.propTypes = {
122123
getReport: PropTypes.func.isRequired,
123124
selected: PropTypes.string,
124125
liftedState: PropTypes.object.isRequired,
126+
monitorState: PropTypes.object,
125127
options: PropTypes.object.isRequired,
126128
monitor: PropTypes.string,
127129
position: PropTypes.string,
@@ -136,6 +138,7 @@ function mapStateToProps(state) {
136138
return {
137139
selected: instances.selected,
138140
liftedState: instances.states[id],
141+
monitorState: state.monitor.monitorState,
139142
options: instances.options[id],
140143
monitor: state.monitor.selected,
141144
dispatcherIsOpen: state.monitor.dispatcherIsOpen,

test/app/containers/App.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ const component = mount(<Provider store={store}><App /></Provider>);
1010

1111
describe('App container', () => {
1212
it('should render inspector monitor\'s component', () => {
13-
expect(component.find('div.inspector--jss-0-0').html()).toExist();
13+
expect(component.find('DevtoolsInspector').html()).toExist();
1414
});
1515

1616
it('should contain an empty action list', () => {
1717
expect(
18-
component.find('div.actionListRows--jss-0-4').html()
19-
).toBe('<div class="actionListRows--jss-0-4"></div>');
18+
component.find('ActionList').html()
19+
).toMatch(/<div class="actionListRows-[0-9]+"><\/div>/);
2020
});
2121
});

test/chrome/extension.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ describe('Chrome extension', function() {
3939
});
4040

4141
it('should contain inspector monitor\'s component', async () => {
42-
const val = this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "inspector--jss-")]'))
42+
const val = this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "inspector-")]'))
4343
.getText();
4444
expect(val).toExist();
4545
});
4646

4747
it('should contain an empty actions list', async () => {
48-
const val = await this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "actionListRows--jss-")]'))
48+
const val = await this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "actionListRows-")]'))
4949
.getText();
5050
expect(val).toBe('');
5151
});
@@ -58,7 +58,7 @@ describe('Chrome extension', function() {
5858
this.driver.executeScript('window.open(\'http://zalmoxisus.github.io/examples/router/\')');
5959

6060
await this.driver.wait(() => (
61-
this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "actionListRows--jss-")]'))
61+
this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "actionListRows-")]'))
6262
.getText().then((val) => {
6363
return actionsPattern.test(val);
6464
})

test/electron/devpanel.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ describe('DevTools panel for Electron', function() {
6868
});
6969

7070
it('should contain INIT action', async () => {
71-
const val = await this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "actionListRows--jss-")]'))
71+
const val = await this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "actionListRows-")]'))
7272
.getText();
7373
expect(val).toMatch(/@@INIT/);
7474
});
7575

7676
it('should contain Inspector monitor\'s component', async () => {
77-
const val = await this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "inspector--jss-")]'))
77+
const val = await this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "inspector-")]'))
7878
.getText();
7979
expect(val).toExist();
8080
});

0 commit comments

Comments
 (0)