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
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
Comment #3
mstrelan commentedHere's a start, feel free to pick this up and convert the rest.
Comment #4
mstrelan commentedComment #5
mstrelan commented