Problem/Motivation

\Drupal\Tests\workspaces\Functional\WorkspaceTestUtilities::createNodeThroughUi exists to test creating nodes by clicking buttons. There may be instances where this is worth testing in the workspaces context, but doing this in a for loop 50 times is excessive and wasteful.

Steps to reproduce

$ grep -r createNodeThroughUi core/modules/workspaces

Proposed resolution

Convert all of them to use $this->drupalCreateNode().

Add one explicit test to verify nodes created via the UI when a workspace is active is assigned to that workspace.

Remaining tasks

Consider doing the same for \Drupal\Tests\workspaces\Functional\WorkspaceTestUtilities::createAndActivateWorkspaceThroughUi

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3612413

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

mstrelan created an issue. See original summary.

mstrelan’s picture

Status: Active » Needs work

Here's a start, feel free to pick this up and convert the rest.

mstrelan’s picture

Issue summary: View changes
Status: Needs work » Needs review
mstrelan’s picture

Issue tags: +Test suite performance