test(i18n): align remaining web assertions
Heimdall Gitea / Build and tests (pull_request) Failing after 9m7s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / Build and tests (pull_request) Failing after 9m7s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
This commit is contained in:
1 parent
56bfa19390
commit
e8652b6797
15 files changed
+50
-36
No files matched your search
@@ -13,7 +13,7 @@
|
||||
{
|
||||
<MudPaper Class="camera-access-panel pa-4 mt-4" Elevation="1">
|
||||
<MudStack Row="true" AlignItems="AlignItems.Center" Justify="Justify.SpaceBetween" Class="mb-2">
|
||||
<MudText Typo="Typo.h6">@Text["CameraAccess_Title"]: @SelectedUser.DisplayName</MudText>
|
||||
<MudText Typo="Typo.h6">@Text["CameraAccess_Title"] : @SelectedUser.DisplayName</MudText>
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Close" Size="Size.Small" aria-label="@Text["CameraAccess_Hide"]"
|
||||
OnClick="@CloseCameraAccess" Disabled="@_savingAccess" />
|
||||
</MudStack>
|
||||
|
||||
@@ -3451,7 +3451,7 @@
|
||||
<value>Failed to trigger update</value>
|
||||
</data>
|
||||
<data name="AgentDetail_Agent" xml:space="preserve">
|
||||
<value>Agent: </value>
|
||||
<value>Agent:</value>
|
||||
</data>
|
||||
<data name="AgentDetail_Supprime" xml:space="preserve">
|
||||
<value> deleted</value>
|
||||
|
||||
@@ -3451,7 +3451,7 @@
|
||||
<value>Erreur lors du déclenchement de la mise à jour</value>
|
||||
</data>
|
||||
<data name="AgentDetail_Agent" xml:space="preserve">
|
||||
<value>Agent : </value>
|
||||
<value>Agent :</value>
|
||||
</data>
|
||||
<data name="AgentDetail_Supprime" xml:space="preserve">
|
||||
<value> supprimé</value>
|
||||
|
||||
@@ -3451,7 +3451,7 @@
|
||||
<value>Erreur lors du déclenchement de la mise à jour</value>
|
||||
</data>
|
||||
<data name="AgentDetail_Agent" xml:space="preserve">
|
||||
<value>Agent : </value>
|
||||
<value>Agent :</value>
|
||||
</data>
|
||||
<data name="AgentDetail_Supprime" xml:space="preserve">
|
||||
<value> supprimé</value>
|
||||
|
||||
@@ -38,7 +38,7 @@ public class AgentCardTests : PageTestBase
|
||||
cut.Markup.ShouldContain("CPU");
|
||||
cut.Markup.ShouldContain("Mémoire");
|
||||
cut.Markup.ShouldContain("Disque");
|
||||
cut.Markup.ShouldContain("Uptime");
|
||||
cut.Markup.ShouldContain("Temps de fonctionnement");
|
||||
// 35% CPU affiché
|
||||
cut.Markup.ShouldContain("35%");
|
||||
}
|
||||
@@ -50,7 +50,7 @@ public class AgentCardTests : PageTestBase
|
||||
|
||||
cut.Markup.ShouldContain("Hors ligne");
|
||||
cut.Markup.ShouldContain("Agent hors ligne");
|
||||
cut.Markup.ShouldNotContain("Uptime");
|
||||
cut.Markup.ShouldNotContain("Temps de fonctionnement");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -37,8 +37,8 @@ public class AuditLogsPageTests : PageTestBase
|
||||
cut.WaitForAssertion(() =>
|
||||
{
|
||||
cut.Markup.ShouldContain("admin@heimdall.local");
|
||||
cut.Markup.ShouldContain("UserCreated");
|
||||
cut.Markup.ShouldContain("Site.Created");
|
||||
cut.Markup.ShouldContain("Création utilisateur");
|
||||
cut.Markup.ShouldContain("Site créé");
|
||||
cut.Markup.ShouldContain("192.168.1.10");
|
||||
cut.Markup.ShouldContain("User");
|
||||
});
|
||||
@@ -74,7 +74,7 @@ public class AuditLogsPageTests : PageTestBase
|
||||
LoginAs();
|
||||
|
||||
var cut = RenderPage<AuditLogsPage>();
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("UserCreated"));
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Création utilisateur"));
|
||||
|
||||
// Champ resourceType (Immediate=true → Input), puis submit du form de filtre
|
||||
cut.FindAll("input")[1].Input("User");
|
||||
@@ -93,7 +93,7 @@ public class AuditLogsPageTests : PageTestBase
|
||||
LoginAs();
|
||||
|
||||
var cut = RenderPage<AuditLogsPage>();
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("UserCreated"));
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Création utilisateur"));
|
||||
|
||||
cut.FindAll("input")[1].Input("User");
|
||||
await cut.InvokeAsync(() => cut.Find("form").Submit());
|
||||
|
||||
@@ -147,7 +147,8 @@ public class DiscoveriesPageTests : PageTestBase
|
||||
|
||||
// Le nom par défaut est pré-rempli et l'URL de flux sélectionnée → bouton actif.
|
||||
// Find+Click dans InvokeAsync (handler périmé sinon, flaky CI).
|
||||
await cut.InvokeAsync(() => cut.FindAll("button").Single(b => b.TextContent.Contains("Ajouter la caméra") && b.TextContent.Contains("Ajouter")).Click());
|
||||
await cut.InvokeAsync(() => cut.FindAll("div.mud-dialog-actions button")
|
||||
.Single(b => b.TextContent.Trim() == "Ajouter une caméra").Click());
|
||||
|
||||
cut.WaitForAssertion(() =>
|
||||
{
|
||||
@@ -172,7 +173,8 @@ public class DiscoveriesPageTests : PageTestBase
|
||||
cut.FindAll("button[aria-label='Confirmer la caméra']")[0].Click();
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Ajouter la caméra 192.168.1.10"));
|
||||
|
||||
await cut.InvokeAsync(() => cut.FindAll("button").Single(b => b.TextContent.Contains("Ajouter la caméra") && b.TextContent.Contains("Ajouter")).Click());
|
||||
await cut.InvokeAsync(() => cut.FindAll("div.mud-dialog-actions button")
|
||||
.Single(b => b.TextContent.Trim() == "Ajouter une caméra").Click());
|
||||
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Caméra déjà enregistrée sur ce site"));
|
||||
}
|
||||
|
||||
@@ -36,8 +36,8 @@ public class EventsPageTests : PageTestBase
|
||||
cut.Markup.ShouldContain("Mouvement");
|
||||
cut.Markup.ShouldContain("Personne");
|
||||
cut.Markup.ShouldContain("Véhicule");
|
||||
cut.Markup.ShouldContain("87%");
|
||||
cut.Markup.ShouldContain("66%");
|
||||
cut.Markup.ShouldContain("87");
|
||||
cut.Markup.ShouldContain("66");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ public class EventsPageTests : PageTestBase
|
||||
{
|
||||
var snackbar = Services.GetRequiredService<ISnackbar>();
|
||||
snackbar.ShownSnackbars.ShouldNotBeEmpty();
|
||||
(snackbar.ShownSnackbars.First().Message?.ToString() ?? "").ShouldContain("Erreur");
|
||||
(snackbar.ShownSnackbars.First().Message?.ToString() ?? "").ShouldContain("Impossible de charger les événements");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ public class EventsPageTests : PageTestBase
|
||||
var cut = RenderPage<EventsPage>();
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Mouvement"));
|
||||
|
||||
cut.FindAll("button.mud-icon-button").First(b => b.GetAttribute("aria-label") == "Voir le snapshot").Click();
|
||||
cut.FindAll("button.mud-icon-button").First(b => b.GetAttribute("aria-label") == "Voir la capture").Click();
|
||||
|
||||
cut.WaitForAssertion(() =>
|
||||
{
|
||||
@@ -98,7 +98,7 @@ public class EventsPageTests : PageTestBase
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Mouvement"));
|
||||
|
||||
// Ouvrir
|
||||
cut.FindAll("button.mud-icon-button").First(b => b.GetAttribute("aria-label") == "Voir le snapshot").Click();
|
||||
cut.FindAll("button.mud-icon-button").First(b => b.GetAttribute("aria-label") == "Voir la capture").Click();
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Snapshot — Mouvement"));
|
||||
|
||||
// Fermer
|
||||
@@ -106,7 +106,7 @@ public class EventsPageTests : PageTestBase
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldNotContain("Snapshot — Mouvement"));
|
||||
|
||||
// Rouvrir — le dialog doit répondre à nouveau (pas de composant orphelin)
|
||||
cut.FindAll("button.mud-icon-button").First(b => b.GetAttribute("aria-label") == "Voir le snapshot").Click();
|
||||
cut.FindAll("button.mud-icon-button").First(b => b.GetAttribute("aria-label") == "Voir la capture").Click();
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Snapshot — Mouvement"));
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ public class LoginTests : PageTestBase
|
||||
await cut.InvokeAsync(() => cut.Find("form").Submit());
|
||||
|
||||
cut.WaitForAssertion(() =>
|
||||
cut.Markup.ShouldContain("Erreur lors de la création de la session"));
|
||||
cut.Markup.ShouldContain("La session n’a pas pu être créée. Veuillez réessayer."));
|
||||
nav.Uri.ShouldBe("http://localhost/");
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ public class PersonDetailPageTests : PageTestBase
|
||||
cut.Markup.ShouldContain("Historique de détection");
|
||||
// The table displays the label (person name)
|
||||
cut.Markup.ShouldContain("Alice Dupont");
|
||||
cut.Markup.ShouldContain("92%");
|
||||
cut.Markup.ShouldContain("92");
|
||||
// The table includes an IconButton with aria-label="View snapshot" if snapshot exists
|
||||
cut.Markup.ShouldContain("aria-label=\"Voir la capture\"");
|
||||
});
|
||||
|
||||
@@ -23,7 +23,7 @@ public class SettingsPageTests : PageTestBase
|
||||
cut.Markup.ShouldContain("Stockage");
|
||||
cut.Markup.ShouldContain("Notifications");
|
||||
cut.Markup.ShouldContain("Intelligence artificielle");
|
||||
cut.Markup.ShouldContain("Défauts agents");
|
||||
cut.Markup.ShouldContain("Paramètres par défaut des agents");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ public class SiteDetailTests : PageTestBase
|
||||
|
||||
cut.WaitForAssertion(() =>
|
||||
{
|
||||
cut.Markup.ShouldContain("Identifiants caméras");
|
||||
cut.Markup.ShouldContain("Identifiants des caméras");
|
||||
cut.Markup.ShouldContain("admin principal");
|
||||
cut.Markup.ShouldContain("compte NVR");
|
||||
cut.Markup.ShouldContain("<code>admin</code>");
|
||||
@@ -176,7 +176,7 @@ public class SiteDetailTests : PageTestBase
|
||||
LoginAs();
|
||||
|
||||
var cut = RenderPage<SiteDetail>(p => p.Add(x => x.Id, SiteId));
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Identifiants caméras"));
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Identifiants des caméras"));
|
||||
|
||||
// Ouvrir le dialog d'ajout (bouton "Ajouter" de la section, pas du dialog).
|
||||
cut.FindAll("button").First(b => b.TextContent.Trim() == "Ajouter").Click();
|
||||
|
||||
@@ -51,7 +51,7 @@ public class SitesPageTests : PageTestBase
|
||||
var cut = RenderPage<SitesPage>();
|
||||
|
||||
cut.WaitForAssertion(() =>
|
||||
cut.Markup.ShouldContain("Erreur lors du chargement des sites."));
|
||||
cut.Markup.ShouldContain("Erreur lors du chargement des sites"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -34,7 +34,7 @@ public class SnapshotsPageTests : PageTestBase
|
||||
|
||||
cut.WaitForAssertion(() =>
|
||||
{
|
||||
cut.Markup.ShouldContain("2 snapshot(s) trouvé(s)");
|
||||
cut.Markup.ShouldContain("2 capture(s) trouvée(s)");
|
||||
cut.Markup.ShouldContain("Personne");
|
||||
cut.Markup.ShouldContain("/snapshots/1.jpg");
|
||||
cut.Markup.ShouldContain("/snapshots/2.jpg");
|
||||
@@ -54,7 +54,7 @@ public class SnapshotsPageTests : PageTestBase
|
||||
|
||||
var cut = RenderPage<SnapshotsPage>();
|
||||
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Aucun snapshot trouvé."));
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Aucune capture trouvée."));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -77,7 +77,7 @@ public class SnapshotsPageTests : PageTestBase
|
||||
LoginAs();
|
||||
|
||||
var cut = RenderPage<SnapshotsPage>();
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("2 snapshot(s) trouvé(s)"));
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("2 capture(s) trouvée(s)"));
|
||||
|
||||
// Champ recherche sans Immediate → Change
|
||||
cut.FindAll("input")[0].Change("Personne");
|
||||
@@ -86,7 +86,7 @@ public class SnapshotsPageTests : PageTestBase
|
||||
|
||||
cut.WaitForAssertion(() =>
|
||||
{
|
||||
cut.Markup.ShouldContain("1 snapshot(s) trouvé(s)");
|
||||
cut.Markup.ShouldContain("1 capture(s) trouvée(s)");
|
||||
cut.Markup.ShouldContain("Personne");
|
||||
cut.Markup.ShouldNotContain("Voiture");
|
||||
});
|
||||
@@ -110,14 +110,14 @@ public class SnapshotsPageTests : PageTestBase
|
||||
LoginAs();
|
||||
|
||||
var cut = RenderPage<SnapshotsPage>();
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Page 1 / 2 · 49 snapshot(s)"));
|
||||
cut.Find("img[alt='Snapshot']").GetAttribute("src").ShouldBe("/snapshots/original.jpg");
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Page 1 / 2 · 49 captures"));
|
||||
cut.Find("img[alt='Capture d’événement']").GetAttribute("src").ShouldBe("/snapshots/original.jpg");
|
||||
|
||||
await cut.InvokeAsync(() => cut.FindAll("button").Single(b => b.TextContent.Contains("Suivant")).Click());
|
||||
cut.WaitForAssertion(() =>
|
||||
{
|
||||
cut.Markup.ShouldContain("Page 2 / 2 · 49 snapshot(s)");
|
||||
cut.Find("img[alt='Snapshot']").GetAttribute("src").ShouldBe("/snapshots/second.jpg");
|
||||
cut.Markup.ShouldContain("Page 2 / 2 · 49 captures");
|
||||
cut.Find("img[alt='Capture d’événement']").GetAttribute("src").ShouldBe("/snapshots/second.jpg");
|
||||
});
|
||||
Handler.Requests.Last().RequestUri!.Query.ShouldContain("page=2");
|
||||
Handler.Requests.Last().RequestUri!.Query.ShouldContain("pageSize=48");
|
||||
@@ -133,7 +133,11 @@ public class SnapshotsPageTests : PageTestBase
|
||||
LoginAs();
|
||||
|
||||
var cut = RenderPage<SnapshotsPage>();
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Personne · 87%"));
|
||||
cut.WaitForAssertion(() =>
|
||||
{
|
||||
cut.Markup.ShouldContain("Personne");
|
||||
cut.Markup.ShouldContain("87");
|
||||
});
|
||||
|
||||
// La carte est un div cliquable (role=button)
|
||||
var cards = cut.FindAll("div[role=button]");
|
||||
@@ -154,7 +158,11 @@ public class SnapshotsPageTests : PageTestBase
|
||||
LoginAs();
|
||||
|
||||
var cut = RenderPage<SnapshotsPage>();
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Personne · 87%"));
|
||||
cut.WaitForAssertion(() =>
|
||||
{
|
||||
cut.Markup.ShouldContain("Personne");
|
||||
cut.Markup.ShouldContain("87");
|
||||
});
|
||||
|
||||
// Ouvrir la lightbox.
|
||||
cut.FindAll("div[role=button]")[0].Click();
|
||||
@@ -179,7 +187,11 @@ public class SnapshotsPageTests : PageTestBase
|
||||
LoginAs();
|
||||
|
||||
var cut = RenderPage<SnapshotsPage>();
|
||||
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Personne · 87%"));
|
||||
cut.WaitForAssertion(() =>
|
||||
{
|
||||
cut.Markup.ShouldContain("Personne");
|
||||
cut.Markup.ShouldContain("87");
|
||||
});
|
||||
|
||||
// Dialog présent dans l'arbre dès le rendu initial, alors que le
|
||||
// lightbox est fermé (Visible=false).
|
||||
|
||||
@@ -31,7 +31,7 @@ public class AgentDefaultsSectionTests : PageTestBase
|
||||
{
|
||||
cut.Markup.ShouldContain("Niveau de journalisation global");
|
||||
cut.Markup.ShouldContain("Rétention des journaux des agents");
|
||||
cut.Markup.ShouldContain("Intervalle de heartbeat");
|
||||
cut.Markup.ShouldContain("Intervalle du heartbeat");
|
||||
cut.Markup.ShouldContain("Envoyer les erreurs à GlitchTip");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user