While I was working on #2946698: Call to undefined method getSetting() in all tampers which also touches code for the UI, I realize we need UI tests rather sooner than later.

We need these tests for adding, editing and deleting Tamper plugin instances.

The UI tests should go in tests/src/Functional. I recommend each test class to extend \Drupal\Tests\feeds\Functional\FeedsBrowserTestBase.

Comments

MegaChriz created an issue. See original summary.

megachriz’s picture

Status: Postponed » Active

#2939503: Unpublish/Delete nodes not included in feed is committed, thus there is a better base class for functional tests now in Feeds.

megachriz’s picture

Issue summary: View changes

From the issue summary I removed the part that the base class isn't 'ready' (cause for Feeds Tamper it is now).

megachriz’s picture

Status: Active » Needs review
StatusFileSize
new10.86 KB

This adds functional tests for adding, editing, removing and reorder tamper plugins. Note that the test for removing is marked as incomplete. There is a bug with removing tamper plugins and that will be handled in #2965816: Cannot delete tamper plugin via web interface.

I also made some changes to the tamper add form so that it can work without javascript (else it wasn't testable with just a functional test). It would be useful to have a javascript test for adding a Tamper plugin as well. That could also be handled in a follow-up.

Status: Needs review » Needs work

The last submitted patch, 4: feeds_tamper-ui-test-2949203-4.patch, failed testing. View results

megachriz’s picture

Status: Needs work » Needs review
StatusFileSize
new11.46 KB
new619 bytes

Updated config schema.

  • MegaChriz committed f381904 on 8.x-2.x
    Issue #2949203 by MegaChriz: Added UI tests.
    
megachriz’s picture

Status: Needs review » Fixed

Committed #6.

Status: Fixed » Closed (fixed)

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