GODT-2181(test): Use [user:NAME] for more test user names

This commit is contained in:
James Houlahan
2022-12-13 03:48:54 +01:00
parent 9623e2de6f
commit 87ce5a6d82
43 changed files with 631 additions and 603 deletions

View File

@ -123,7 +123,7 @@ func (s *scenario) theAccountHasAdditionalAddressWithoutKeys(username, address s
userID := s.t.getUserID(username)
// Decrypt the user's encrypted ID for use with quark.
userDecID, err := s.t.runQuarkCmd(context.Background(), "--decrypt", "encryption:id", userID)
userDecID, err := s.t.runQuarkCmd(context.Background(), "encryption:id", "--decrypt", userID)
if err != nil {
return err
}
@ -178,8 +178,9 @@ func (s *scenario) theAccountHasCustomFolders(username string, count int) error
return s.t.withClient(ctx, username, func(ctx context.Context, client *proton.Client) error {
for idx := 0; idx < count; idx++ {
if _, err := client.CreateLabel(ctx, proton.CreateLabelReq{
Name: uuid.NewString(),
Type: proton.LabelTypeFolder,
Name: uuid.NewString(),
Type: proton.LabelTypeFolder,
Color: "#f66",
}); err != nil {
return err
}
@ -196,8 +197,9 @@ func (s *scenario) theAccountHasCustomLabels(username string, count int) error {
return s.t.withClient(ctx, username, func(ctx context.Context, client *proton.Client) error {
for idx := 0; idx < count; idx++ {
if _, err := client.CreateLabel(ctx, proton.CreateLabelReq{
Name: uuid.NewString(),
Type: proton.LabelTypeLabel,
Name: uuid.NewString(),
Type: proton.LabelTypeLabel,
Color: "#f66",
}); err != nil {
return err
}
@ -234,8 +236,9 @@ func (s *scenario) theAccountHasTheFollowingCustomMailboxes(username string, tab
}
if _, err := client.CreateLabel(ctx, proton.CreateLabelReq{
Name: wantMailbox.Name,
Type: labelType,
Name: wantMailbox.Name,
Type: labelType,
Color: "#f66",
}); err != nil {
return err
}