adds check for the right methods of session api

This commit is contained in:
Philipp Häfelfinger 2022-10-17 23:59:22 +02:00
parent 5d58aaee1c
commit 6b36364b99

View File

@ -18,6 +18,7 @@ public class SessionApiTests : ApiTestsBase
public async Task Login_should_set_cookies_and_session()
{
await LoginAsync();
CorrectMethodShouldGetCalled("pwg.session.login");
}
[Test]
@ -39,6 +40,7 @@ public class SessionApiTests : ApiTestsBase
status.Should().NotBeNull();
status.Username.Should().Be("admin");
CorrectMethodShouldGetCalled("pwg.session.getStatus");
}
[Test]
@ -50,6 +52,7 @@ public class SessionApiTests : ApiTestsBase
await _sessionApi.LogoutAsync();
Context.IsLoggedIn.Should().BeFalse();
CorrectMethodShouldGetCalled("pwg.session.logout");
}
private async Task LoginAsync()