We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
remotedev-app
1 parent 1516103 commit ef55fe9Copy full SHA for ef55fe9
package.json
@@ -79,7 +79,7 @@
79
"redux": "^3.5.2",
80
"redux-devtools": "^3.3.1",
81
"redux-devtools-instrument": "^1.3.3",
82
- "remotedev-app": "^0.9.0-beta",
+ "remotedev-app": "^0.9.0",
83
"remotedev-slider": "^1.1.1",
84
"remotedev-utils": "0.0.1"
85
}
src/app/containers/App.js
@@ -47,6 +47,7 @@ class App extends Component {
47
<DevTools
48
monitor={monitor}
49
liftedState={liftedState}
50
+ monitorState={this.props.monitorState}
51
dispatch={this.props.liftedDispatch}
52
testComponent={isRedux && TestGenerator}
53
/>
@@ -122,6 +123,7 @@ App.propTypes = {
122
123
getReport: PropTypes.func.isRequired,
124
selected: PropTypes.string,
125
liftedState: PropTypes.object.isRequired,
126
+ monitorState: PropTypes.object,
127
options: PropTypes.object.isRequired,
128
monitor: PropTypes.string,
129
position: PropTypes.string,
@@ -136,6 +138,7 @@ function mapStateToProps(state) {
136
138
return {
137
139
selected: instances.selected,
140
liftedState: instances.states[id],
141
+ monitorState: state.monitor.monitorState,
142
options: instances.options[id],
143
monitor: state.monitor.selected,
144
dispatcherIsOpen: state.monitor.dispatcherIsOpen,
test/app/containers/App.spec.js
@@ -10,12 +10,12 @@ const component = mount(<Provider store={store}><App /></Provider>);
10
11
describe('App container', () => {
12
it('should render inspector monitor\'s component', () => {
13
- expect(component.find('div.inspector--jss-0-0').html()).toExist();
+ expect(component.find('DevtoolsInspector').html()).toExist();
14
});
15
16
it('should contain an empty action list', () => {
17
expect(
18
- component.find('div.actionListRows--jss-0-4').html()
19
- ).toBe('<div class="actionListRows--jss-0-4"></div>');
+ component.find('ActionList').html()
+ ).toMatch(/<div class="actionListRows-[0-9]+"><\/div>/);
20
21
test/chrome/extension.spec.js
@@ -39,13 +39,13 @@ describe('Chrome extension', function() {
39
40
41
it('should contain inspector monitor\'s component', async () => {
42
- const val = this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "inspector--jss-")]'))
+ const val = this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "inspector-")]'))
43
.getText();
44
expect(val).toExist();
45
46
it('should contain an empty actions list', async () => {
- const val = await this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "actionListRows--jss-")]'))
+ const val = await this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "actionListRows-")]'))
expect(val).toBe('');
@@ -58,7 +58,7 @@ describe('Chrome extension', function() {
58
this.driver.executeScript('window.open(\'http://zalmoxisus.github.io/examples/router/\')');
59
60
await this.driver.wait(() => (
61
- this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "actionListRows--jss-")]'))
+ this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "actionListRows-")]'))
62
.getText().then((val) => {
63
return actionsPattern.test(val);
64
})
test/electron/devpanel.spec.js
@@ -68,13 +68,13 @@ describe('DevTools panel for Electron', function() {
68
69
70
it('should contain INIT action', async () => {
71
72
73
expect(val).toMatch(/@@INIT/);
74
75
76
it('should contain Inspector monitor\'s component', async () => {
77
- const val = await this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "inspector--jss-")]'))
+ const val = await this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "inspector-")]'))
78
0 commit comments