test(central-ui): cover the Notifications nav section in Playwright nav tests
This commit is contained in:
@@ -27,13 +27,23 @@ public class NavigationTests
|
|||||||
[InlineData("Sites", "/admin/sites")]
|
[InlineData("Sites", "/admin/sites")]
|
||||||
[InlineData("API Keys", "/admin/api-keys")]
|
[InlineData("API Keys", "/admin/api-keys")]
|
||||||
[InlineData("LDAP Mappings", "/admin/ldap-mappings")]
|
[InlineData("LDAP Mappings", "/admin/ldap-mappings")]
|
||||||
[InlineData("SMTP Configuration", "/notifications/smtp")]
|
|
||||||
public async Task AdminNavLinks_NavigateCorrectly(string linkText, string expectedPath)
|
public async Task AdminNavLinks_NavigateCorrectly(string linkText, string expectedPath)
|
||||||
{
|
{
|
||||||
var page = await _fixture.NewAuthenticatedPageAsync();
|
var page = await _fixture.NewAuthenticatedPageAsync();
|
||||||
await ClickNavAndWait(page, linkText, expectedPath);
|
await ClickNavAndWait(page, linkText, expectedPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Theory]
|
||||||
|
[InlineData("SMTP Configuration", "/notifications/smtp")]
|
||||||
|
[InlineData("Notification Lists", "/notifications/lists")]
|
||||||
|
[InlineData("Notification Report", "/notifications/report")]
|
||||||
|
[InlineData("Notification KPIs", "/notifications/kpis")]
|
||||||
|
public async Task NotificationsNavLinks_NavigateCorrectly(string linkText, string expectedPath)
|
||||||
|
{
|
||||||
|
var page = await _fixture.NewAuthenticatedPageAsync();
|
||||||
|
await ClickNavAndWait(page, linkText, expectedPath);
|
||||||
|
}
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
[InlineData("Templates", "/design/templates")]
|
[InlineData("Templates", "/design/templates")]
|
||||||
[InlineData("Shared Scripts", "/design/shared-scripts")]
|
[InlineData("Shared Scripts", "/design/shared-scripts")]
|
||||||
|
|||||||
Reference in New Issue
Block a user