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
!866
Issue
#2845319
: The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#2845319
: The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers
issue/drupal-2845319:2845319-the-highlighting-of
into
9.3.x
Overview
2
Commits
1396
Pipelines
0
Changes
2
2 unresolved threads
Hide all comments
Open
Ben Mullins
requested to merge
issue/drupal-2845319:2845319-the-highlighting-of
into
9.3.x
3 years ago
Overview
2
Commits
1396
Pipelines
0
Changes
2
2 unresolved threads
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
a9edcb0d
Show latest version
2 files
+
62
−
25
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
a9edcb0d
Issue
#3088234
by tim.plunkett: Use $defaultTheme for using views_test_classy_subtheme
· a9edcb0d
Alex Pott
authored
2 years ago
(cherry picked from commit
3388371b
)
core/modules/views_ui/tests/src/FunctionalJavascript/AdminAjaxTest.php
0 → 100644
+
62
−
0
Options
<?php
namespace
Drupal\Tests\views_ui\FunctionalJavascript
;
use
Drupal\FunctionalJavascriptTests\WebDriverTestBase
;
/**
* Tests the admin UI AJAX interactions.
*
* @group views_ui
*/
class
AdminAjaxTest
extends
WebDriverTestBase
{
/**
* {@inheritdoc}
*/
protected
static
$modules
=
[
'views_ui'
,
];
/**
* {@inheritdoc}
*/
protected
$defaultTheme
=
'views_test_classy_subtheme'
;
/**
* {@inheritdoc}
*/
protected
function
setUp
():
void
{
parent
::
setUp
();
$this
->
drupalLogin
(
$this
->
createUser
([
'administer views'
,
]));
}
/**
* Confirms that form_alter is triggered after AJAX rebuilds.
*/
public
function
testAjaxRebuild
()
{
\Drupal
::
service
(
'theme_installer'
)
->
install
([
'views_test_classy_subtheme'
]);
$this
->
config
(
'system.theme'
)
->
set
(
'default'
,
'views_test_classy_subtheme'
)
->
save
();
$page
=
$this
->
getSession
()
->
getPage
();
$assert_session
=
$this
->
assertSession
();
$this
->
drupalGet
(
'admin/structure/views/view/user_admin_people'
);
$assert_session
->
pageTextContains
(
'This is text added to the display tabs at the top'
);
$assert_session
->
pageTextContains
(
'This is text added to the display edit form'
);
$page
->
clickLink
(
'User: Name (Username)'
);
$assert_session
->
waitForElementVisible
(
'css'
,
'.views-ui-dialog'
);
$page
->
fillField
(
'Label'
,
'New Title'
);
$page
->
find
(
'css'
,
'.ui-dialog-buttonset button:contains("Apply")'
)
->
press
();
$assert_session
->
waitForElementRemoved
(
'css'
,
'.views-ui-dialog'
);
$assert_session
->
pageTextContains
(
'This is text added to the display tabs at the top'
);
$assert_session
->
pageTextContains
(
'This is text added to the display edit form'
);
}
}
Loading