@@ -26,21 +26,6 @@ describe('docs.angularjs.org', function () {
2626 } ) ;
2727
2828
29- it ( 'should show the functioning input directive example' , function ( ) {
30- browser . get ( 'index-debug.html#!/api/ng/directive/input' ) ;
31-
32- // Ensure that the page is loaded before trying to switch frames.
33- browser . waitForAngular ( ) ;
34-
35- browser . switchTo ( ) . frame ( 'example-input-directive' ) ;
36-
37- var nameInput = element ( by . model ( 'user.name' ) ) ;
38- nameInput . sendKeys ( '!!!' ) ;
39-
40- var code = element . all ( by . css ( 'tt' ) ) . first ( ) ;
41- expect ( code . getText ( ) ) . toContain ( 'guest!!!' ) ;
42- } ) ;
43-
4429
4530 it ( 'should be resilient to trailing slashes' , function ( ) {
4631 browser . get ( 'index-debug.html#!/api/ng/function/angular.noop/' ) ;
@@ -67,6 +52,12 @@ describe('docs.angularjs.org', function () {
6752 browser . get ( 'index-debug.html#!error/ng/areq?p0=Missing&p1=not%20a%20function,%20got%20undefined' ) ;
6853 expect ( element ( by . css ( '.minerr-errmsg' ) ) . getText ( ) ) . toEqual ( "Argument 'Missing' is not a function, got undefined" ) ;
6954 } ) ;
55+
56+
57+ it ( "should display an error if the page does not exist" , function ( ) {
58+ browser . get ( 'index-debug.html#!/api/does/not/exist' ) ;
59+ expect ( element ( by . css ( 'h1' ) ) . getText ( ) ) . toBe ( 'Oops!' ) ;
60+ } ) ;
7061 } ) ;
7162
7263 describe ( "templates" , function ( ) {
@@ -76,13 +67,4 @@ describe('docs.angularjs.org', function () {
7667 } ) ;
7768 } ) ;
7869
79- describe ( "API pages" , function ( ) {
80- it ( "should display links to code on GitHub" , function ( ) {
81- browser . get ( 'index-debug.html#!/api/ng/service/$http' ) ;
82- expect ( element ( by . css ( '.improve-docs' ) ) . getAttribute ( 'href' ) ) . toMatch ( / h t t p s ? : \/ \/ g i t h u b \. c o m \/ a n g u l a r \/ a n g u l a r \. j s \/ e d i t \/ .+ \/ s r c \/ n g \/ h t t p \. j s / ) ;
83-
84- browser . get ( 'index-debug.html#!/api/ng/service/$http' ) ;
85- expect ( element ( by . css ( '.view-source' ) ) . getAttribute ( 'href' ) ) . toMatch ( / h t t p s ? : \/ \/ g i t h u b \. c o m \/ a n g u l a r \/ a n g u l a r \. j s \/ t r e e \/ .+ \/ s r c \/ n g \/ h t t p \. j s # L \d + / ) ;
86- } ) ;
87- } ) ;
8870} ) ;
0 commit comments