Fix club-metrics test copy after the dashboard relabel
"No coach" was renamed to "Teams without coach" and the "Unpaid, by age" card was replaced by the fee-status pie chart; the test still asserted the old strings.
This commit is contained in:
@@ -939,9 +939,9 @@ class ClubDetailMetricsTests(ControlPanelTestBase):
|
|||||||
def test_the_club_page_renders_its_metrics_and_charts(self):
|
def test_the_club_page_renders_its_metrics_and_charts(self):
|
||||||
response = self.client.get(reverse("controlpanel:club_detail", args=[self.club.pk]))
|
response = self.client.get(reverse("controlpanel:club_detail", args=[self.club.pk]))
|
||||||
|
|
||||||
self.assertContains(response, "No coach")
|
self.assertContains(response, "Teams without coach")
|
||||||
self.assertContains(response, "Unrostered")
|
self.assertContains(response, "Unrostered")
|
||||||
self.assertContains(response, "Unpaid, by age")
|
self.assertContains(response, "Club fee status this season")
|
||||||
self.assertContains(response, 'id="fees-chart"')
|
self.assertContains(response, 'id="fees-chart"')
|
||||||
self.assertIn("fees", response.context["charts"])
|
self.assertIn("fees", response.context["charts"])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user