Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_base_profile
Commits
30b3b6cd
Commit
30b3b6cd
authored
Sep 22, 2021
by
Lily Yan
Browse files
ISTWCMS-4535 Change assertNoFieldByName() to assertSession()->buttonNotExists()
Change record:
https://www.drupal.org/node/3129738
parent
5d008e53
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/src/Functional/UwWcmsBasicTest.php
View file @
30b3b6cd
...
...
@@ -1748,7 +1748,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
clickLink
(
'Add block'
);
$this
->
clickLink
(
'Facts and figures'
);
// The top-level remove button doesn't exist.
$this
->
assert
NoFieldByName
(
'settings_block_form_field_uw_ff_fact_figure_0_remove'
);
$this
->
assert
Session
()
->
buttonNotExists
(
'settings_block_form_field_uw_ff_fact_figure_0_remove'
);
// Check 'Default background colour' field help text.
$this
->
assertSession
()
->
pageTextContains
(
'When gold is selected, the default colour will always be black.'
);
// Check 'Default background colour' field default value.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment