-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests implementation liberty-ls support in server.xml for diagnostic and quickfix #377
base: main
Are you sure you want to change the base?
Tests implementation liberty-ls support in server.xml for diagnostic and quickfix #377
Conversation
src/test/utils/testUtils.ts
Outdated
*/ | ||
export async function removeConfigDir(projectPath: string): Promise<void> { | ||
try { | ||
await fs.accessSync(projectPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following methods are synchronous methods. await
has no effect on them.
accessSync
, readdirSync
, lstatSync
, unlinkSync
, rmdirSync
src/test/GradleSingleModLCLSTest.ts
Outdated
utils.copyConfig(path.join(utils.getGradleProjectPath(), 'src', 'main', 'liberty', 'config'), path.join(utils.getGradleProjectPath(), 'src', 'main', 'liberty', 'config2')); | ||
}); | ||
|
||
it('Should coppy content of server.xml', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo copy
src/test/GradleSingleModLCLSTest.ts
Outdated
editor = await new EditorView().openEditor('server.xml') as TextEditor; | ||
actualSeverXMLContent = await editor.getText(); | ||
|
||
assert(actualSeverXMLContent.length !== 0, 'Content of server.xml is not in coppied.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo copied. check for similar typos
const qckFixPopupLink = await hoverTxt.findElement(By.xpath("//*[contains(text(), 'Quick Fix')]")); | ||
await qckFixPopupLink.click(); | ||
|
||
const hoverTaskBar = await editor.findElement(By.className('context-view monaco-component bottom left fixed')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is hoverTaskBar
required? There is no actionable task performed by hoverTaskBar
. It seems that removing below two lines does not affect the test. Kindly confirm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, but I have some comments. Please check.
Fixes #370 Fixes #434