Add methods to assert that a sequence of strings appears on the page in a given order

Created on 13 October 2016, over 8 years ago
Updated 30 January 2023, about 2 years ago

Problem/Motivation

#2757007: Convert all book web tests to BrowserTestBase uses a method for this, but I believe it should be added to WebAssert. I've already seen similar implementations in contrib.

Proposed resolution

Add the method to WebAssert.

Replace usages in:

  • \Drupal\Tests\book\FunctionalJavascript\BookJavascriptTest::assertOrderInPage()
  • \Drupal\FunctionalJavascriptTests\TableDrag\TableDragTest::assertOrder()
  • \Drupal\Tests\filter\Functional\TextFormatInSubformTest::assertOrder() (still in #3207047: Value & format scrambled when text_format element is in a subform )
  • \Drupal\Tests\layout_builder\FunctionalJavascript\ContentPreviewToggleTest::assertOrderInPage()

Remaining tasks

  • Search for @todos connected with this issue and update to use new assertions.

User interface changes

API changes

Testing additions.

Data model changes

Feature request
Status

Needs work

Version

10.1

Component
PHPUnit 

Last updated about 12 hours ago

Created by

🇦🇺Australia Sam152

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024