mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Use sequential new display IDs to preserve sorting on setup page.
This commit is contained in:
@@ -17,7 +17,7 @@ func TestAllianceStationDisplay(t *testing.T) {
|
||||
|
||||
recorder := web.getHttpResponse("/displays/alliance_station")
|
||||
assert.Equal(t, 302, recorder.Code)
|
||||
assert.Contains(t, recorder.Header().Get("Location"), "displayId=874")
|
||||
assert.Contains(t, recorder.Header().Get("Location"), "displayId=100")
|
||||
assert.Contains(t, recorder.Header().Get("Location"), "station=R1")
|
||||
|
||||
recorder = web.getHttpResponse("/displays/alliance_station?displayId=1&station=B1")
|
||||
|
||||
@@ -15,7 +15,7 @@ func TestAudienceDisplay(t *testing.T) {
|
||||
|
||||
recorder := web.getHttpResponse("/displays/audience")
|
||||
assert.Equal(t, 302, recorder.Code)
|
||||
assert.Contains(t, recorder.Header().Get("Location"), "displayId=874")
|
||||
assert.Contains(t, recorder.Header().Get("Location"), "displayId=100")
|
||||
assert.Contains(t, recorder.Header().Get("Location"), "background=%230f0")
|
||||
assert.Contains(t, recorder.Header().Get("Location"), "reversed=false")
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ func TestPlaceholderDisplay(t *testing.T) {
|
||||
|
||||
recorder := web.getHttpResponse("/displays/audience")
|
||||
assert.Equal(t, 302, recorder.Code)
|
||||
assert.Contains(t, recorder.Header().Get("Location"), "displayId=874")
|
||||
assert.Contains(t, recorder.Header().Get("Location"), "displayId=100")
|
||||
|
||||
recorder = web.getHttpResponse("/display?displayId=1")
|
||||
assert.Equal(t, 200, recorder.Code)
|
||||
|
||||
Reference in New Issue
Block a user