mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-19 08:37:06 +00:00
GODT-1524: Logout issues with macOS.
This commit is contained in:
@ -29,6 +29,7 @@ func UsersActionsFeatureContext(s *godog.ScenarioContext) {
|
||||
s.Step(`^user deletes "([^"]*)"$`, userDeletesUser)
|
||||
s.Step(`^user deletes "([^"]*)" with cache$`, userDeletesUserWithCache)
|
||||
s.Step(`^"([^"]*)" swaps address "([^"]*)" with address "([^"]*)"$`, swapsAddressWithAddress)
|
||||
s.Step(`^session was revoked for "([^"]*)"$`, sessionRevoked)
|
||||
}
|
||||
|
||||
func userLogsIn(bddUserID string) error {
|
||||
@ -123,3 +124,8 @@ func swapsAddressWithAddress(bddUserID, bddAddressID1, bddAddressID2 string) err
|
||||
|
||||
return ctx.GetPMAPIController().ReorderAddresses(account.User(), addressIDs)
|
||||
}
|
||||
|
||||
func sessionRevoked(bddUserID string) error {
|
||||
account := ctx.GetTestAccount(bddUserID)
|
||||
return ctx.GetPMAPIController().RevokeSession(account.Username())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user