summaryrefslogtreecommitdiff
path: root/spec/frontend_integration/ide/helpers/ide_helper.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-11 00:09:17 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-11 00:09:17 +0000
commitaa0e3dcce3143ef4c3d8a481a216bf28ae31a3e3 (patch)
tree8a39ef76ddc367e7747e76621ee3ee072b0ea066 /spec/frontend_integration/ide/helpers/ide_helper.js
parent6ae4485274362bf656fae249a1409266a211d255 (diff)
downloadgitlab-ce-aa0e3dcce3143ef4c3d8a481a216bf28ae31a3e3.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend_integration/ide/helpers/ide_helper.js')
-rw-r--r--spec/frontend_integration/ide/helpers/ide_helper.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend_integration/ide/helpers/ide_helper.js b/spec/frontend_integration/ide/helpers/ide_helper.js
index 20a1e5aceb2..5253560c655 100644
--- a/spec/frontend_integration/ide/helpers/ide_helper.js
+++ b/spec/frontend_integration/ide/helpers/ide_helper.js
@@ -46,14 +46,14 @@ export const findMonacoDiffEditor = () =>
export const findAndSetEditorValue = async (value) => {
const editor = await findMonacoEditor();
- const { uri } = editor.dataset;
+ const uri = editor.getAttribute('data-uri');
monacoEditor.getModel(uri).setValue(value);
};
export const getEditorValue = async () => {
const editor = await findMonacoEditor();
- const { uri } = editor.dataset;
+ const uri = editor.getAttribute('data-uri');
return monacoEditor.getModel(uri).getValue();
};