- Issue created by @thejimbirch
- πΊπΈ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.
- Merge request !120Ensure the test framework can create and tear down a test site β (Merged) created by phenaproxima
- 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'))
I will let you check before I continue with the tests writing.
Thank you Adam,
- πΊπΈ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.
-
phenaproxima β
committed 9c8b266d on 0.x
Issue #3479610 by phenaproxima, boulaffasae, thejimbirch: Add Cypress...
-
phenaproxima β
committed 9c8b266d on 0.x
- πΊπΈ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.