Skip to content

Commit

Permalink
fix: e2e recovery and verification tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alano Terblanche committed Feb 4, 2022
1 parent 2dae8b4 commit cfd3b91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ context('Account Recovery Errors', () => {

cy.getMail().then((mail) => {
expect(mail.body).to.include(
'this is a remote invalid recovery template with a defined "root" template'
'this is a remote invalid recovery template'
)
})
})
Expand Down
7 changes: 2 additions & 5 deletions test/e2e/profiles/recovery/.kratos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,11 @@ courier:
recovery:
invalid:
email:
# template_root could be necessary when there are nested templates, but is not required
template_root: root
body:
html: base64://e3tkZWZpbmUgInJvb3QifX0KSGksCgp0aGlzIGlzIGEgcmVtb3RlIGludmFsaWQgcmVjb3ZlcnkgdGVtcGxhdGUgd2l0aCBhIGRlZmluZWQgInJvb3QiIHRlbXBsYXRlCgp7ey0gZW5kIC19fQ==
plaintext: base64://e3tkZWZpbmUgInJvb3QifX0KSGksCgp0aGlzIGlzIGEgcmVtb3RlIGludmFsaWQgcmVjb3ZlcnkgdGVtcGxhdGUgd2l0aCBhIGRlZmluZWQgInJvb3QiIHRlbXBsYXRlCgp7ey0gZW5kIC19fQ==
html: base64://SGksCgp0aGlzIGlzIGEgcmVtb3RlIGludmFsaWQgcmVjb3ZlcnkgdGVtcGxhdGU=
plaintext: base64://SGksCgp0aGlzIGlzIGEgcmVtb3RlIGludmFsaWQgcmVjb3ZlcnkgdGVtcGxhdGU=
subject: base64://QWNjb3VudCBBY2Nlc3MgQXR0ZW1wdGVk
valid:
# omit template_root on valid as it is not required
email:
body:
plaintext: base64://SGksCgp0aGlzIGlzIGEgcmVtb3RlIHRlbXBsYXRlCnBsZWFzZSByZWNvdmVyIGFjY2VzcyB0byB5b3VyIGFjY291bnQgYnkgY2xpY2tpbmcgdGhlIGZvbGxvd2luZyBsaW5rOgp7eyAuUmVjb3ZlcnlVUkwgfX0=
Expand Down
5 changes: 2 additions & 3 deletions test/e2e/profiles/spa/.kratos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ courier:
invalid:
email:
body:
html: base64://e3tkZWZpbmUgInJvb3QifX0KSGksCgp0aGlzIGlzIGEgcmVtb3RlIGludmFsaWQgcmVjb3ZlcnkgdGVtcGxhdGUgd2l0aCBhIGRlZmluZWQgInJvb3QiIHRlbXBsYXRlCgp7ey0gZW5kIC19fQ==
plaintext: base64://e3tkZWZpbmUgInJvb3QifX0KSGksCgp0aGlzIGlzIGEgcmVtb3RlIGludmFsaWQgcmVjb3ZlcnkgdGVtcGxhdGUgd2l0aCBhIGRlZmluZWQgInJvb3QiIHRlbXBsYXRlCgp7ey0gZW5kIC19fQ==
html: base64://SGksCgp0aGlzIGlzIGEgcmVtb3RlIGludmFsaWQgcmVjb3ZlcnkgdGVtcGxhdGU=
plaintext: base64://SGksCgp0aGlzIGlzIGEgcmVtb3RlIGludmFsaWQgcmVjb3ZlcnkgdGVtcGxhdGU=
subject: base64://QWNjb3VudCBBY2Nlc3MgQXR0ZW1wdGVk
template_root: root
valid:
email:
body:
Expand Down

0 comments on commit cfd3b91

Please sign in to comment.