Problem/Motivation

This is a follow up of Make paragraphs module working with field_group version 3.x with support for the field_layout module
. In that issue we added support for field_group 3.x but due a bug in field_group we couldn't add the test for it yet.

Proposed resolution

Once #3064890 is fixed we can update the tests to use field_group 3.x.

let's see

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mpp created an issue. See original summary.

mpp’s picture

Status: Active » Needs review
FileSize
1.77 KB

Added a patch to update the tests to field_group 3.x. These should fail as #3064890 needs to be solved first.

Status: Needs review » Needs work

The last submitted patch, 2: 3073177_2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

swentel’s picture

Issue summary: View changes
Status: Needs work » Needs review
FileSize
416 bytes
swentel’s picture

I think the tests will pass if the test uses standard drupalPostform. The issues with those notices are because of drag and drop which acts annoying sometimes (fixed at least one issue which was related to DS too though)

Status: Needs review » Needs work

The last submitted patch, 5: 3073177-5.patch, failed testing. View results

swentel’s picture

Wow interesting, will have a look.

swentel’s picture

Status: Needs work » Needs review
FileSize
1.79 KB

Hmm right, the tests were wrong in that sense that it didn't set the region of the field group. This fixes them.

However, one can argue whether the field group shouldn't be in the default region (usually 'content', unless ds is also enabled) anyway when creating. This is something which wasn't a problem in Drupal before the region key was introduced (which is part of core Field UI now, nothing todo with Field Layout).

Given that, it's not a bad idea to set that region anyway in the test. I've opened #3086050: Set default region when creating a field group to set a default region in Field Group though too.

Status: Needs review » Needs work

The last submitted patch, 9: 3073177-9.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

swentel’s picture

Status: Needs work » Needs review
FileSize
1.79 KB

Ugh, names ...

  • Berdir committed e8f27b7 on 8.x-1.x authored by swentel
    Issue #3073177 by swentel, mpp: Add tests for field_group 3.x
    
Berdir’s picture

Title: [PP] Add tests for field_group 3.x » Add tests for field_group 3.x
Status: Needs review » Fixed

Thanks! Wasn't the expectation of my tweet that you work on it yourself but glad for the help :)

swentel’s picture

No problem at all :) I was on a roll anyway and I'm glad this one is sorted out. It gives us at least the comfort to say that things are mostly stable, at least on the API side of the modules, now trying to fix the front-end part - that might be a /little/ more tricky :)

mpp’s picture

Awesome, thanks!

Status: Fixed » Closed (fixed)

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