Giter VIP home page Giter VIP logo

Comments (3)

FLeinzi avatar FLeinzi commented on September 25, 2024 1

Your example has revealed many more problems in the email steps:

When you indent a header line, it won't be recognized as part of the header. So in 3.0.2 your test was green, because the line was ignored. This was NOT introduced in 3.0.3 and seems to be a much older error. We have to investigate this further.

Since 3.0.3 such a line will be mistakenly treated as part of the body. We should strip the lines before checking for a header line.

In 3.0.2 (and before) you can write almost everything in header-like style, e.g.:

Then an email should have been sent with:
  """
  FOOBAR: This line will be ignored
  """

and the step will succeed. Also for 3.0.3.

Conclusion: We have to rework the MailFinder and investigate how long this is an issue.

from spreewald.

judithroth avatar judithroth commented on September 25, 2024

Before Spreewald 3.0.3, the general email step was able to assert mails without their text bodies.

I've taken a look at the mail steps today as well. Does the following work for you?

    Then an email should have been sent with:
      """
      Subject: My subject

      *
      """

I added a comment to the README of Spreewald a few minutes ago that the behavior of matching body lines has changed in recent versions. Before, lines that were not mentioned were omitted, now the asterisk is needed for that.

from spreewald.

judithroth avatar judithroth commented on September 25, 2024

I tested again and the asterisk is not necessary in case you only want to test the header. @FLeinzi had the correct suspicion 👍

from spreewald.

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.