Show the server's version history in the About popup
Build / test (push) Successful in 38s
Build / build (push) Successful in 1m13s

The About popup is twice as wide and shows the player's and the server's
version history side by side, each in its own scrolling column. The
server's comes from GET /api/v1/version/history every time the popup
opens. The description, which is about both, is centred above the
columns, and each history starts right under its version.
This commit is contained in:
Sansan committed 2026-10-07 14:32:31 +02:00
1 parent e1e05f3904
commit 13fdb3f68c
8 files changed
+749 -184

No files matched your search

+530 -152
View File
@@ -11,7 +11,7 @@
},
"AboutPopup": {
"rect": [
720.0,
360.0,
153.0,
1920.0,
1080.0
@@ -20,63 +20,126 @@
},
"AboutPopup/AboutPanel": {
"rect": [
720.0,
360.0,
153.0,
600.0,
1200.0,
640.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer": {
"AboutPopup/AboutPanel/Columns": {
"rect": [
740.0,
203.0,
560.0,
580.0
380.0,
249.0,
1160.0,
534.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox": {
"AboutPopup/AboutPanel/Columns/ScrollContainer": {
"rect": [
740.0,
203.0,
1.0,
545.0
380.0,
249.0,
130.0,
0.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/DescriptionLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox": {
"rect": [
740.0,
203.0,
1.0,
491.0
380.0,
249.0,
122.0,
82.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/VersionLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/PlayerHeader": {
"rect": [
740.0,
203.0,
380.0,
249.0,
122.0,
28.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/VersionLabel": {
"rect": [
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/WhatsNewLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/WhatsNewLabel": {
"rect": [
740.0,
203.0,
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer": {
"rect": [
380.0,
249.0,
132.0,
0.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox": {
"rect": [
380.0,
249.0,
124.0,
82.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerHeader": {
"rect": [
380.0,
249.0,
124.0,
28.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerHistoryLabel": {
"rect": [
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerVersionLabel": {
"rect": [
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/DescriptionLabel": {
"rect": [
380.0,
203.0,
1160.0,
30.0
],
"visible": false
},
"AboutPopup/AboutPanel/TitleLabel": {
"rect": [
720.0,
360.0,
153.0,
600.0,
1200.0,
50.0
],
"visible": false
@@ -3370,7 +3433,7 @@
},
"AboutPopup": {
"rect": [
720.0,
360.0,
153.0,
1920.0,
1080.0
@@ -3379,63 +3442,126 @@
},
"AboutPopup/AboutPanel": {
"rect": [
720.0,
360.0,
153.0,
600.0,
1200.0,
640.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer": {
"AboutPopup/AboutPanel/Columns": {
"rect": [
740.0,
203.0,
560.0,
580.0
380.0,
249.0,
1160.0,
534.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox": {
"AboutPopup/AboutPanel/Columns/ScrollContainer": {
"rect": [
740.0,
203.0,
1.0,
545.0
380.0,
249.0,
130.0,
0.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/DescriptionLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox": {
"rect": [
740.0,
203.0,
1.0,
491.0
380.0,
249.0,
122.0,
82.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/VersionLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/PlayerHeader": {
"rect": [
740.0,
203.0,
380.0,
249.0,
122.0,
28.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/VersionLabel": {
"rect": [
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/WhatsNewLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/WhatsNewLabel": {
"rect": [
740.0,
203.0,
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer": {
"rect": [
380.0,
249.0,
132.0,
0.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox": {
"rect": [
380.0,
249.0,
124.0,
82.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerHeader": {
"rect": [
380.0,
249.0,
124.0,
28.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerHistoryLabel": {
"rect": [
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerVersionLabel": {
"rect": [
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/DescriptionLabel": {
"rect": [
380.0,
203.0,
1160.0,
30.0
],
"visible": false
},
"AboutPopup/AboutPanel/TitleLabel": {
"rect": [
720.0,
360.0,
153.0,
600.0,
1200.0,
50.0
],
"visible": false
@@ -6945,7 +7071,7 @@
},
"AboutPopup": {
"rect": [
720.0,
360.0,
153.0,
1920.0,
1080.0
@@ -6954,63 +7080,126 @@
},
"AboutPopup/AboutPanel": {
"rect": [
720.0,
360.0,
153.0,
600.0,
1200.0,
640.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer": {
"AboutPopup/AboutPanel/Columns": {
"rect": [
740.0,
203.0,
560.0,
580.0
380.0,
249.0,
1160.0,
534.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox": {
"AboutPopup/AboutPanel/Columns/ScrollContainer": {
"rect": [
740.0,
203.0,
1.0,
545.0
380.0,
249.0,
130.0,
0.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/DescriptionLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox": {
"rect": [
740.0,
203.0,
1.0,
491.0
380.0,
249.0,
122.0,
82.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/VersionLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/PlayerHeader": {
"rect": [
740.0,
203.0,
380.0,
249.0,
122.0,
28.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/VersionLabel": {
"rect": [
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/WhatsNewLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/WhatsNewLabel": {
"rect": [
740.0,
203.0,
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer": {
"rect": [
380.0,
249.0,
132.0,
0.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox": {
"rect": [
380.0,
249.0,
124.0,
82.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerHeader": {
"rect": [
380.0,
249.0,
124.0,
28.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerHistoryLabel": {
"rect": [
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerVersionLabel": {
"rect": [
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/DescriptionLabel": {
"rect": [
380.0,
203.0,
1160.0,
30.0
],
"visible": false
},
"AboutPopup/AboutPanel/TitleLabel": {
"rect": [
720.0,
360.0,
153.0,
600.0,
1200.0,
50.0
],
"visible": false
@@ -10601,7 +10790,7 @@
"popup_AboutWindow": {
"AboutPopup": {
"rect": [
720.0,
360.0,
153.0,
1920.0,
1080.0
@@ -10610,63 +10799,126 @@
},
"AboutPopup/AboutPanel": {
"rect": [
720.0,
360.0,
153.0,
600.0,
1200.0,
640.0
],
"visible": true
},
"AboutPopup/AboutPanel/ScrollContainer": {
"AboutPopup/AboutPanel/Columns": {
"rect": [
740.0,
203.0,
380.0,
249.0,
1160.0,
534.0
],
"visible": true
},
"AboutPopup/AboutPanel/Columns/ScrollContainer": {
"rect": [
380.0,
249.0,
560.0,
580.0
534.0
],
"visible": true
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox": {
"rect": [
740.0,
203.0,
380.0,
249.0,
552.0,
2105.0
2032.0
],
"visible": true
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/DescriptionLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/PlayerHeader": {
"rect": [
740.0,
230.0,
380.0,
249.0,
552.0,
49.0
28.0
],
"visible": true
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/VersionLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/VersionLabel": {
"rect": [
740.0,
203.0,
380.0,
281.0,
552.0,
23.0
],
"visible": true
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/WhatsNewLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/WhatsNewLabel": {
"rect": [
740.0,
283.0,
380.0,
308.0,
552.0,
2025.0
1973.0
],
"visible": true
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer": {
"rect": [
980.0,
249.0,
560.0,
534.0
],
"visible": true
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox": {
"rect": [
980.0,
249.0,
560.0,
534.0
],
"visible": true
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerHeader": {
"rect": [
980.0,
249.0,
560.0,
28.0
],
"visible": true
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerHistoryLabel": {
"rect": [
980.0,
308.0,
560.0,
309.0
],
"visible": true
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerVersionLabel": {
"rect": [
980.0,
281.0,
560.0,
23.0
],
"visible": true
},
"AboutPopup/AboutPanel/DescriptionLabel": {
"rect": [
380.0,
203.0,
1160.0,
30.0
],
"visible": true
},
"AboutPopup/AboutPanel/TitleLabel": {
"rect": [
720.0,
360.0,
153.0,
600.0,
1200.0,
50.0
],
"visible": true
@@ -13710,7 +13962,7 @@
},
"AboutPopup": {
"rect": [
720.0,
360.0,
153.0,
1920.0,
1080.0
@@ -13719,63 +13971,126 @@
},
"AboutPopup/AboutPanel": {
"rect": [
720.0,
360.0,
153.0,
600.0,
1200.0,
640.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer": {
"AboutPopup/AboutPanel/Columns": {
"rect": [
740.0,
203.0,
560.0,
580.0
380.0,
249.0,
1160.0,
534.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox": {
"AboutPopup/AboutPanel/Columns/ScrollContainer": {
"rect": [
740.0,
203.0,
1.0,
545.0
380.0,
249.0,
130.0,
0.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/DescriptionLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox": {
"rect": [
740.0,
203.0,
1.0,
491.0
380.0,
249.0,
122.0,
82.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/VersionLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/PlayerHeader": {
"rect": [
740.0,
203.0,
380.0,
249.0,
122.0,
28.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/VersionLabel": {
"rect": [
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/WhatsNewLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/WhatsNewLabel": {
"rect": [
740.0,
203.0,
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer": {
"rect": [
380.0,
249.0,
132.0,
0.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox": {
"rect": [
380.0,
249.0,
124.0,
82.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerHeader": {
"rect": [
380.0,
249.0,
124.0,
28.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerHistoryLabel": {
"rect": [
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerVersionLabel": {
"rect": [
380.0,
249.0,
1.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/DescriptionLabel": {
"rect": [
380.0,
203.0,
1160.0,
30.0
],
"visible": false
},
"AboutPopup/AboutPanel/TitleLabel": {
"rect": [
720.0,
360.0,
153.0,
600.0,
1200.0,
50.0
],
"visible": false
@@ -21206,7 +21521,7 @@
},
"AboutPopup": {
"rect": [
720.0,
360.0,
153.0,
1920.0,
1080.0
@@ -21215,63 +21530,126 @@
},
"AboutPopup/AboutPanel": {
"rect": [
720.0,
360.0,
153.0,
600.0,
1200.0,
640.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer": {
"AboutPopup/AboutPanel/Columns": {
"rect": [
740.0,
203.0,
380.0,
249.0,
1160.0,
534.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ScrollContainer": {
"rect": [
380.0,
249.0,
560.0,
580.0
534.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox": {
"rect": [
740.0,
203.0,
380.0,
249.0,
552.0,
2105.0
2032.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/DescriptionLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/PlayerHeader": {
"rect": [
740.0,
230.0,
380.0,
249.0,
552.0,
49.0
28.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/VersionLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/VersionLabel": {
"rect": [
740.0,
203.0,
380.0,
281.0,
552.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox/WhatsNewLabel": {
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox/WhatsNewLabel": {
"rect": [
740.0,
283.0,
380.0,
308.0,
552.0,
2025.0
1973.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer": {
"rect": [
980.0,
249.0,
560.0,
534.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox": {
"rect": [
980.0,
249.0,
560.0,
534.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerHeader": {
"rect": [
980.0,
249.0,
560.0,
28.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerHistoryLabel": {
"rect": [
980.0,
308.0,
560.0,
309.0
],
"visible": false
},
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox/ServerVersionLabel": {
"rect": [
980.0,
281.0,
560.0,
23.0
],
"visible": false
},
"AboutPopup/AboutPanel/DescriptionLabel": {
"rect": [
380.0,
203.0,
1160.0,
30.0
],
"visible": false
},
"AboutPopup/AboutPanel/TitleLabel": {
"rect": [
720.0,
360.0,
153.0,
600.0,
1200.0,
50.0
],
"visible": false
+14
View File
@@ -28,6 +28,19 @@ const SYNC_RESULT: Dictionary = {
"total_time": "00:00:03",
}
## The server's version history, newest first.
const SERVER_HISTORY: Array[Dictionary] = [
{"version": "5.0.0", "changelog": [
"#9 - Major routes refactor and expansion", "#15 - Added API for statistics",
"Token authentication for /api/v1",
]},
{"version": "4.5.0", "changelog": [
"#1 - Created request to check newest version of the app",
"#2 - Added request to download the newest version of the app",
]},
{"version": "4.0.0", "changelog": ["Changed framework from gin to Echo", "Reorganized the code"]},
]
## Song names of the first soundtrack in the statistics, to show Japanese text.
const JAPANESE_SONGS: Array[String] = [
"時の回廊", "カエルのテーマ", "風の憧憬", "魔王決戦", "遥かなる時の彼方へ",
@@ -76,6 +89,7 @@ static func make_server() -> FakeHttpTransport:
server.respond_bytes("/sync", PackedByteArray())
server.respond_json("/sync/progress", SYNC_PROGRESS)
server.respond_json("/statistics/soundtracks", soundtrack_statistics())
server.respond_json("/version/history", SERVER_HISTORY)
return server
+102
View File
@@ -0,0 +1,102 @@
extends MainWindowTestSuite
## The About popup: the game's version history next to the server's.
const HISTORY: Array[Dictionary] = [
{"version": "5.0.0", "changelog": ["Statistics for every soundtrack", "Tokens"]},
{"version": "4.5.0", "changelog": ["Download the newest player"]},
]
var _popup: AboutPopup
func _before_window_starts() -> void:
_server.respond_json("/version/history", HISTORY)
func before_test() -> void:
super()
_popup = _window.get_node("AboutPopup")
func _open_with_top_bar_button() -> void:
await _click_at((_window.get_node("TopBar/AboutButton") as Control).get_global_rect()
.get_center())
func test_about_button_opens_the_popup_and_clicking_outside_closes_it() -> void:
await _open_with_top_bar_button()
assert_bool(_popup.visible).is_true()
await _click_at(Vector2(100, 1000))
assert_bool(_popup.visible).is_false()
func test_shows_the_server_versions_in_the_servers_order() -> void:
await _open_with_top_bar_button()
assert_int(_server.count("/version/history")).is_equal(1)
assert_str(_popup.server_version_label.text).is_equal("5.0.0")
assert_str(_popup.server_history_label.text).is_equal(
"5.0.0\nStatistics for every soundtrack\nTokens\n\n4.5.0\nDownload the newest player")
func test_still_shows_the_games_own_versions() -> void:
await _open_with_top_bar_button()
assert_str(_popup.version_label.text).is_equal(Settings.version)
var lines: PackedStringArray = _popup.whats_new_label.text.split("\n")
for version: String in AboutPopup.WHATS_NEW:
assert_bool(lines.has(version)).override_failure_message(version + " is missing") \
.is_true()
assert_str(_popup.whats_new_label.text).starts_with(AboutPopup.WHATS_NEW.keys()[0] + "\n")
func test_columns_sit_side_by_side_in_the_window() -> void:
await _open_with_top_bar_button()
var game: Rect2 = _popup.find_child("PlayerHeader").get_global_rect()
var server: Rect2 = _popup.find_child("ServerHeader").get_global_rect()
assert_float(server.position.x).is_greater(game.end.x)
assert_float(server.position.y).is_equal(game.position.y)
assert_bool(Rect2(Vector2.ZERO, Vector2(1920, 1080)).encloses(
_popup.about_panel.get_global_rect())).is_true()
func test_server_error_says_so() -> void:
_server.respond_json("/version/history", {"error": "Internal Server Error"}, 500)
await _open_with_top_bar_button()
assert_str(_popup.server_version_label.text).is_equal("Could not reach the server")
assert_str(_popup.server_history_label.text).is_empty()
func test_shows_loading_until_the_server_answers() -> void:
_server.hold("/version/history")
await _open_with_top_bar_button()
assert_str(_popup.server_version_label.text).is_equal("Loading…")
_server.release("/version/history")
assert_str(_popup.server_version_label.text).is_equal("5.0.0")
func test_opening_again_asks_the_server_again() -> void:
_popup.open()
_popup.close()
_popup.open()
assert_int(_server.count("/version/history")).is_equal(2)
func test_description_is_centred_above_both_columns() -> void:
await _open_with_top_bar_button()
var description: Label = _popup.find_child("DescriptionLabel")
assert_object(description.get_parent()).is_same(_popup.about_panel)
assert_int(description.horizontal_alignment).is_equal(HORIZONTAL_ALIGNMENT_CENTER)
assert_float(description.get_global_rect().end.y) \
.is_less_equal(_popup.find_child("PlayerHeader").get_global_rect().position.y)
assert_float(description.get_global_rect().get_center().x) \
.is_equal_approx(_popup.about_panel.get_global_rect().get_center().x, 1.0)
@@ -0,0 +1 @@
uid://blyg83doq82wl
+2 -1
View File
@@ -12,7 +12,8 @@ const BASELINE_PATH: String = "res://tests/data/layout_baseline.json"
## Nodes whose height follows text that changes between versions, such as the changelog.
## Their position and width are still checked.
const HEIGHT_FOLLOWS_TEXT: Array[String] = [
"AboutPopup/AboutPanel/ScrollContainer/ContentVBox",
"AboutPopup/AboutPanel/Columns/ScrollContainer/ContentVBox",
"AboutPopup/AboutPanel/Columns/ServerScrollContainer/ServerContentVBox",
]
## How far a node may be from its old place, in pixels.