test_home: Change requiring pygments.css to requiring app-styles.js.

This commit changes the tests based on the fact that pygments.css
will no longer be found in the template during testing. pygemnts.css
is being compiled by webpack under app-styles and so we look for the
stubentry for app-styles instead.

Tweaked by tabbott to do a cleaner test.
This commit is contained in:
Armaan Ahluwalia
2018-05-02 18:58:58 +05:30
committed by Tim Abbott
parent 5f7b47e20c
commit 8fe54a533a

View File

@@ -37,7 +37,8 @@ class HomeTest(ZulipTestCase):
'Next message', 'Next message',
'Search streams', 'Search streams',
'Welcome to Zulip', 'Welcome to Zulip',
'pygments.css', # Verify that the app styles get included
'app-styles-stubentry.js',
'var page_params', 'var page_params',
] ]