Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
layout_builder_styles
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
layout_builder_styles
Commits
2afbc90f
Commit
2afbc90f
authored
2 years ago
by
Luke.Leber
Committed by
bkosborne
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue #3279507 by Luke.Leber: Tests are broken in HEAD
parent
ebbf2635
No related branches found
Branches containing commit
Tags
8.x-1.0-beta5
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/src/Functional/LayoutBuilderStyleGroupTest.php
+2
-1
2 additions, 1 deletion
tests/src/Functional/LayoutBuilderStyleGroupTest.php
tests/src/Functional/LayoutBuilderStyleTest.php
+1
-1
1 addition, 1 deletion
tests/src/Functional/LayoutBuilderStyleTest.php
with
3 additions
and
2 deletions
tests/src/Functional/LayoutBuilderStyleGroupTest.php
+
2
−
1
View file @
2afbc90f
...
...
@@ -72,6 +72,7 @@ class LayoutBuilderStyleGroupTest extends BrowserTestBase {
$this
->
drupalLogin
(
$this
->
drupalCreateUser
([
'configure any layout'
,
'manage layout builder styles'
,
'manage layout builder style groups'
,
]));
LayoutBuilderStyleGroup
::
create
([
...
...
@@ -156,7 +157,7 @@ class LayoutBuilderStyleGroupTest extends BrowserTestBase {
])
->
save
();
// Confirm we cannot delete a group that has styles associated with it.
$this
->
drupalGet
(
'/admin/config/content/layout_builder_style/group/
default
/delete'
);
$this
->
drupalGet
(
'/admin/config/content/layout_builder_style/group/
testsingle
/delete'
);
$assert_session
->
responseContains
(
'You may not remove this group'
);
$this
->
drupalGet
(
'/admin/config/content/layout_builder_style/group/testempty/delete'
);
$assert_session
->
responseNotContains
(
'You may not remove this group'
);
...
...
This diff is collapsed.
Click to expand it.
tests/src/Functional/LayoutBuilderStyleTest.php
+
1
−
1
View file @
2afbc90f
...
...
@@ -172,7 +172,7 @@ class LayoutBuilderStyleTest extends BrowserTestBase {
$page
->
clickLink
(
'Add block'
);
$page
->
clickLink
(
'Powered by Drupal'
);
// Verify that only a single option may be selected.
$assert_session
->
elementExists
(
'css'
,
'
fieldset input
[name=layout_builder_style_group]'
);
$assert_session
->
elementExists
(
'css'
,
'[name=layout_builder_style_group]'
);
$page
->
selectFieldOption
(
'layout_builder_style_group'
,
'Foobar'
);
$page
->
pressButton
(
'Add block'
);
$page
->
pressButton
(
'Save layout'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment