Feature: Mail Template Management
As admin
I can create and edit Mail Template

@auth @createssoprovider @createdomain @deletessoprovider @deletedomain @logout
Scenario Outline: Create and update Mail Template auditlogs
	When I edit created domain
	Then I change Mail Template
		| TemplateName   | Subject                   | Definition     |
		| Password Reset | E2E e-mail Password reset | Password reset |
	When I edit created domain
	And I check Mail Template changes
	Then I check Mail Template Audit logs
		| Timing | UserName | Comment | EntityDisplayName    | Type   | DisplayName                 | Changes |
		|        |          |         | scenarioDataInstance | Create | formNameFromScenarioContext |         |
	When I edit created domain
	Then I change Mail Template
		| TemplateName   | Subject                 | Definition          |
		| Password Reset | E2E e-mail Editing name | Edited Confirmation |
	Then I check Mail Template Audit logs
		| Timing | UserName | Comment | EntityDisplayName    | Type   | DisplayName                 | Changes |
		|        |          |         | scenarioDataInstance | Update | formNameFromScenarioContext |         |
	When I edit created domain
	And I check Mail Template changes