From 084e13b44d596dc622a9e89a36bee4f7c26371b2 Mon Sep 17 00:00:00 2001 From: YevgeniyShunevych Date: Thu, 22 Jun 2023 16:01:48 +0200 Subject: [PATCH] #757 Fix `TableRow` to exclude `Link` from `FindByColumnHeaderAttribute` --- src/Atata/Components/{ => Fields/Content}/LinkTarget.cs | 0 src/Atata/Components/{ => Fields/Content}/Link`1.cs | 0 src/Atata/Components/{ => Fields/Content}/Link`2.cs | 0 src/Atata/Components/{ => Fields/Content}/TextListItem`1.cs | 0 src/Atata/Components/TableRow`1.cs | 4 +++- 5 files changed, 3 insertions(+), 1 deletion(-) rename src/Atata/Components/{ => Fields/Content}/LinkTarget.cs (100%) rename src/Atata/Components/{ => Fields/Content}/Link`1.cs (100%) rename src/Atata/Components/{ => Fields/Content}/Link`2.cs (100%) rename src/Atata/Components/{ => Fields/Content}/TextListItem`1.cs (100%) diff --git a/src/Atata/Components/LinkTarget.cs b/src/Atata/Components/Fields/Content/LinkTarget.cs similarity index 100% rename from src/Atata/Components/LinkTarget.cs rename to src/Atata/Components/Fields/Content/LinkTarget.cs diff --git a/src/Atata/Components/Link`1.cs b/src/Atata/Components/Fields/Content/Link`1.cs similarity index 100% rename from src/Atata/Components/Link`1.cs rename to src/Atata/Components/Fields/Content/Link`1.cs diff --git a/src/Atata/Components/Link`2.cs b/src/Atata/Components/Fields/Content/Link`2.cs similarity index 100% rename from src/Atata/Components/Link`2.cs rename to src/Atata/Components/Fields/Content/Link`2.cs diff --git a/src/Atata/Components/TextListItem`1.cs b/src/Atata/Components/Fields/Content/TextListItem`1.cs similarity index 100% rename from src/Atata/Components/TextListItem`1.cs rename to src/Atata/Components/Fields/Content/TextListItem`1.cs diff --git a/src/Atata/Components/TableRow`1.cs b/src/Atata/Components/TableRow`1.cs index eef56d503..6efc2c032 100644 --- a/src/Atata/Components/TableRow`1.cs +++ b/src/Atata/Components/TableRow`1.cs @@ -9,7 +9,9 @@ namespace Atata /// /// The type of the owner page object. [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 : Control where TOwner : PageObject {