Completed
Push — master ( 93e6f2...6e83f4 )
by greg
16:27 queued 13:12
created

tests/e2e/slug/slug.js   A

Complexity

Total Complexity 9
Complexity/F 1

Size

Lines of Code 34
Function Count 9

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
c 1
b 0
f 0
nc 1
dl 0
loc 34
rs 10
wmc 9
mnd 0
bc 9
fnc 9
bpm 1
cpm 1
noi 0
1
describe('Abe', function() {
2
3
  describe('slug', function() {
4
5
    before(function(client, done) {
6
      done();
7
    });
8
9
    after(function(client, done) {
10
      client.end(function() {
11
        done();
12
      });
13
    });
14
15
    afterEach(function(client, done) {
16
      done();
17
    });
18
19
    beforeEach(function(client, done) {
20
      done();
21
    });
22
23
    it('Create a slug template post', function(client) {
24
      client
25
        .useXpath()
26
        .url('http://localhost:3003/abe/editor')
27
        .click('//*[@id="selectTemplate"]/option[11]')
28
        .pause(1000)
29
        .elements('xpath',"//div[@data-precontrib-templates='slug']", function (result) {
30
            client.assert.equal(result.value.length, 2);
31
        });
32
    });
33
  });
34
});