question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Happy path tests are failing on 'Language server validation' step

See original GitHub issue

Describe the bug

Happy path tests are failing on the Language server validation step.

14:06:25   Language server validation
14:09:06     ✓ Java LS initialization (160259ms)
14:10:11     1) Error highlighting
14:10:11   [ERROR] CheReporter runner.on.fail: Language server validation Error highlighting failed after 65388ms
14:10:11 
14:10:11 
14:10:11   4 passing (4m)
14:10:11   1 failing
14:10:11 
14:10:11   1) Language server validation
14:10:11        Error highlighting:
14:10:11      TimeoutError: Exceeded maximum visibility checkings attempts for 'By(xpath, //div[contains(@style, 'top:551px')]//div[contains(@class, 'squiggly-error')])' element, timeouted after 60000
14:10:11       at DriverHelper.waitVisibility (/tmp/e2e/utils/DriverHelper.ts:152:15)
14:10:11       at process._tickCallback (internal/process/next_tick.js:68:7)

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

I checked it on a test PR without any changes: https://github.com/eclipse/che-theia/pull/695#issuecomment-775092583

Expected behavior

The tests are happy.

Runtime

I detected it on PR’s check

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
dmytro-ndpcommented, Feb 17, 2021
0reactions
RomanNikitenkocommented, Feb 17, 2021

It is really strange that it was required 20 seconds wait before typing into the Editor, and that 120 seconds were not enough to highlight error.

@dmytro-ndp As I mentioned above for my current issue it’s pretty critical to have Happy Path tests working. So, I added a delay to Language server validation step. You can see my changes here - actually it’s just one line with the delay 20 seconds:

await driverHelper.getDriver().sleep(20000);

Maybe 20 seconds is too long delay - I don’t know - it’s just a workaround for testing my changes.

Today I rerun the tests 6 times, Language server validation test passed successfully without any exception. You can see it in the corresponding reports:

The tests failed due to another issue: https://github.com/eclipse/che/issues/19085.

120 seconds were not enough to highlight error

Note: my delay is before typing a text, not to highlight error

Read more comments on GitHub >

github_iconTop Results From Across the Web

Re: [che-dev] Status of Happy path PR check of Eclipse Che repos
E2E Happy path tests fails on autocomplete validation step. If your PR is for Eclipse Che repo - please, make sure you have...
Read more >
Don't just test the happy path. The point of this ... - Dev Genius
Happy path testing can leave gaps for nulls, incorrect values and a host of error checking/validating errors to slip into a production system...
Read more >
HAPPY PATH TESTING - SOFTWARE TESTING - H2k Infosys
Happy Path testing is a procedure where the test uses the known input and executes without any exception and produce expected output.
Read more >
r25907 - Language Server - Locations - rest (fia/pull/49']#49 ...
Language Server - Locations - rest (#49) * remove license from Command.java ... Right now, this provides some testing the happy path: you...
Read more >
Testing Your Assistant - Rasa
If data validation results in errors, training a model can also fail or ... Basics; Button Payload; Custom Actions; Forms Happy Path; Forms...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found