Add Cypress test to the base SEO recipe

Created on 9 October 2024, 3 months ago

Problem/Motivation

Now that Cypress landed in Drupal CMS, we can add end to end tests for our recipes. Lets add one to the base SEO recipe.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Component

Track: SEO

Created by

πŸ‡ΊπŸ‡ΈUnited States thejimbirch Cape Cod, Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @thejimbirch
  • Pipeline finished with Success
    3 months ago
    Total: 573s
    #305065
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    So It Begins...to get a test of the SEO recipe, we'll need some testing framework in place that can spin up Drupal in an isolated fashion. Without that, you won't get far.

    The bad news is we don't have that yet. It was not in scope for ✨ Add End to End (e2e) testing Active .

    The good news is that XB blazed this trail and we can borrow a lot of prior art from them. So that's what we'll do.

    Self-assigning to get a test started and bring it far enough for you to fill in the gaps.

  • Pipeline finished with Failed
    3 months ago
    Total: 541s
    #305191
  • Pipeline finished with Failed
    3 months ago
    Total: 744s
    #305211
  • Pipeline finished with Failed
    3 months ago
    Total: 333s
    #305229
  • Pipeline finished with Failed
    3 months ago
    Total: 529s
    #305235
  • Pipeline finished with Failed
    3 months ago
    Total: 624s
    #305241
  • Pipeline finished with Failed
    3 months ago
    Total: 680s
    #305266
  • Pipeline finished with Failed
    3 months ago
    Total: 835s
    #305277
  • Pipeline finished with Canceled
    3 months ago
    Total: 275s
    #305300
  • Pipeline finished with Success
    3 months ago
    Total: 613s
    #305307
  • Pipeline finished with Failed
    3 months ago
    Total: 578s
    #305321
  • Pipeline finished with Canceled
    3 months ago
    Total: 298s
    #305356
  • Pipeline finished with Failed
    3 months ago
    Total: 595s
    #305365
  • Pipeline finished with Failed
    3 months ago
    Total: 887s
    #305392
  • Pipeline finished with Canceled
    3 months ago
    Total: 260s
    #305411
  • Pipeline finished with Failed
    3 months ago
    Total: 629s
    #305418
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts
  • Pipeline finished with Failed
    3 months ago
    Total: 564s
    #305652
  • First commit to issue fork.
  • Hi Adam,

    I added https://testing-library.com/docs/cypress-testing-library/intro/ which help filling inputs using findBy to find a specific input in the page (e.g: findByLabelText('Path'))

  • Pipeline finished with Failed
    3 months ago
    Total: 568s
    #306020
  • Pipeline finished with Failed
    3 months ago
    Total: 587s
    #306019
  • I will let you check before I continue with the tests writing.

    Thank you Adam,

  • Pipeline finished with Failed
    3 months ago
    Total: 630s
    #306039
  • Pipeline finished with Failed
    3 months ago
    Total: 634s
    #306038
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    Thanks for that guidance, @boulaffasae! I'm fairly new to Cypress so I appreciate the examples.

    That said, we don't really have the testing framework or infrastructure -- or the strategy around test writing -- fully fleshed out yet, so would it be okay if I handled this issue myself for now, just to get a sense of what makes the most sense for Drupal CMS going forward? I'm happy to leave the Cypress-specific test writing to you, since you obviously have more experience with it than I do, but if you look at the issue summary, you'll see that it probably doesn't make sense for all tests to be written in Cypress. :)

    Keep watching this space, though! I will un-assign this issue from myself once I feel like I've got a stronger handle on things.

  • Pipeline finished with Failed
    3 months ago
    Total: 604s
    #306179
  • Pipeline finished with Failed
    3 months ago
    Total: 588s
    #306296
  • Pipeline finished with Failed
    3 months ago
    Total: 349s
    #306355
  • Pipeline finished with Failed
    3 months ago
    Total: 557s
    #306364
  • Pipeline finished with Failed
    3 months ago
    Total: 398s
    #306731
  • Pipeline finished with Success
    3 months ago
    Total: 664s
    #306740
  • Pipeline finished with Success
    3 months ago
    Total: 863s
    #311494
  • Pipeline finished with Success
    3 months ago
    Total: 612s
    #311633
  • Pipeline finished with Failed
    3 months ago
    Total: 650s
    #311874
  • Pipeline finished with Canceled
    3 months ago
    Total: 301s
    #311902
  • Pipeline finished with Failed
    3 months ago
    Total: 797s
    #311906
  • Pipeline finished with Failed
    3 months ago
    Total: 622s
    #312646
  • Pipeline finished with Failed
    3 months ago
    Total: 654s
    #312665
  • Pipeline finished with Failed
    3 months ago
    Total: 633s
    #312685
  • Pipeline finished with Failed
    3 months ago
    Total: 645s
    #312699
  • Pipeline finished with Failed
    3 months ago
    Total: 661s
    #312766
  • Pipeline finished with Failed
    3 months ago
    Total: 1073s
    #312795
  • Pipeline finished with Success
    3 months ago
    Total: 1137s
    #312811
  • Pipeline finished with Success
    3 months ago
    Total: 798s
    #312853
  • Pipeline finished with Success
    3 months ago
    Total: 792s
    #312886
  • Pipeline finished with Success
    3 months ago
    Total: 802s
    #312988
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts
  • Pipeline finished with Canceled
    3 months ago
    Total: 833s
    #313010
  • Pipeline finished with Success
    3 months ago
    Total: 850s
    #313019
  • Pipeline finished with Skipped
    3 months ago
    #313031
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    Whew, that took a long time to get right. But I think I mostly have it. The "test framework", such as it is, is very bare-bones right now but we'll fill in more functionality as we need it.

  • πŸ‡ΊπŸ‡ΈUnited States thejimbirch Cape Cod, Massachusetts

    Thanks for the extra effort on this!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024