コード例 #1
0
ファイル: Location.cs プロジェクト: vineet938/Data_Hackathon
        public void WhenCheckMessageInInbox(string messageKey)
        {
            new MainPage(TestSetup.Driver)
            .ClickMessageCenterIcon();

            var m = FeatureContext.Current.Get <Setup.Message>(messageKey);

            new MessageCenter(TestSetup.Driver)
            .EnterTopic(m.Topic);

            Poll("Wait for filtering to finish", 60, 5,
                 () => new MessageCenter(TestSetup.Driver).TableSize,
                 x => x == 1
                 );

            new MessageCenter(TestSetup.Driver)
            .ClickFirstLink();

            var popup = new PopupMessage(TestSetup.Driver);

            popup.Topic.ShouldBe(m.Topic);
            popup.Message.ShouldContain(m.Signature);

            popup.Dismiss();
        }