Support from Acquia helps fund testing for Drupal Acquia logo

Comments

GoZ created an issue. See original summary.

GoZ’s picture

Status: Active » Postponed
FileSize
1.66 KB

I only add initial convert, we need #2795041: BrowserTestBase: Add drupalPostWithFormat to continue

dawehner’s picture

To be honest I would prefer to use the HTTP client directly here, its clear what goes on then.

michielnugter’s picture

Status: Postponed » Needs work

Setting it back to needs work.

The test can be fixed with one of these options:
- calling drupalPostForm with the proper requirements
- Converting to JavascriptTestBase if it is actually testing Javascript behavior
- Use the HTTP client directly.

michielnugter’s picture

Issue tags: +phpunit initiative

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

nlisgo’s picture

Assigned: Unassigned » nlisgo

I'm going to work on this one to try and address the failing tests.

michaellenahan’s picture

Issue tags: +Vienna2017
nlisgo’s picture

Assigned: nlisgo » Unassigned
Status: Needs work » Needs review
FileSize
6.06 KB
5.46 KB

Following the direction in #3 and #4, I have used HTTP client.

Mile23’s picture

Check out HistoryTest::getHttpClient().

There are a few other examples of doing this kind of thing, which is why I filed #2911915: Add getHttpClient() to BrowserTestBase to address converting tests that need http requests.

nlisgo’s picture

I introduced some whitespace into my last patch. Resupplying.

nlisgo’s picture

Apologises. Ignore patches in #11. Wrong issue.

dawehner’s picture

Let's postpone on the issue linked by @mile23 #2911915: Add getHttpClient() to BrowserTestBase

Status: Needs review » Needs work

The last submitted patch, 11: convert_web_tests_to-2864035-35.patch, failed testing. View results

nlisgo’s picture

Issue summary: View changes
Status: Needs work » Postponed

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

nlisgo’s picture

Status: Postponed » Needs work

This is now unblocked since #2911915: Add getHttpClient() to BrowserTestBase was fixed.

ApacheEx’s picture

Status: Needs work » Needs review
FileSize
4.88 KB
5.16 KB

Here it is.

Status: Needs review » Needs work

The last submitted patch, 18: 2865407-18.patch, failed testing. View results

ApacheEx’s picture

Status: Needs work » Needs review
FileSize
4.85 KB
1.97 KB

Once more, let's check if it's the reason.

Lendude’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Nice and clean conversion, thank you.

+++ b/core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php
@@ -174,15 +174,23 @@ protected function assertNoContextualLinkPlaceHolder($id) {
+    $http_client = $this->getHttpClient();
...
+      'cookies' => $this->getSessionCookies(),

it was worth waiting for these additions, looks really clean like this.

This was the only remaining webtest test in the contextual module, so the scope is correct being just one test. Updated the IS to reflect this.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed 72d0bff47d to 8.7.x and abec12fbab to 8.6.x. Thanks!

  • alexpott committed 72d0bff on 8.7.x
    Issue #2865407 by nlisgo, ApacheEx, GoZ, dawehner, michielnugter,...

  • alexpott committed abec12f on 8.6.x
    Issue #2865407 by nlisgo, ApacheEx, GoZ, dawehner, michielnugter,...

Status: Fixed » Closed (fixed)

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