~fboucault/music-app/startup_time

« back to all changes in this revision

Viewing changes to tests/autopilot/music_app/tests/test_music.py

  • Committer: Andrew Hayzen
  • Date: 2015-02-04 05:04:12 UTC
  • mfrom: (832 refactor)
  • mto: This revision was merged to the branch mainline in revision 833.
  • Revision ID: ahayzen@gmail.com-20150204050412-z3lkox5s47u63ssn
* Merge of trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
        self.app.get_albums_page().click_album(0)
79
79
 
80
80
        # get track item to swipe and queue
81
 
        track = self.app.get_songs_page().get_track(0)
 
81
        track = self.app.get_songs_view().get_track(0)
82
82
        track.swipe_reveal_actions()
83
83
 
84
84
        track.click_add_to_queue_action()  # add track to the queue
199
199
             if track["source"].endswith("mp3")][0]
200
200
 
201
201
        # switch to tracks page
202
 
        tracks_page = self.app.get_tracks_page()
 
202
        tracks_page = self.app.get_songs_page()
203
203
 
204
204
        # get track row and swipe to reveal actions
205
205
        track = tracks_page.get_track(i)
300
300
        albums_page.click_album(0)  # select album
301
301
 
302
302
        # get songs page album artist
303
 
        songs_page = self.app.get_songs_page()
 
303
        songs_page = self.app.get_songs_view()
304
304
        artist_label = songs_page.get_header_artist_label()
305
305
 
306
306
        # build list of tracks sorted by album
334
334
        tracks.sort(key=lambda track: track["album"])
335
335
 
336
336
        # get track item to swipe and queue
337
 
        songs_page = self.app.get_songs_page()
 
337
        songs_page = self.app.get_songs_view()
338
338
 
339
339
        track = songs_page.get_track(0)
340
340
        track.swipe_reveal_actions()
406
406
        initial_tracks_count = self.app.get_queue_count()
407
407
 
408
408
        # switch to tracks page
409
 
        tracks_page = self.app.get_tracks_page()
 
409
        tracks_page = self.app.get_songs_page()
410
410
 
411
411
        # get track row and swipe to reveal actions
412
412
        track = tracks_page.get_track(0)
441
441
           selecting a song to add it to a new playlist. """
442
442
 
443
443
        # switch to tracks page
444
 
        tracks_page = self.app.get_tracks_page()
 
444
        tracks_page = self.app.get_songs_page()
445
445
 
446
446
        # get track row and swipe to reveal actions
447
447
        track = tracks_page.get_track(0)
500
500
        tracks.sort(key=lambda track: track["artist"])
501
501
 
502
502
        # get albums (by an artist) page
503
 
        albums_page = self.app.get_albums_artist_page()
 
503
        albums_page = self.app.get_artist_view_page()
504
504
 
505
505
        # check album artist label is correct
506
506
        self.assertThat(albums_page.get_artist(), Equals(tracks[0]["artist"]))
509
509
        albums_page.click_artist(0)
510
510
 
511
511
        # get song page album artist
512
 
        songs_page = self.app.get_songs_page()
 
512
        songs_page = self.app.get_songs_view()
513
513
 
514
514
        # check the artist label
515
515
        artist_label = songs_page.get_header_artist_label()