@@ -25,29 +25,43 @@ describe('Abe', function() {
25
25
. useXpath ( )
26
26
. url ( 'http://localhost:3003/abe/editor' )
27
27
. click ( '//*[@id="selectTemplate"]/option[2]' )
28
- . waitForElementVisible ( '//* [@id=" name"]' , 1000 )
29
- . setValue ( '//* [@id=" name"]' , 'autocomplete' )
30
- . click ( '/html/body/div[1]/div[1]/div[2]/div[1]/div[1]/div[2]/form/div[11]/div/ button' )
28
+ . waitForElementVisible ( "//div[@data-precontrib-templates='autocomplete']//input [@id=' name']" , 1000 )
29
+ . setValue ( "//div[@data-precontrib-templates='autocomplete']//input [@id=' name']" , 'autocomplete' )
30
+ . click ( "// button[@type='submit']" )
31
31
. pause ( 1000 )
32
32
. waitForElementVisible ( '//*[@id="abeForm"]' , 2000 )
33
33
. assert . urlEquals ( "http://localhost:3003/abe/editor/autocomplete.html" , "Clicked URL Matches with URL of the New Window" ) ;
34
34
} ) ;
35
35
36
-
37
- it ( 'Abe type data reference json' , function ( client ) {
36
+ // it('Abe type data reference json', function(client) {
37
+ // client
38
+ // .useXpath()
39
+ // .url('http://localhost:3003/abe/editor/autocomplete.html')
40
+ // .waitForElementVisible('//body')
41
+ // .pause(1000)
42
+ // .click('//*[@id="abeForm"]/ul/li[2]/a')
43
+ // .waitForElementVisible('//*[@id="reference"]/div')
44
+ // .click('//*[@id="reference.single"]/option[2]')
45
+ // .click('//*[@id="reference.multiple"]/option[3]')
46
+ // .setValue('//*[@id="reference.autocomplete"]', 'rouge')
47
+ // .waitForElementVisible('//*[@id="reference"]/div/div/div/div[3]/div[2]', 2000)
48
+ // .click('//*[@id="reference"]/div/div/div/div[3]/div[2]/div[1]')
49
+ // .waitForElementVisible('//*[@id="reference"]/div/div/div/div[3]/div/div', 2000);
50
+ // });
51
+ //
52
+
53
+ it ( 'The autocomplete article is deleted in the manager' , function ( client ) {
38
54
client
39
55
. useXpath ( )
40
- . url ( 'http://localhost:3003/abe/editor/autocomplete.html ' )
56
+ . url ( 'http://localhost:3003/abe/editor' )
41
57
. waitForElementVisible ( '//body' )
42
58
. pause ( 1000 )
43
- . click ( '//*[@id="abeForm"]/ul/li[2]/a' )
44
- . waitForElementVisible ( '//*[@id="reference"]/div' )
45
- . click ( '//*[@id="reference.single"]/option[2]' )
46
- . click ( '//*[@id="reference.multiple"]/option[3]' )
47
- . setValue ( '//*[@id="reference.autocomplete"]' , 'test' )
48
- . waitForElementVisible ( '//*[@id="reference"]/div/div/div/div[3]/div[2]' , 2000 )
49
- . click ( '//*[@id="reference"]/div/div/div/div[3]/div[2]/div[1]' )
50
- . waitForElementVisible ( '//*[@id="reference"]/div/div/div/div[3]/div/div' , 2000 ) ;
59
+ . click ( "//table[@id='navigation-list']/tbody/tr[1]/td[7]/div/a" )
60
+ . pause ( 1000 )
61
+ . acceptAlert ( )
62
+ . url ( 'http://localhost:3003/abe/editor' )
63
+ . pause ( 2000 )
64
+ . expect . element ( "//table[@id='navigation-list']/tbody/tr[1]/td[2]/a" ) . text . to . not . contain ( '/articles/ftest.html' ) ;
51
65
} ) ;
52
66
} ) ;
53
67
} ) ;
0 commit comments