diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/ThemeTestHelpers.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/ThemeTestHelpers.cs
index 8dc3e89b..e0b13f6e 100644
--- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/ThemeTestHelpers.cs
+++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/ThemeTestHelpers.cs
@@ -17,7 +17,7 @@ namespace Lumina.Presentation.Api.IntegrationTests.Common.Setup;
public static class ThemeTestHelpers
{
///
- /// Waits until the bundled 'editorial-paper' theme has been installed and activated by the theme detection job at startup.
+ /// Waits until the bundled 'lumina-default' theme has been installed and activated by the theme detection job at startup.
///
/// The shared API factory whose database is polled.
/// A task representing the asynchronous operation.
@@ -31,12 +31,12 @@ public static class ThemeTestHelpers
using IServiceScope scope = apiFactory.Services.CreateScope();
LuminaDbContext dbContext = scope.ServiceProvider.GetRequiredService();
- if (await dbContext.Themes.AnyAsync(theme => theme.ThemeId == "editorial-paper" && theme.IsCurrent == true))
+ if (await dbContext.Themes.AnyAsync(theme => theme.ThemeId == "lumina-default" && theme.IsCurrent == true))
return;
await Task.Delay(DELAY_MILLISECONDS);
}
- Assert.Fail("The bundled theme 'editorial-paper' was not installed and activated within the expected time.");
+ Assert.Fail("The bundled theme 'lumina-default' was not installed and activated within the expected time.");
}
}
diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Themes/Management/DeleteTheme/DeleteThemeEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Themes/Management/DeleteTheme/DeleteThemeEndpointTests.cs
index 539bf863..ab29125d 100644
--- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Themes/Management/DeleteTheme/DeleteThemeEndpointTests.cs
+++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Themes/Management/DeleteTheme/DeleteThemeEndpointTests.cs
@@ -114,8 +114,12 @@ public class DeleteThemeEndpointTests : IClassFixture t.ThemeId == "editorial-paper");
+ // restore the bundled default theme as the active one, so the following tests start from a clean state
+ ThemeEntity? bundledTheme = await dbContext.Themes.FirstOrDefaultAsync(t => t.ThemeId == "lumina-default");
if (bundledTheme is not null)
bundledTheme.IsCurrent = true;
diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Themes/Queries/GetCurrentTheme/GetCurrentThemeEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Themes/Queries/GetCurrentTheme/GetCurrentThemeEndpointTests.cs
index d4c9900c..1fc119aa 100644
--- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Themes/Queries/GetCurrentTheme/GetCurrentThemeEndpointTests.cs
+++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Themes/Queries/GetCurrentTheme/GetCurrentThemeEndpointTests.cs
@@ -60,7 +60,7 @@ public class GetCurrentThemeEndpointTests : IClassFixture(_jsonOptions);
Assert.NotNull(theme);
- Assert.Equal("editorial-paper", theme!.ThemeId);
+ Assert.Equal("lumina-default", theme!.ThemeId);
Assert.True(theme.IsCurrent);
}
diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Themes/Queries/GetThemes/GetThemesEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Themes/Queries/GetThemes/GetThemesEndpointTests.cs
index 69a1b9f5..5adaa519 100644
--- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Themes/Queries/GetThemes/GetThemesEndpointTests.cs
+++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Themes/Queries/GetThemes/GetThemesEndpointTests.cs
@@ -65,7 +65,7 @@ public class GetThemesEndpointTests : IClassFixture? themes = await response.Content.ReadFromJsonAsync>(_jsonOptions);
Assert.NotNull(themes);
- ThemeResponse? bundledTheme = themes!.FirstOrDefault(theme => theme.ThemeId == "editorial-paper");
+ ThemeResponse? bundledTheme = themes!.FirstOrDefault(theme => theme.ThemeId == "lumina-default");
Assert.NotNull(bundledTheme);
Assert.NotEmpty(bundledTheme!.Name);
Assert.Equal(ThemeInstallSource.Bundled, bundledTheme.InstallSource);