test: BDD / acceptance tests

Implement acceptance testing using codeceptjs and puppeteer.
This commit is contained in:
Daniel Ruf
2019-05-02 11:08:41 +02:00
parent 9d7be476ad
commit d468ca7c5f
6 changed files with 57 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
Feature('SearchResult');
Scenario('check if we get the "no results found" text', (I) => {
I.amOnPage('http://localhost:8080');
I.seeElement('header .react-autosuggest__input input');
I.fillField('header .react-autosuggest__input input', 'test');
I.waitForElement('header .react-autosuggest__suggestions-container');
I.wait(1);
I.see('No results found.', 'header .react-autosuggest__suggestions-container');
});