This commit is contained in:
jenny-s51 2021-06-22 08:48:12 -04:00
parent 50e6734c9c
commit 24df1b3f27
2 changed files with 12 additions and 1 deletions

View file

@ -70,7 +70,13 @@ describe("Realm settings", () => {
realmSettingsPage.save(realmSettingsPage.emailSaveBtn);
cy.getId(realmSettingsPage.testConnectionButton).click();
cy.wait(5000);
realmSettingsPage.fillEmailField(
"example" + (Math.random() + 1).toString(36).substring(7) + "@example.com"
);
cy.getId(realmSettingsPage.modalTestConnectionButton).click();
masthead.checkNotificationMessage("Error! Failed to send email.");
});

View file

@ -67,6 +67,11 @@ export default class RealmSettingsPage {
return this;
}
fillEmailField(email: string) {
cy.getId(this.emailAddressInput).type(email);
return this;
}
setDefaultLocale(locale: string) {
cy.get(this.selectDefaultLocale).click();
cy.get(this.defaultLocaleList).contains(locale).click();