Skip to content

Commit

Permalink
#757 Fix TableRow<TOwner> to exclude Link<TOwner> from `FindByCol…
Browse files Browse the repository at this point in the history
…umnHeaderAttribute`
  • Loading branch information
YevgeniyShunevych committed Jun 22, 2023
1 parent 43e30dc commit 084e13b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion src/Atata/Components/TableRow`1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ namespace Atata
/// </summary>
/// <typeparam name="TOwner">The type of the owner page object.</typeparam>
[ControlDefinition("tr[parent::table or parent::tbody]", ComponentTypeName = "row")]
[FindByColumnHeader(TargetType = typeof(Content<,>))]
[FindByColumnHeader(
TargetType = typeof(Content<,>),
ExcludeTargetTypes = new[] { typeof(Link<>), typeof(Label<,>), typeof(TextListItem<>) })]
public class TableRow<TOwner> : Control<TOwner>
where TOwner : PageObject<TOwner>
{
Expand Down

0 comments on commit 084e13b

Please sign in to comment.