Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey created an issue. See original summary.

idebr’s picture

Status: Active » Needs review
FileSize
3.7 KB

Attached patch switches JavascriptTestBase to WebDriverTestBase.

drunken monkey’s picture

Oh, thanks a lot! Looks pretty good, and test bot is happy, too – excellent!

+++ b/tests/src/FunctionalJavascript/AjaxTest.php
@@ -106,7 +106,7 @@ class AjaxTest extends JavascriptTestBase {
     $this->drupalGet('admin/config/search/search-api/add-index');
-    $assert_session->pageTextContains('Datasources');
+    $assert_session->pageTextContains('Data sources');
     $assert_session->pageTextContains('Content');

This is a bit disturbing, though. How did this even pass before?
Anyways, as we generally use “datasource” (no space) throughout the module, the correct fix here is to change the form definition, I’d say. (Even though, apparently, this makes that assertion less reliable.)

Patch attached, feedback welcome!

Status: Needs review » Needs work

The last submitted patch, 3: 2986222-3--switch_to_WebDriverTestBase.patch, failed testing. View results

drunken monkey’s picture

Ah, what the heck, then let’s just correct all of them …

drunken monkey’s picture

Status: Needs review » Postponed
Issue tags: +Drupal 8.6 dependency

  • drunken monkey committed 12015c5 on 8.x-1.x authored by idebr
    Issue #2986222 by idebr, drunken monkey: Switched Javascript tests to...
drunken monkey’s picture

Status: Postponed » Fixed

Just re-ran the tests and this still works. So: committed.
Thanks a lot again, idebr!

Status: Fixed » Closed (fixed)

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