Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Feature('allapplications');
- Scenario('test something', (I) => {
- var assert = require('assert');
- I.amOnPage('http://localhost:8080');
- I.see('Login');
- I.click('Login');
- I.see('Username');
- I.see('Password');
- I.fillField('Username', 'dennis');
- I.fillField('Password', '123456');
- assert(I.grabCurrentUrl(),"http://localhost:8080/")
- I.click('Login');
- I.click('All Applications');
- I.see('Roland', '.table');
- I.see('Ananas', '.table');
- I.see('Michael', '.table');
- I.see('roland@gmail.com', '.table');
- I.see('ahmet@gmail.com\t', '.table');
- I.see('hseyin@gmail.com\t', '.table');
- I.see('111111111\t', '.table');
- I.see('22222222', '.table');
- I.see('33333333', '.table');
- I.see('izmir', '.table');
- I.see('Berlin', '.table');
- I.see('istanbul', '.table');
- I.see('ohpls', '.table');
- I.see('omg hire me', '.table');
- I.see('idk man', '.table');
- I.see('Программист', '.table');
- I.see('Повар', '.table');
- I.click('Home');
- assert(I.grabCurrentUrl(),"http://localhost:8080/");
- I.seeElement('.navbar-nav');
- });
- Feature('jobs');
- Scenario('test something', (I) => {
- var assert = require('assert');
- I.amOnPage('http://localhost:8080');
- I.see('Login');
- I.click('Login');
- I.see('Username');
- I.see('Password');
- I.fillField('Username', 'dennis');
- I.fillField('Password', '123456');
- assert(I.grabCurrentUrl(),"http://localhost:8080/")
- I.click('Login');
- I.click('Jobs');
- assert(I.grabCurrentUrl(),"http://localhost:8080/jobs/")
- I.see('Программист', '.table');
- I.see('Повар', '.table');
- I.see('Опыт Java', '.table');
- I.see('Срочно', '.table');
- I.see('Программист', '.table');
- I.see('2', '.table');
- I.see('1', '.table');
- I.see('01/05/2018', '.table');
- I.see('02/05/2018', '.table');
- I.click('Home');
- assert(I.grabCurrentUrl(),"http://localhost:8080/")
- I.click('Jobs');
- I.click('Add Job');
- assert(I.grabCurrentUrl(),"http://localhost:8080/jobs/add")
- I.seeElement('card-body');
- });
- Feature('login');
- Scenario('test something', (I) => {
- var assert = require('assert');
- I.amOnPage('http://localhost:8080');
- I.see('Login');
- I.click('Login');
- I.see('Username');
- I.see('Password');
- I.fillField('Username', 'dennis');
- I.fillField('Password', '123456');
- assert(I.grabCurrentUrl(),"http://localhost:8080/")
- I.click('Login');
- });
- Feature('JobForm');
- Scenario('test something', (I) => {
- var assert = require('assert');
- I.amOnPage('http://localhost:8080');
- I.see('Login');
- I.click('Login');
- I.see('Username');
- I.see('Password');
- I.fillField('Username', 'dennis');
- I.fillField('Password', '123456');
- assert(I.grabCurrentUrl(),"http://localhost:8080/")
- I.click('Login');
- I.click('Jobs');
- assert(I.grabCurrentUrl(),"http://localhost:8080/jobs/")
- I.see('Программист', '.table');
- I.see('Повар', '.table');
- I.see('Опыт Java', '.table');
- I.see('Срочно', '.table');
- I.see('Программист', '.table');
- I.see('2', '.table');
- I.see('1', '.table');
- I.see('01/05/2018', '.table');
- I.see('02/05/2018', '.table');
- I.click('Home');
- assert(I.grabCurrentUrl(),"http://localhost:8080/")
- I.click('Jobs');
- I.click('Add Job');
- assert(I.grabCurrentUrl(),"http://localhost:8080/jobs/add")
- });
- Feature('JobForm');
- Scenario('test something', (I) => {
- var assert = require('assert');
- I.amOnPage('http://localhost:8080');
- I.see('Login');
- I.click('Login');
- I.see('Username');
- I.see('Password');
- I.fillField('Username', 'dennis');
- I.fillField('Password', '123456');
- assert(I.grabCurrentUrl(),"http://localhost:8080/")
- I.click('Login');
- I.click('Jobs');
- assert(I.grabCurrentUrl(),"http://localhost:8080/jobs/")
- I.see('Программист', '.table');
- I.see('Повар', '.table');
- I.see('Опыт Java', '.table');
- I.see('Срочно', '.table');
- I.see('Программист', '.table');
- I.see('2', '.table');
- I.see('1', '.table');
- I.see('01/05/2018', '.table');
- I.see('02/05/2018', '.table');
- I.click('Home');
- assert(I.grabCurrentUrl(),"http://localhost:8080/")
- I.click('Jobs');
- I.click('Add Job');
- assert(I.grabCurrentUrl(),"http://localhost:8080/jobs/add")
- I.fillField('Job Title:', 'h');
- I.see('size must be between 3 and 20
- may not be empty');
- I.fillField('Job Title:', 'Manager');
- I.see('Manager');
- I.fillField('Job Title:', ' hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh');
- I.see(' hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh');
- I.fillField('Job Title:', '«¼ ½ ¾ ⅓ ⅔ ⅛ ⅜ ⅝ ≈ > ≥ ≧ ≩ ≫ ≳ ⋝ ÷ ∕ ± ∓ ≂ ⊟ ⊞ ⨁ ⨤ ⨦ % ∟∠∡ ⊾⟀ ⦜ ⦛ ⦠ √ ∛ ∜ ⍍ ≡ ≢ ⧥ ⩧ ⅀ ◊ ⟠ ⨌⨍⨏ ⨜ ⨛ ◜ ◝ ◞ ◟ ⤸ ⤹ ◆ ◇ ❖ ○ ◍ ● ◐ ◑ ◒ ◓ ◔ ◕ ◖ ◗ ⬡ ⬢ ‰ ⁿ ¹ ² ³ § ∞ ㅅ');
- I.see('Incorrect Input');
- I.fillField('Job Description:', 'h');
- I.see('size must be between 3 and 20
- may not be empty');
- I.fillField('Job Description:', '«¼ ½ ¾ ⅓ ⅔ ⅛ ⅜ ⅝ ≈ > ≥ ≧ ≩ ≫ ≳ ⋝ ÷ ∕ ± ∓ ≂ ⊟ ⊞ ⨁ ⨤ ⨦ % ∟∠∡ ⊾⟀ ⦜ ⦛ ⦠ √ ∛ ∜ ⍍ ≡ ≢ ⧥ ⩧ ⅀ ◊ ⟠ ⨌⨍⨏ ⨜ ⨛ ◜ ◝ ◞ ◟ ⤸ ⤹ ◆ ◇ ❖ ○ ◍ ● ◐ ◑ ◒ ◓ ◔ ◕ ◖ ◗ ⬡ ⬢ ‰ ⁿ ¹ ² ³ § ∞ ㅅ');
- I.see('Incorrect Input');
- I.fillField('Job Description:', 'h');
- I.see('size must be between 3 and 20
- may not be empty');
- I.fillField('Number of People to Hire:', '«¼ ½ ¾ ⅓ ⅔ ⅛ ⅜ ⅝ ≈ > ≥ ≧ ≩ ≫ ≳ ⋝ ÷ ∕ ± ∓ ≂ ⊟ ⊞ ⨁ ⨤ ⨦ % ∟∠∡ ⊾⟀ ⦜ ⦛ ⦠ √ ∛ ∜ ⍍ ≡ ≢ ⧥ ⩧ ⅀ ◊ ⟠ ⨌⨍⨏ ⨜ ⨛ ◜ ◝ ◞ ◟ ⤸ ⤹ ◆ ◇ ❖ ○ ◍ ● ◐ ◑ ◒ ◓ ◔ ◕ ◖ ◗ ⬡ ⬢ ‰ ⁿ ¹ ² ³ § ∞ ㅅ');
- I.see('Incorrect Input');
- I.fillField('Number of People to Hire:', '2111114832111111111111111111111111111');
- I.see('Incorrect Input');
- I.fillField('Number of People to Hire:', '3');
- I.see('3');
- I.fillField('Last Application Date:', '19.03.1979');
- I.see('Incorrect input');
- I.fillField('Last Application Date:', '08.12.2018');
- I.see('08.12.2018');
- I.click('Add Job');
- I.waitForValue('//localhost:8080/jobs', I.grabHTMLFrom('Job'));
- I.fillField('Job Description:', '');
- I.see('Job Description','');
- I.click('Add Job');
- I.see("No data to send");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement