Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!5822
Issues/3396669: has-error class not applied to media fields
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issues/3396669: has-error class not applied to media fields
issue/drupal-3396669:3396669-has-error-2
into
11.x
Overview
0
Commits
5
Pipelines
1
Changes
5
Open
AKHIL BABU
requested to merge
issue/drupal-3396669:3396669-has-error-2
into
11.x
1 year ago
Overview
0
Commits
5
Pipelines
1
Changes
5
Expand
Closes
#3396669
0
0
Merge request reports
Compare
11.x
11.x (HEAD)
and
latest version
latest version
68e8532f
5 commits,
1 year ago
5 files
+
22
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php
+
4
−
0
Options
@@ -490,6 +490,10 @@ public function testRequiredMediaField(): void {
$assert_session
->
pageTextNotContains
(
'This value should not be null.'
);
$assert_session
->
pageTextContains
(
sprintf
(
'%s field is required.'
,
$field_config
->
label
()));
// Check if 'error' class has been added to media field.
$media_field
=
$assert_session
->
elementExists
(
'css'
,
'#field_unlimited_media-media-library-wrapper'
);
$this
->
assertTrue
(
$media_field
->
hasClass
(
'error'
));
// Open the media library, select an item and save the node.
$this
->
openMediaLibraryForField
(
'field_unlimited_media'
);
$this
->
selectMediaItem
(
0
);
Loading