Beispiel #1
0
        public async Task TestWithInvalidCredentials()
        {
            instance.email = instance.password = null;
            var result = await instance.AuthenticateUser();

            Assert.False(result);
            component.WaitForState(() => component.Find("#loginButton") != null, TimeSpan.FromSeconds(10));//todo remover
        }
Beispiel #2
0
        public async Task WhenListAccounts_AddsAllTableEntries()
        {
            var accounts = await _accountService.ListAccounts();

            var sut = _renderedComponent.Instance;

            await sut.SubmitClick().ConfigureAwait(true);

            _renderedComponent.WaitForState(() => sut.SaveState == Components.Helpers.SaveState.Success);

            _renderedComponent.FindAll("tr").Should().HaveCount(accounts.Count + 1);
            foreach (var account in accounts)
            {
                _renderedComponent.Markup.Should().Contain(account.DisplayName);
            }
        }