Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
cf48246a
Verified
Commit
cf48246a
authored
Jun 13, 2022
by
alexpott
Browse files
Issue
#3281451
by tinto: Update Ajax FunctionalJavascript test to not use Bartik and Seven
(cherry picked from commit
ed4df467
)
parent
70fc227f
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php
View file @
cf48246a
...
...
@@ -22,9 +22,9 @@ class AjaxTest extends WebDriverTestBase {
protected
$defaultTheme
=
'stark'
;
public
function
testAjaxWithAdminRoute
()
{
\
Drupal
::
service
(
'theme_installer'
)
->
install
([
'stable'
,
'
seven
'
]);
\
Drupal
::
service
(
'theme_installer'
)
->
install
([
'stable'
,
'
claro
'
]);
$theme_config
=
\
Drupal
::
configFactory
()
->
getEditable
(
'system.theme'
);
$theme_config
->
set
(
'admin'
,
'
seven
'
);
$theme_config
->
set
(
'admin'
,
'
claro
'
);
$theme_config
->
set
(
'default'
,
'stable'
);
$theme_config
->
save
();
...
...
@@ -35,7 +35,7 @@ public function testAjaxWithAdminRoute() {
// admin theme.
$this
->
drupalGet
(
'admin/ajax-test/theme'
);
$assert
=
$this
->
assertSession
();
$assert
->
pageTextContains
(
'Current theme:
seven
'
);
$assert
->
pageTextContains
(
'Current theme:
claro
'
);
// Now click the modal, which should also use the admin theme.
$this
->
drupalGet
(
'ajax-test/dialog'
);
...
...
@@ -44,7 +44,7 @@ public function testAjaxWithAdminRoute() {
$assert
->
assertWaitOnAjaxRequest
();
$assert
->
pageTextContains
(
'Current theme: stable'
);
$assert
->
pageTextNotContains
(
'Current theme:
seven
'
);
$assert
->
pageTextNotContains
(
'Current theme:
claro
'
);
}
/**
...
...
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