Coder Social home page Coder Social logo

Comments (7)

BorisOsipov avatar BorisOsipov commented on June 22, 2024 1

@Winify There is only one strange thing that I suspect -
should adequately assert texts (1 retries)
(1 retries) - What kind of retries do you use? could you check with and without retries?

from webdriverio.

BorisOsipov avatar BorisOsipov commented on June 22, 2024

@Winify We need a repository with a reproducible example. Your example and repro steps work well for me.

[0-0] Error in "Snapshot testing.should adequately assert texts"
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 0
+ Received  + 1

  "
....
    Broken Images
+   Challenging DOM
    Checkboxes
    Context Menu
    Digest Authentication (user and pass: admin)
....
  "
    at Context.<anonymous>
[0-0] FAILED in chrome 

Snapshot Summary:
1 snapshot(s) unmatched.

Spec Files:      0 passed, 1 failed, 1 total (100% completed) in 00:00:05

from webdriverio.

wdio-bot avatar wdio-bot commented on June 22, 2024

Thanks for raising this issue 🙏

Unfortunately we can't help you without a reproducible example in this matter. Please read our contributing guidelines on how to create a reproducible example. If you can't provide a reproducible example we will close this issue in 7 days.

If you have any questions please reach out to us on our Discord channel. We are happy to help you out there.

from webdriverio.

Winify avatar Winify commented on June 22, 2024

@BorisOsipov Thank you for the swift response,

And I apologize, because as I created a repro example project.... it actually works as expected.
It looks like something in our framework goes awry, but I could not identify what, as I copied our configs to the repro project as well...

All in all, thank you so much

from webdriverio.

christian-bromann avatar christian-bromann commented on June 22, 2024

Thanks @Winify , let us know if you are able to reproduce this one, then I am happy to re-open and take a look.

from webdriverio.

Winify avatar Winify commented on June 22, 2024

@BorisOsipov You are right!

I am using mocha retries:

  mochaOpts: {
    ui: 'bdd',
    timeout: process.env.SPEC_TIMEOUT ?? 90_000,
    compilers: ['ts:ts-node/register'],
    retries: Number(process.env.RETRIES ?? 0)
  },

In the repro project I emitted this config, as I did not think it was neccessary.

If I remove the RETRIES=1 config from the env file, it fails as expected!

from webdriverio.

wdio-bot avatar wdio-bot commented on June 22, 2024

Thanks for reporting!

We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!

from webdriverio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.