public void ThenUserSeeCreditAmountAtBasketAndHeaderAsNoticedEarlier() { double expectedCredit = (double)_scenarioContext["CreditsSum"]; // Waiter.Until(ExpectedConditions.TitleIs) string basketSumOfCredit = basketP.GetCreditEarnedValue(); string lastTitle = basketP.GetLastProductTitle(); basketP.CloseAllItemsInBasket(); Assert.AreEqual("£" + expectedCredit.ToString("N2").Replace(",", ""), basketSumOfCredit, lastTitle); }