Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
project_browser
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
project_browser
Merge requests
!282
Issue
#3315860
: Change the position of the Browse tab in the local task order
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3315860
: Change the position of the Browse tab in the local task order
issue/project_browser-3315860:3315860-change-the-position
into
1.0.x
Overview
8
Commits
8
Pipelines
4
Changes
2
Merged
Srishti Bankar
requested to merge
issue/project_browser-3315860:3315860-change-the-position
into
1.0.x
2 years ago
Overview
8
Commits
8
Pipelines
4
Changes
2
Expand
0
0
Merge request reports
Compare
1.0.x
version 10
8f6bc517
1 year ago
version 9
478ebf83
1 year ago
version 8
8c5127ec
1 year ago
version 7
5b1d76cc
1 year ago
version 6
712a2f5f
1 year ago
version 5
a50c54a7
2 years ago
version 4
44414887
2 years ago
version 3
592d51d5
2 years ago
version 2
0923cc7d
2 years ago
version 1
f5fe229d
2 years ago
1.0.x (base)
and
latest version
latest version
f2aee6b3
8 commits,
1 year ago
version 10
8f6bc517
7 commits,
1 year ago
version 9
478ebf83
6 commits,
1 year ago
version 8
8c5127ec
18 commits,
1 year ago
version 7
5b1d76cc
17 commits,
1 year ago
version 6
712a2f5f
16 commits,
1 year ago
version 5
a50c54a7
3 commits,
2 years ago
version 4
44414887
3 commits,
2 years ago
version 3
592d51d5
2 commits,
2 years ago
version 2
0923cc7d
2 commits,
2 years ago
version 1
f5fe229d
1 commit,
2 years ago
2 files
+
52
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
tests/src/Functional/ProjectBrowserMenuTabsTest.php
0 → 100644
+
51
−
0
Options
<?php
namespace
Drupal\Tests\project_browser\Functional
;
use
Drupal\Tests\BrowserTestBase
;
/**
* Tests Project Browser Menu tabs placement.
*
* @group project_browser
*/
class
ProjectBrowserMenuTabsTest
extends
BrowserTestBase
{
/**
* {@inheritdoc}
*/
protected
static
$modules
=
[
'block'
,
'project_browser'
,
];
/**
* {@inheritdoc}
*/
protected
$defaultTheme
=
'stark'
;
/**
* {@inheritdoc}
*/
protected
function
setUp
():
void
{
parent
::
setUp
();
$this
->
drupalLogin
(
$this
->
drupalCreateUser
([
'administer modules'
,
]));
}
/**
* Tests browse menu link.
*/
public
function
testBrowseMenuPosition
():
void
{
$this
->
drupalPlaceBlock
(
'local_tasks_block'
);
$this
->
drupalGet
(
'admin/modules/browse'
);
$this
->
assertSession
()
->
pageTextContains
(
'Browse'
);
// Get the second tab in the nav bar.
$second_tab
=
$this
->
getSession
()
->
getPage
()
->
find
(
'css'
,
'div:nth-child(3) li:nth-child(2)'
);
// Assert that the second tab is the Browse tab.
$this
->
assertSame
(
'Browse(active tab)'
,
$second_tab
->
getText
());
}
}
Loading