Пример #1
0
        public void Add_a_bank_account_to_an_organisation()
        {
            var   accountName = Faker.Name.FullName();
            Login login       = new Login();

            login
            .EnterEmailAddress(FW.Config.Credentials.EmailAddress)
            .EnterPassword(FW.Config.Credentials.Password)
            .Submit();

            login.SkipMultiFactorAuthSetup();

            Header header = new Header();

            header.SelectOrganisation("Demo Company (NZ)"); // The assumption is that the default org might be different.

            Accounting      accounting     = header.ClickAccountingTab();
            BankAccounts    bankAccounts   = accounting.GotoBankAccounts();
            AddBankAccounts addBankAccount = bankAccounts.AddBankAccount();

            addBankAccount
            .SelectBank(Bank.ANZ)
            .EnterAccountName(accountName)
            .SelectAccountType(AccountType.EVERYDAY)
            .EnterAccountNumber("123")
            .Continue();

            Assert.That(bankAccounts.Notification.Displayed);
            Assert.AreEqual(bankAccounts.Notification.Text, $"{accountName} has been added.");
        }