fix test
This commit is contained in:
parent
50e6734c9c
commit
24df1b3f27
2 changed files with 12 additions and 1 deletions
|
@ -70,7 +70,13 @@ describe("Realm settings", () => {
|
||||||
|
|
||||||
realmSettingsPage.save(realmSettingsPage.emailSaveBtn);
|
realmSettingsPage.save(realmSettingsPage.emailSaveBtn);
|
||||||
cy.getId(realmSettingsPage.testConnectionButton).click();
|
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.");
|
masthead.checkNotificationMessage("Error! Failed to send email.");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,11 @@ export default class RealmSettingsPage {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fillEmailField(email: string) {
|
||||||
|
cy.getId(this.emailAddressInput).type(email);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
setDefaultLocale(locale: string) {
|
setDefaultLocale(locale: string) {
|
||||||
cy.get(this.selectDefaultLocale).click();
|
cy.get(this.selectDefaultLocale).click();
|
||||||
cy.get(this.defaultLocaleList).contains(locale).click();
|
cy.get(this.defaultLocaleList).contains(locale).click();
|
||||||
|
|
Loading…
Reference in a new issue