Support from Acquia helps fund testing for Drupal Acquia logo

Comments

GoZ created an issue. See original summary.

GoZ’s picture

dawehner’s picture

It feels like we should maybe have some JS test coverage for these forms, just wondering ...

dawehner’s picture

Status: Needs review » Needs work

Do you mind actually converting it to a JS test?

dawehner’s picture

Status: Needs work » Closed (duplicate)
GoZ’s picture

@dawehner are you sure about duplicate with #2780063: Convert web tests to browser tests for datetime and datetime_range modules ?
this seems to have nothing to do with datetime module.

michielnugter’s picture

I don't think it's a duplicate either. There are some tests that should be Browser tests. I have postponed this one on the JavascriptTestBase conversion though: #2809513: Convert AJAX part of \Drupal\responsive_image\Tests\ResponsiveImageFieldUiTest to JavascriptTestBase and the rest to BrowserTestBase. We need to get that in first and then finish up this issue.

dawehner’s picture

I have no idea what I was thinking :P

GoZ’s picture

Assigned: GoZ » Unassigned

@dawehner there is some days like that.

As other postponed WTB to BTB issues, may be we could create an issue for the postponed JavascriptTestBase and at least convert what can be converted right now ?

michielnugter’s picture

Issue summary: View changes
Status: Postponed » Needs work

I looked again at the module and there are 3 tests in the module:

- 1 can be converted directly without dependencies (ResponsiveImageAdminUITest)
- 1 has at least a partial conversion to JTB (ResponsiveImageFieldUiTest)
- 1 has a dependency on image (ResponsiveImageFieldDisplayTest).

I changed the scope for this issue to only the AdminUITest, increased the scope for the JavascriptTestBase conversion and moved ResponsiveImageFieldUiTest out of this scope and into the follow-up for image (yet to be created).

Can you reroll the patch with only the ResponsiveImageAdminUITest test?

dawehner’s picture

Title: Convert web tests to browser tests for responsive_image module » Convert [1/3] web tests to browser tests for responsive_image module

I'm wondering whether we should make it clear in the title how much of the tests are gonna be converted?

michielnugter’s picture

Issue tags: +phpunit initiative
jofitz’s picture

Status: Needs work » Needs review
FileSize
3.04 KB
2.16 KB

Rerolled the patch with only the ResponsiveImageAdminUITest test, as requested in #10.

michielnugter’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, looks good to me!

dawehner’s picture

Nice. One step towards it!

  • catch committed 3a6a71a on 8.4.x
    Issue #2863984 by Jo Fitzgerald, GoZ, michielnugter: Convert [1/3] web...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.4.x, thanks!

Status: Fixed » Closed (fixed)

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