Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
justinfreeman (Agileware)
Core
Commits
f2979d25
Commit
f2979d25
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Patches
Plain Diff
fixed --filter=testCheckDescAndCreatedIdFields WebTest_Profile_ProfileAddTest
parent
a25af9ce
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/phpunit/WebTest/Profile/ProfileAddTest.php
+6
-14
6 additions, 14 deletions
tests/phpunit/WebTest/Profile/ProfileAddTest.php
with
6 additions
and
14 deletions
tests/phpunit/WebTest/Profile/ProfileAddTest.php
+
6
−
14
View file @
f2979d25
...
...
@@ -304,23 +304,15 @@ class WebTest_Profile_ProfileAddTest extends CiviSeleniumTestCase {
$this
->
waitForElementPresent
(
"xpath=//div[@id='user-profiles']/div/div/table/tbody/tr[@id='UFGroup-
$id
']/td[3]"
);
// check description is displayed on profile listing page
$this
->
assertEquals
(
$this
->
getText
(
"xpath=//div[@id='user-profiles']/div/div/table/tbody/tr[@id='UFGroup-
$id
']/td[3]"
),
$profileDescription
);
$this
->
assertEquals
(
$this
->
getText
(
"xpath=//div[@id='user-profiles']/div/div/table/tbody/tr[@id='UFGroup-
$id
']/td[3]"
),
$profileDescription
);
// fetch created by
$createdBy
=
$this
->
getText
(
"xpath=//div[@id='user-profiles']/div/div/table/tbody/tr[@id='UFGroup-
$id
']/td[2]/a"
);
// check if created by contact exists
$this
->
openCiviPage
(
"dashboard"
,
"reset=1"
);
// type sortname in autocomplete
$this
->
click
(
"css=input#sort_name_navigation"
);
$this
->
type
(
"css=input#sort_name_navigation"
,
$createdBy
);
$this
->
typeKeys
(
"css=input#sort_name_navigation"
,
$createdBy
);
// wait for result list
$this
->
waitForElementPresent
(
"css=div.ac_results-inner li"
);
// visit contact summary page
$this
->
clickLink
(
"css=div.ac_results-inner li"
);
// click on created by
$this
->
click
(
"xpath=id('UFGroup-
$id
')/td[2]/a"
);
// Is contact present?
$this
->
assertTrue
(
$this
->
isTextPresent
(
"
$createdBy
"
),
"Contact did not find!"
);
...
...
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