Пример #1
0
        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();
        }