-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Assertions do not lead to error in latest version of wdio-ui5-service #501
Comments
Can you please help to track this issue down to root cause and find the exact version of |
Sure! I just checked it - as far as I can see there was no release between version EDIT: I saw that there is a version |
I'm pretty sure #506 will not fix this issue. The problem is not the message itself, but the test not stopping & failing when the assertion is wrong. The test should have stopped after
but it only fails after
Meaning that the first statement does not seem to execute the assertion as expected. |
Yes you are right, this PR will only improve the error messages. When I try to reproduce your issue with our tests and changed our first it.only("should trigger search on ListReport page", async () => {
await FioriElementsFacade.execute((Given, When, Then) => {
Then.onTheMainPage.iSeeThisPage()
Then.onTheDetailPage.iSeeThisPage()
})
}) an Error is correctly thrown. Only the error message is a little cumbersome which #506 will solve. Could you maybe try to reproduce this issue with our tests? Thanks in advance! |
hey 👋 - silence for 30 days 🤐 ... anybody? 😀 |
closed 📴 because silencio 🤫 since an additional 14 days after staleness 📠 |
Hey @Siolto, I apparently forgot to keep up with this issue. Sadly I am now back at writing wdi5/webdriver tests using the Fiori Test Facade and I am again facing these issues. I'm using the latest versions of wdio and the wdio-ui5-service
You can also ping me directly so I can link the repository this is happening in. |
Describe the bug
We are currently using version
1.0.3
ofwdio-ui5-service
in our webdriver tests. For writing tests we are currently using the fe-testlib (https://ui5-community.github.io/wdi5/#/fe-testlib).We recently tried to update our
wdio-ui5-service
version to1.5.1
. However, suddenly the assertions done in our facades do no longer lead to errors.Here's an example test:
Obviously, the call in the facade should fail - as it cannot be on both pages.
However, the error that shows is
Which is executed after the assertions that are done. If I remove the
expect(true).toBe(false)
assertion, the test runs green, which is also wrong.If I roll back to
1.0.3
I see an expected error.To Reproduce
Sadly this is a private repository, so I cannot share it.
Expected behavior
This code:
should lead to an error in the execution, log it accordingly and should let the test fail.
Logs/Console Output
if applicable, please copypasta code-fenced log output, e.g.
Runtime Env (please complete the following information):
wdi5/wdio-ui5-service
version: 1.5.2UI5
version: 1.108.4wdio
-version (output ofwdio --version
): ^7.32.0node
-version (output ofnode --version
): 18.16.1Additional context
The text was updated successfully, but these errors were encountered: