forked from Silverfish/proton-bridge
test: Update fake server with defautl draft content-type and test it.
This commit is contained in:
@ -362,8 +362,8 @@ func createContact(ctx context.Context, c *proton.Client, contact, name string,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if res[0].Response.APIError.Code != proton.SuccessCode {
|
||||
return errors.New("APIError " + res[0].Response.APIError.Message + " while creating contact")
|
||||
if res[0].Response.Response.Code != proton.SuccessCode {
|
||||
return errors.New("APIError " + res[0].Response.Response.Message + " while creating contact")
|
||||
}
|
||||
|
||||
if settings != nil {
|
||||
|
||||
9
tests/features/user/account.feature
Normal file
9
tests/features/user/account.feature
Normal file
@ -0,0 +1,9 @@
|
||||
Feature: Account settings
|
||||
|
||||
Background:
|
||||
Given there exists an account with username "[user:user]" and password "password"
|
||||
Then it succeeds
|
||||
When bridge starts
|
||||
|
||||
Scenario: Check account default settings
|
||||
the account "[user:user]" has default draft format "HTML"
|
||||
Reference in New Issue
Block a user