Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3495495
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
drupal-3495495
Commits
bd2772d9
Commit
bd2772d9
authored
8 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2783819
by Lendude: Update AjaxThemeTest to use assertWaitOnAjaxRequest
parent
08b7a3fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxThemeTest.php
+1
-9
1 addition, 9 deletions
...s/Drupal/FunctionalJavascriptTests/Ajax/AjaxThemeTest.php
with
1 addition
and
9 deletions
core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxThemeTest.php
+
1
−
9
View file @
bd2772d9
...
...
@@ -36,18 +36,10 @@ public function testAjaxWithAdminRoute() {
$this
->
drupalGet
(
'ajax-test/dialog'
);
$assert
->
pageTextNotContains
(
'Current theme: stable'
);
$this
->
clickLink
(
'Link 8 (ajax)'
);
$
this
->
waitForAjaxToFinish
();
$
assert
->
assertWaitOnAjaxRequest
();
$assert
->
pageTextContains
(
'Current theme: stable'
);
$assert
->
pageTextNotContains
(
'Current theme: seven'
);
}
/**
* Waits for jQuery to become active and animations to complete.
*/
protected
function
waitForAjaxToFinish
()
{
$condition
=
"(0 === jQuery.active && 0 === jQuery(':animated').length)"
;
$this
->
assertJsCondition
(
$condition
,
10000
);
}
}
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