Skip to content

Commit

Permalink
added code to update the old content
Browse files Browse the repository at this point in the history
  • Loading branch information
SuparnaSuresh committed Nov 20, 2024
1 parent 7fdc278 commit 108bfd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/GradleSingleModLCLSTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('LCLS Test for Gradle Project', function () {
await VSBrowser.instance.openResources(path.join(utils.getGradleProjectPath(), 'src', 'main', 'liberty', 'config', 'server.xml'));

editor = await new EditorView().openEditor('server.xml') as TextEditor;

const actualContent = await editor.getText();
const stanzaSnippet = "<logging appsWriteJson = \"wrong\" />";
const expectedText = "<logging appsWriteJson = \"true\" />";
await editor.typeTextAt(17, 5, stanzaSnippet);
Expand Down Expand Up @@ -60,5 +60,9 @@ describe('LCLS Test for Gradle Project', function () {
await utils.delay(3000);
console.log("Content after Quick fix : ", updatedContent);
assert(updatedContent.includes(expectedText), 'quick fix not applied correctly.');
editor.clearText();
editor.setText(actualContent);
console.log("Content restored");

}).timeout(25000);
});

0 comments on commit 108bfd5

Please sign in to comment.