Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
facets-3052574
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
facets-3052574
Commits
9a9e6a99
Commit
9a9e6a99
authored
1 year ago
by
Ide Braakman
Committed by
Ted Cooper
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[
#3052574
] Pick test fixes from MR!113
parent
50613da3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/FunctionalJavascript/AjaxBehaviorTest.php
+3
-3
3 additions, 3 deletions
tests/src/FunctionalJavascript/AjaxBehaviorTest.php
with
3 additions
and
3 deletions
tests/src/FunctionalJavascript/AjaxBehaviorTest.php
+
3
−
3
View file @
9a9e6a99
...
...
@@ -93,11 +93,11 @@ class AjaxBehaviorTest extends JsBase {
$this
->
assertSession
()
->
pageTextContains
(
'Displaying 5 search results'
);
// Check that the article_category option disappears when filtering on item.
$dropdown_entry
=
$this
->
xpath
(
'//*[@id="block-duck-block"]/div/select/option[normalize-space(text())=:label]'
,
[
':label'
=>
'article_category'
]);
$dropdown_entry
=
$this
->
xpath
(
'//*[@id="block-duck-block"]/div/
div/
select/option[normalize-space(text())=:label]'
,
[
':label'
=>
'article_category'
]);
$this
->
assertNotEmpty
(
$dropdown_entry
);
$block_owl
->
clickLink
(
'item'
);
$this
->
assertSession
()
->
assertWaitOnAjaxRequest
();
$dropdown_entry
=
$this
->
xpath
(
'//*[@id="block-duck-block"]/div/select/option[normalize-space(text())=:label]'
,
[
':label'
=>
'article_category'
]);
$dropdown_entry
=
$this
->
xpath
(
'//*[@id="block-duck-block"]/div/
div/
select/option[normalize-space(text())=:label]'
,
[
':label'
=>
'article_category'
]);
$this
->
assertEmpty
(
$dropdown_entry
);
// Click the item facet again.
...
...
@@ -105,7 +105,7 @@ class AjaxBehaviorTest extends JsBase {
$this
->
assertSession
()
->
assertWaitOnAjaxRequest
();
// Select the article_category in the dropdown.
$dropdown
=
$this
->
xpath
(
'//*[@id="block-duck-block"]/div/select'
);
$dropdown
=
$this
->
xpath
(
'//*[@id="block-duck-block"]/div/
div/
select'
);
$dropdown
[
0
]
->
selectOption
(
'article_category'
);
$this
->
assertSession
()
->
assertWaitOnAjaxRequest
();
...
...
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
register
or
sign in
to comment