feat(postit): allow username updates in profile flow
This commit is contained in:
parent
137665bfe0
commit
05e35d0677
5 changed files with 39 additions and 10 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using Yavsc.Abstract.Identity;
|
||||
using PostIt.ViewModels;
|
||||
|
||||
namespace PostIt.Tests;
|
||||
|
|
@ -66,11 +67,23 @@ public class HomePageProviderFlowTests
|
|||
Assert.NotNull(vm.RefreshCommand);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ProfileUpdateRequest_allows_username_updates()
|
||||
{
|
||||
var request = new ProfileUpdateRequest
|
||||
{
|
||||
UserName = "alice.new"
|
||||
};
|
||||
|
||||
Assert.Equal("alice.new", request.UserName);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void UserProfilePage_can_save_profile_values()
|
||||
{
|
||||
var vm = new UserProfilePageViewModel
|
||||
{
|
||||
UserName = "alice.new",
|
||||
FullName = "Alice Example",
|
||||
Address = "14 rue de l’Érable",
|
||||
DedicatedGoogleCalendar = "calendar-123",
|
||||
|
|
|
|||
Loading…
Reference in a new issue