Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Lookup Binding with a test to cover it #43

Merged
merged 2 commits into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,15 @@ public static void ThenICanSeeOnlyTheFollowingRecordsInTheLookup(string lookupNa
recordNames.Rows.Should().Contain(r => r[0] == item, because: "every given records should be present in the flyout");
}
}

/// <summary>
/// Opens the related record by clicking on the link.
/// </summary>
/// <param name="lookupName">The name of the lookup.</param>
[When(@"I select a related '(.*)' lookup field")]
public static void WhenISelectARelatedLookupInTheForm(string lookupName)
{
Driver.WaitUntilAvailable(By.XPath(AppElements.Xpath[AppReference.Entity.LookupFieldExistingValue].Replace("[NAME]", lookupName))).Click();
ewingjm marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@ Scenario: User switches lookup views
And I select the 'New' command
And I select 'primarycontactid' lookup
#KNOWN BUG (TestCategory - Bug - Fail) https://github.com/microsoft/EasyRepro/blob/aadad319f713e169ce080524f533f20d86b23c97/Microsoft.Dynamics365.UIAutomation.Sample/UCI/Read/OpenContact.cs
And I select the 'All Contacts' view in the lookup
And I select the 'All Contacts' view in the lookup

Scenario: User selects a related record
Given I am logged in to the 'Sales Team Member' app as 'an admin'
And I have created 'an aliased contact'
And I have created 'an account with aliased contact'
And I have opened 'a sample account'
When I select a related 'primarycontactid' lookup field