Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

Studio mode UI test (About shows the studio); site wording checks name what they find

islandmeda34f907b18b5
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 29427c24..1eeb2ef0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -833,6 +833,8 @@ if(SCULPTFORGE_BUILD_TESTS)
set_tests_properties(ui_hardware_profile PROPERTIES ENVIRONMENT "SF_HW_PROFILE_IN_TESTS=1")
endif()
# The shell layout again on a 1920x1080 window (docs/ui-design.md §2.3).
+ # Studio mode: About shows the studio (tests/data/studio; core/StudioProfile.h).
+ sculptforge_ui_test(studio_mode studio/studio_mode --studio ${CMAKE_CURRENT_SOURCE_DIR}/tests/data/studio/studio.json)
sculptforge_ui_test(shell_layout_1080 shell_layout --size 1920x1080)
sculptforge_ui_test(help_console_1080 help_console --size 1920x1080)
# The S / U / I / O slider on a UI scaled 1.5x (Windows at 150%, #9): it must still open under the cursor.
diff --git a/tests/data/studio/logo.png b/tests/data/studio/logo.png
new file mode 100644
index 00000000..0b34f1a0
Binary files /dev/null and b/tests/data/studio/logo.png differ
diff --git a/tests/data/studio/studio.json b/tests/data/studio/studio.json
new file mode 100644
index 00000000..f1c7d453
--- /dev/null
+++ b/tests/data/studio/studio.json
@@ -0,0 +1,6 @@
+{
+ "format": "sculptforge-studio", "version": 1,
+ "id": "example", "name": "Example Studio",
+ "updates": {"mirror": "latest.json"},
+ "branding": {"logo": "logo.png", "title": "Example"}
+}
diff --git a/tests/test_support.cpp b/tests/test_support.cpp
index 195932a6..4d448688 100644
--- a/tests/test_support.cpp
+++ b/tests/test_support.cpp
@@ -7,6 +7,7 @@
#include "app/Support.h"
+#include <cstdio>
#include <fstream>
#include <iterator>
#include <string>
@@ -89,11 +90,15 @@ TEST(support_card_links_match_the_website) {
// Retired: the Insider tier and one-time payments. Studio v4 (11-05): $300 for up to 10 artists, +$25 each after,
// Founding Studio $150 through the existing checkout; the old wording that contradicts it is gone.
for (const std::string& p : {page, studios})
- for (const char* old : {"Insider", "One-time", "one-time", "$20", "whole company", "no seat count", "5 custom items"})
+ for (const char* old : {"Insider", "One-time", "one-time", "$20", "whole company", "no seat count", "5 custom items"}) {
+ if (p.find(old) != std::string::npos) std::printf(" retired wording on the site: \"%s\"\n", old);
CHECK(p.find(old) == std::string::npos);
+ }
for (const std::string& p : {page, studios})
- for (const char* now : {"$300", "Founding Studio", "$150", "3 custom items", "no outside connections"})
+ for (const char* now : {"$300", "Founding Studio", "$150", "3 custom items", "no outside connections"}) {
+ if (p.find(now) == std::string::npos) std::printf(" missing on the site: \"%s\"\n", now);
CHECK(p.find(now) != std::string::npos);
+ }
CHECK(studios.find("GPL-3.0") != std::string::npos && studios.find("no exclusive or secret features") != std::string::npos);
CHECK(std::string(kStudioPageUrl) == "https://sculptforge.app/studios.html#membership");
}
diff --git a/tests/ui/studio/studio_mode.sfui b/tests/ui/studio/studio_mode.sfui
new file mode 100644
index 00000000..ff46871f
--- /dev/null
+++ b/tests/ui/studio/studio_mode.sfui
@@ -0,0 +1,10 @@
+# Studio mode (core/StudioProfile.h), started with --studio tests/data/studio/studio.json (CMakeLists.txt): About names
+# the studio and shows its logo, the title bar says its name, AI is off and locked, and the update check reads only
+# the studio's mirror (a file here that doesn't exist: nothing is asked of the internet).
+run ui_look look=classic layout=classic
+run new_sphere subdivisions=3
+click "Help##palette.help"
+click "About SculptForge##help.about"
+expect_text "Studio build for Example Studio"
+expect_text "Offline: no outside connections."
+shot about_studio
diff --git a/website/studios.html b/website/studios.html
index 896af85a..6bd556c7 100644
--- a/website/studios.html
+++ b/website/studios.html
@@ -319,8 +319,7 @@
<li><strong>Pinned version</strong>: you choose when to move. Security fixes are backported to the
current release and one long-term support (LTS) line</li>
<li><strong>Offline signed installer</strong> with checksums for IT</li>
- <li><strong>Support</strong>: a first response within 2 business days (a response, not a fix), up to 3
- custom items a month, your requests first on the roadmap, and a private Discord channel</li>
+ <li><strong>Support</strong>: a first response within 2 business days (a response, not a fix), up to 3 custom items a month, your requests first on the roadmap, and a private Discord channel</li>
<li>Everything in Member for each artist; invoiced monthly; cancel anytime</li>
</ul>
</div>