Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
salesforce
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
salesforce
Commits
d67547fb
Commit
d67547fb
authored
4 years ago
by
Gabriel Carleton-Barnes
Browse files
Options
Downloads
Patches
Plain Diff
Update tests for new UI.
parent
a9d394ac
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!9
Fields UX refactor
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/salesforce_mapping_ui/src/Tests/SalesforceMappingCrudFormTest.php
+8
-8
8 additions, 8 deletions
...ce_mapping_ui/src/Tests/SalesforceMappingCrudFormTest.php
with
8 additions
and
8 deletions
modules/salesforce_mapping_ui/src/Tests/SalesforceMappingCrudFormTest.php
+
8
−
8
View file @
d67547fb
...
...
@@ -111,16 +111,16 @@ class SalesforceMappingCrudFormTest extends BrowserTestBase {
// @TODO need an interface for field plugins that will tell us which config values are applicable.
// Add all components of this field plugin to our post array to build up the mapping.
$this
->
assertElementPresent
(
"[name='field_mappings[
$i
][
config][
drupal_field_value]'], [name='field_mappings[
$i
][
config][
drupal_field_value][setting]']"
);
$this
->
assertElementPresent
(
"[name='field_mappings[
$i
][
config][
salesforce_field]'], [name='field_mappings[
$i
][
config][
drupal_constant]']"
);
$this
->
assertField
(
"field_mappings[
$i
][
config][
description]"
);
$this
->
assertField
(
"field_mappings[
$i
][
config][
direction]"
);
$this
->
assertElementPresent
(
"[name='field_mappings[
$i
][drupal_field_value]'], [name='field_mappings[
$i
][drupal_field_value][setting]']"
);
$this
->
assertElementPresent
(
"[name='field_mappings[
$i
][salesforce_field]'], [name='field_mappings[
$i
][drupal_constant]']"
);
$this
->
assertField
(
"field_mappings[
$i
][description]"
);
$this
->
assertField
(
"field_mappings[
$i
][direction]"
);
$this
->
assertSession
()
->
hiddenFieldExists
(
"field_mappings[
$i
][drupal_field_type]"
);
if
(
$this
->
getSession
()
->
getPage
()
->
find
(
'css'
,
"select[name='field_mappings[
$i
][
config][
salesforce_field]'] option[value='LastName']"
))
{
$post
[
"field_mappings[
$i
][
config][
salesforce_field]"
]
=
'LastName'
;
if
(
$this
->
getSession
()
->
getPage
()
->
find
(
'css'
,
"select[name='field_mappings[
$i
][salesforce_field]'] option[value='LastName']"
))
{
$post
[
"field_mappings[
$i
][salesforce_field]"
]
=
'LastName'
;
}
if
(
$this
->
getSession
()
->
getPage
()
->
find
(
'css'
,
"select[name='field_mappings[
$i
][
config][
drupal_field_value]'] option[value='title']"
))
{
$post
[
"field_mappings[
$i
][
config][
drupal_field_value]"
]
=
'title'
;
if
(
$this
->
getSession
()
->
getPage
()
->
find
(
'css'
,
"select[name='field_mappings[
$i
][drupal_field_value]'] option[value='title']"
))
{
$post
[
"field_mappings[
$i
][drupal_field_value]"
]
=
'title'
;
}
$i
++
;
}
...
...
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