Commit 7847b5db authored by Jérome Perrin's avatar Jérome Perrin

monaco_editor: fixup broken commit

3d3ee5da had syntax error and test were
not updated for new behavior
parent 5d5e0c49
Pipeline #7272 passed with stage
in 0 seconds
......@@ -171,8 +171,9 @@
.push(addExtraLibrary('./monaco-renderjs.d.ts', 'renderjs'))
.push(addExtraLibrary('./monaco-jio.d.ts', 'jio'));
}
if (modification_dict.hasOwnProperty('editable')){
gadget.editor.updateOptions({readOnly: !this.state.editable});
if (modification_dict.hasOwnProperty('editable')){
this.editor.updateOptions({readOnly: !this.state.editable});
}
}
return queue;
})
......
......@@ -90,9 +90,16 @@
<td>//a[@data-i18n="View"]</td><td></td></tr>
<tr><td>click</td>
<td>//a[@data-i18n="View"]</td><td></td></tr>
<tr><td>waitForElementPresent</td>
<td>//div[@data-gadget-scope="editor"]//iframe</td><td></td></tr>
<tr><td>selectFrame</td>
<td>//div[@data-gadget-scope="editor"]//iframe</td><td></td></tr>
<tr><td>waitForText</td>
<td>//div[@data-gadget-scope="field_my_text_content"]//pre</td>
<td>Hello</td></tr>
<td>//body</td>
<!-- we have line number -->
<td>glob:1*Hello</td></tr>
<tr><td>selectFrame</td>
<td>relative=top</td><td></td></tr>
</tbody></table>
</body>
......
......@@ -66,9 +66,15 @@
<tr><td>click</td>
<td>//div[@class="actions"]//span[text() = "View"]</td><td></td></tr>
<tr><td>waitForElementPresent</td>
<td>css=.bottom iframe</td><td></td></tr>
<tr><td>selectFrame</td>
<td>css=.bottom iframe</td><td></td></tr>
<tr><td>waitForText</td>
<td>css=.bottom pre</td>
<td>Hello</td></tr>
<td>//body</td>
<td>glob:1*Hello</td></tr>
<tr><td>selectFrame</td>
<td>relative=top</td><td></td></tr>
</tbody></table>
</body>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment