Problem/Motivation

Some behaviors of the views source plugins are not
pinned by any test:

- view_rows is only offered in styles, view_field only in rows.
- When a view is edited but not saved, source plugins read the unsaved view.
- hide_empty is read from the style or row plugin options. Every fixture has
hide_empty disabled and the tested field in first position, so a change of
where those options come from would not be caught.

Let's add some more tests :

- kernel tests for ui_patterns_views:
- sources availability depending on the context and views plugin type
- a saved view with a modified copy in the views shared tempstore: view_title returns the unsaved title.

- new functional tests:
- a view with two fields where the tested field is not in first position:
hide_empty from the plugin options, hide_empty from the field itself, an
excluded field..etc

- one end-to-end test: a field added in the views UI and not saved is offered
in the component form and rendered in the preview.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

just_like_good_vibes created an issue. See original summary.

just_like_good_vibes’s picture

Assigned: just_like_good_vibes » Unassigned
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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