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
fdec0f57
Commit
fdec0f57
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Patches
Plain Diff
fix for WebTest_Contact_AddTest
parent
721cf6e0
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
tests/phpunit/WebTest/Contact/AddTest.php
+15
-6
15 additions, 6 deletions
tests/phpunit/WebTest/Contact/AddTest.php
with
15 additions
and
6 deletions
tests/phpunit/WebTest/Contact/AddTest.php
+
15
−
6
View file @
fdec0f57
...
...
@@ -34,7 +34,7 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
function
testIndividualAdd
()
{
$this
->
webtestLogin
();
$this
->
WebtestAddGroup
();
$groupName
=
$this
->
WebtestAddGroup
();
// go to display preferences to enable Open ID field
$this
->
openCiviPage
(
'admin/setting/preferences/display'
,
"reset=1"
,
"_qf_Display_next-bottom"
);
...
...
@@ -101,7 +101,6 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
$this
->
select
(
"address_1_country_id"
,
"value="
.
$this
->
webtestGetValidCountryID
());
if
(
$this
->
assertElementContainsText
(
'address_1'
,
"Latitude"
))
{
$this
->
type
(
"address_1_geo_code_1"
,
"1234"
);
$this
->
type
(
"address_1_geo_code_2"
,
"5678"
);
}
...
...
@@ -157,7 +156,8 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
//Tags and Groups section
$this
->
click
(
"tagGroup"
);
$this
->
click
(
"group[
{
$this
->
webtestGetValidEntityID
(
'Group'
)
}
]"
);
// select group
$this
->
select
(
"crmasmSelect0"
,
"label=
$groupName
"
);
$this
->
click
(
"tag[
{
$this
->
webtestGetValidEntityID
(
'Tag'
)
}
]"
);
// Clicking save.
...
...
@@ -170,6 +170,8 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
function
testHouseholdAdd
()
{
$this
->
webtestLogin
();
$groupName
=
$this
->
WebtestAddGroup
();
// go to display preferences to enable Open ID field
$this
->
openCiviPage
(
'admin/setting/preferences/display'
,
"reset=1"
,
"_qf_Display_next-bottom"
);
$this
->
check
(
"xpath=//ul[@id='contactEditBlocks']//li/span[2]/label[text()='Open ID']/../input"
);
...
...
@@ -260,8 +262,10 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
$this
->
type
(
"subject"
,
"Grant's note"
);
$this
->
type
(
"note"
,
"This is a household contact webtest note."
);
//Tags and Groups section
$this
->
click
(
"group[
{
$this
->
webtestGetValidEntityID
(
'Group'
)
}
]"
);
// select group
$this
->
select
(
"crmasmSelect0"
,
"label=
$groupName
"
);
//tags section
$this
->
click
(
"tag[
{
$this
->
webtestGetValidEntityID
(
'Tag'
)
}
]"
);
// Clicking save.
...
...
@@ -274,6 +278,8 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
function
testOrganizationAdd
()
{
$this
->
webtestLogin
();
$groupName
=
$this
->
WebtestAddGroup
();
// go to display preferences to enable Open ID field
$this
->
openCiviPage
(
'admin/setting/preferences/display'
,
"reset=1"
,
"_qf_Display_next-bottom"
);
$this
->
check
(
"xpath=//ul[@id='contactEditBlocks']//li/span[2]/label[text()='Open ID']/../input"
);
...
...
@@ -360,7 +366,10 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
//Tags and Groups section
$this
->
click
(
"tagGroup"
);
$this
->
click
(
"group[
{
$this
->
webtestGetValidEntityID
(
'Group'
)
}
]"
);
// select group
$this
->
select
(
"crmasmSelect0"
,
"label=
$groupName
"
);
$this
->
click
(
"tag[
{
$this
->
webtestGetValidEntityID
(
'Tag'
)
}
]"
);
// Clicking save.
...
...
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