From: Seunghyun Choi Date: Mon, 23 Jul 2018 07:42:13 +0000 (+0900) Subject: [ElmSharp][Non-ACR] Update TCT for unsupported feature on Wearabel profile X-Git-Tag: tct5.0_m2~141 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F184800%2F1;p=test%2Ftct%2Fcsharp%2Fapi.git [ElmSharp][Non-ACR] Update TCT for unsupported feature on Wearabel profile Change-Id: I0455a833caf0899dc5b06a419681c6fbd49ca0d2 --- diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEntry.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEntry.cs index f51613683..ebf8eadd2 100644 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEntry.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEntry.cs @@ -820,16 +820,24 @@ namespace ElmSharp.Tests [Postcondition(1, "NA")] public static async Task PasteSelection_METHOD() { - CreateEntryPage("PasteSelection"); - _entry.Text = "123456"; - _entry.SelectAll(); - _entry.CopySelection(); - _entry.CursorPosition = 6; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.MobileProfile) != 0) + { + _testPage.UnlockUIButton(); + Assert.Pass("Not Supported"); + } + else + { + CreateEntryPage("PasteSelection"); + _entry.Text = "123456"; + _entry.SelectAll(); + _entry.CopySelection(); + _entry.CursorPosition = 6; - _button1.Clicked += OnClickedByPasteSelection; - // Waits for user confirmation. - await ManualTest.WaitForConfirm(); - _button1.Clicked -= OnClickedByPasteSelection; + _button1.Clicked += OnClickedByPasteSelection; + // Waits for user confirmation. + await ManualTest.WaitForConfirm(); + _button1.Clicked -= OnClickedByPasteSelection; + } } [Test]