From 80881949fcea9279b2eae195a70a993e8999b07e Mon Sep 17 00:00:00 2001 From: Risan Bagja Pradana Date: Fri, 16 Oct 2015 22:47:17 +0200 Subject: [PATCH] docs(tutorial): add a note about Chrome or Firefox not being available Based on the current configuration, Karma will run the tests on both Chrome and Firefox, which will result in an error if either browser is not available on the user's machine. This commit adds a note and directions on how to solve this. Closes #13114 --- docs/content/tutorial/step_02.ngdoc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/content/tutorial/step_02.ngdoc b/docs/content/tutorial/step_02.ngdoc index 5461ae0cdbc1..19e8e0474549 100644 --- a/docs/content/tutorial/step_02.ngdoc +++ b/docs/content/tutorial/step_02.ngdoc @@ -195,8 +195,19 @@ to ensure that Karma and its necessary plugins are installed. You can do this by To run the tests, and then watch the files for changes: `npm test`. -* Karma will start a new instance of Chrome browser automatically. Just ignore it and let it run in - the background. Karma will use this browser for test execution. +* Karma will start new instances of Chrome and Firefox browsers automatically. Just ignore them and + let them run in the background. Karma will use these browsers for test execution. +* If you only have one of the browsers installed on your machine (either Chrome or Firefox), make + sure to update the karma configuration file before running the test. Locate the configuration file + in `test/karma.conf.js`, then update the `browsers` property. + + E.g. if you only have Chrome installed: +
+    ...
+    browsers: ['Chrome'],
+    ...
+  
+ * You should see the following or similar output in the terminal:
@@ -250,7 +261,7 @@ browser is limited, which results in your karma tests running extremely slow.
             row number
             {{i+1}}
           
-  
+
   Extra points: try and make an 8x8 table using an additional `ng-repeat`.
 
 * Make the unit test fail by changing `expect(scope.phones.length).toBe(3)` to instead use `toBe(4)`.