Skip to content
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

e2e test for the product detail page is failing once in a while #2634

Open
mitelg opened this issue Mar 8, 2024 · 0 comments
Open

e2e test for the product detail page is failing once in a while #2634

mitelg opened this issue Mar 8, 2024 · 0 comments

Comments

@mitelg
Copy link
Contributor

mitelg commented Mar 8, 2024

Description

https://github.com/shopware5/shopware/actions/runs/7771045464/job/21192188977

@captchaInactive @evaluations
  Scenario: I can write an evaluation                                                                                   # Tests/Frontend/Detail/detail.feature:62
    Given I am on the detail page for article 100                                                                       # Shopware\Tests\Mink\Tests\Frontend\Detail\bootstrap\DetailContext::iAmOnTheDetailPageForArticle()
    Then I follow "Bewertungen"                                                                                         # Behat\MinkExtension\Context\MinkContext::clickLink()
    And I should see "Bewertung schreiben"                                                                              # Behat\MinkExtension\Context\MinkContext::assertPageContainsText()
    When I write an evaluation:                                                                                         # Shopware\Tests\Mink\Tests\Frontend\Detail\bootstrap\DetailContext::iWriteAnEvaluation()
      | field        | value          |
      | sVoteName    | Max Mustermann |
      | sVoteStars   | 3              |
      | sVoteSummary | Neue Bewertung |
      | sVoteComment | Hallo Welt     |
    Then I should not see "Bitte füllen Sie alle rot markierten Felder aus"                                             # Behat\MinkExtension\Context\MinkContext::assertPageNotContainsText()
    But I should see "Vielen Dank für die Abgabe Ihrer Bewertung! Ihre Bewertung wird nach Überprüfung freigeschaltet." # Behat\MinkExtension\Context\MinkContext::assertPageContainsText()
      
Behat\Mink\Exception\ResponseTextException: The text "Vielen Dank für die Abgabe Ihrer Bewertung! Ihre Bewertung wird nach Überprüfung freigeschaltet." was not found anywhere in the text of the current page.
in /home/runner/work/shopware/shopware/vendor/behat/mink/src/WebAssert.php:907
      Stack trace:
      #0 /home/runner/work/shopware/shopware/vendor/behat/mink/src/WebAssert.php(293): Behat\Mink\WebAssert->assertResponseText()
      #1 /home/runner/work/shopware/shopware/vendor/friends-of-behat/mink-extension/src/Behat/MinkExtension/Context/MinkContext.php(292): Behat\Mink\WebAssert->pageTextContains()
Scenario failed!

PHP Version

8.1

Shopware Version

5.7 dev

How to reproduce

run detail e2e test.
https://github.com/shopware5/shopware/blob/5.7/tests/Mink/Tests/Frontend/Detail/detail.feature#L61

Expected behaviour

test should run without being flacky

Actual behaviour

test is failing from time to time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant