Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui_patterns-3290197
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
ui_patterns-3290197
Commits
f1bd143b
Commit
f1bd143b
authored
Sep 21, 2022
by
Florent Torregrosa
Committed by
Florent Torregrosa
Sep 21, 2022
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3310657
by Grimreaper: Handle subdirectory for links in tests.
parent
0aae8d8f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/ui_patterns_library/tests/src/FunctionalJavascript/UiPatternsLibraryOverviewTest.php
+7
-6
7 additions, 6 deletions
...rc/FunctionalJavascript/UiPatternsLibraryOverviewTest.php
with
7 additions
and
6 deletions
modules/ui_patterns_library/tests/src/FunctionalJavascript/UiPatternsLibraryOverviewTest.php
+
7
−
6
View file @
f1bd143b
...
...
@@ -3,6 +3,7 @@
namespace
Drupal\Tests\ui_patterns_library\FunctionalJavascript
;
use
Drupal\Core\Serialization\Yaml
;
use
Drupal\Core\Url
;
use
Drupal\FunctionalJavascriptTests\WebDriverTestBase
;
/**
...
...
@@ -98,13 +99,13 @@ class UiPatternsLibraryOverviewTest extends WebDriverTestBase {
$this
->
drupalGet
(
'/patterns/with_local_libraries'
);
$ui_patterns_library_path
=
$this
->
moduleExtensionList
->
getPath
(
'ui_patterns_library'
);
$ui_patterns_library_
module_test_
path
=
$this
->
moduleExtensionList
->
getPath
(
'ui_patterns_library
_module_test
'
);
$session
->
responseContains
(
'href="
/
'
.
$ui_patterns_library_path
.
'/tests/modules/
ui_patterns_library_module_test/templates/with_local_libraries/css/library_one.css'
);
$session
->
responseContains
(
'href="
/
'
.
$ui_patterns_library_path
.
'/tests/modules/
ui_patterns_library_module_test/templates/with_local_libraries/css/library_two.css'
);
$session
->
responseContains
(
'src="
/
'
.
$ui_patterns_library_path
.
'/tests/modules/
ui_patterns_library_module_test/templates/with_local_libraries/js/library_two_1.js'
);
$session
->
responseContains
(
'src="
/
'
.
$ui_patterns_library_path
.
'/tests/modules/
ui_patterns_library_module_test/templates/with_local_libraries/js/library_two_2.js'
);
$session
->
responseContains
(
'src="/core/misc/tabledrag.js'
);
$session
->
responseContains
(
'href="'
.
Url
::
fromUserInput
(
'/'
.
$
ui_patterns_library_module_test
_path
.
'
/templates/with_local_libraries/css/library_one.css'
)
->
toString
())
;
$session
->
responseContains
(
'href="'
.
Url
::
fromUserInput
(
'/'
.
$
ui_patterns_library_module_test
_path
.
'
/templates/with_local_libraries/css/library_two.css'
)
->
toString
())
;
$session
->
responseContains
(
'src="'
.
Url
::
fromUserInput
(
'/'
.
$
ui_patterns_library_module_test
_path
.
'
/templates/with_local_libraries/js/library_two_1.js'
)
->
toString
())
;
$session
->
responseContains
(
'src="'
.
Url
::
fromUserInput
(
'/'
.
$
ui_patterns_library_module_test
_path
.
'
/templates/with_local_libraries/js/library_two_2.js'
)
->
toString
())
;
$session
->
responseContains
(
'src="
'
.
Url
::
fromUserInput
(
'
/core/misc/tabledrag.js'
)
->
toString
())
;
}
/**
...
...
...
...
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
sign in
to comment