File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ exports.config = {
33
44 specs : [
55 'build/docs/ptore2e/**/*.js' ,
6+ 'test/e2e/docsAppE2E.js'
67 ] ,
78
89 capabilities : {
Original file line number Diff line number Diff line change 1+ describe ( 'docs.angularjs.org' , function ( ) {
2+ describe ( 'App' , function ( ) {
3+ // it('should filter the module list when searching', function () {
4+ // browser.get();
5+ // browser.waitForAngular();
6+
7+ // var search = element(by.input('q'));
8+ // search.clear();
9+ // search.sendKeys('ngBind');
10+
11+ // var firstModule = element(by.css('.search-results a'));
12+ // expect(firstModule.getText()).toEqual('ngBind');
13+ // });
14+
15+
16+ it ( 'should change the page content when clicking a link to a service' , function ( ) {
17+ browser . get ( '' ) ;
18+
19+ var ngBindLink = element ( by . css ( '.definition-table td a[href="api/ng.directive:ngClick"]' ) ) ;
20+ ngBindLink . click ( ) ;
21+
22+ var pageBody = element ( by . css ( '.content h1 code' ) ) ;
23+ expect ( pageBody . getText ( ) ) . toEqual ( 'ngClick' ) ;
24+ } ) ;
25+
26+
27+ it ( 'should show the functioning input directive example' , function ( ) {
28+ browser . get ( 'index-nocache.html#!/api/ng.directive:input' ) ;
29+ //Wait for animation
30+ browser . sleep ( 500 ) ;
31+
32+ var nameInput = element ( by . input ( 'user.name' ) ) ;
33+ nameInput . click ( ) ;
34+ nameInput . sendKeys ( '!!!' ) ;
35+
36+ var code = element ( by . css ( '.doc-example-live tt' ) ) ;
37+ expect ( code . getText ( ) ) . toContain ( 'guest!!!' ) ;
38+ } ) ;
39+ } ) ;
40+ } )
You can’t perform that action at this time.
0 commit comments