mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
4cd78f3f83
One can now plug its own SMTP server to send notifications for identity validation and password reset requests. Filesystem has been removed from the template configuration file since even tests now use mail catcher (the fake webmail) to retrieve the email and the confirmation link.
18 lines
601 B
TypeScript
18 lines
601 B
TypeScript
import Cucumber = require("cucumber");
|
|
import seleniumWebdriver = require("selenium-webdriver");
|
|
import Assert = require("assert");
|
|
import Fs = require("fs");
|
|
|
|
Cucumber.defineSupportCode(function ({ Given, When, Then }) {
|
|
When("I click on the link {stringInDoubleQuotes}", function (text: string) {
|
|
return this.driver.findElement(seleniumWebdriver.By.linkText(text)).click();
|
|
});
|
|
|
|
When("I click on the link of the email", function () {
|
|
const that = this;
|
|
return this.retrieveLatestMail()
|
|
.then(function (link: string) {
|
|
return that.driver.get(link);
|
|
});
|
|
});
|
|
}); |