File: validation_test.js

package info (click to toggle)
json-editor.js 1.3.2%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,700 kB
  • sloc: javascript: 10,168; perl: 39; makefile: 5
file content (12 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
// Note: validation.html has its own way of testing; this test simply tests if the output of that test conforms to the expected output

Feature('Validations');

Scenario('test validations in validation.html', (I) => {
    I.amOnPage('validation.html');
    var numberOfTestItemsExpected = 129;
    I.waitForElement("#output div:nth-child("+numberOfTestItemsExpected+")", 10);
    I.seeNumberOfElements("#output div", numberOfTestItemsExpected);
    I.see("success");
    I.dontSee('Fail');
});