With this in mind, let's take a stab at adding a 'track' view. We can start by updating the functional test with what we expect to see on a Track
page. We will totally replace the On the solo page
section of the test method. Open jmad/test.py
from the repository, and replace from line 67 to the end of the file with the following code:
# On the solo page... self.assertEqual( self.browser.current_url, self.live_server_url + '/recordings/kind-of-blue/all-blues/cannonball-adderley/' ) # he sees the artist... self.assertEqual( self.browser.find_element_by_css_selector( '#jmad-artist').text, 'Cannonball Adderley' ) # the track title (with a count of solos)... self.assertEqual( self.browser.find_element_by_css_selector( '#jmad-track').text, 'All Blues [2 solos]' ) # and the album title...