message: Fetched christmas product directly from database for e2e spec
diff: const config = require('config')
  const christmasProduct = config.get('products').filter(product => product.useForChristmasSpecialChallenge)[0]
  +const models = require('../../models/index')
  describe('/#/search', () => {
  let searchQuery, searchButton
  @@ -47,33 +48,9 @@ describe('/rest/product/search', () => {
  it('should be able to place Christmas product into shopping card by id', () => { // FIXME Fix XHTTP request
  browser.waitForAngularEnabled(false)
  - // browser.executeScript('var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.status == 201) { console.log("Success"); }}; xhttp.open("POST","http://localhost:3000/api/BasketItems/", true); xhttp.setRequestHeader("Content-type","application/json"); xhttp.setRequestHeader("Authorization",`Bearer ${localStorage.getItem("token")}`); xhttp.send(JSON.stringify({"BasketId": `${sessionStorage.getItem("bid")}`, "ProductId": ' + christmasProduct.id + ', "quantity": 1}));') // eslint-disable-line
  - browser.executeScript(() => {
  - var xhttp = new XMLHttpRequest()
  - xhttp.onreadystatechange = function () {
  - if (this.status === 200) {
  - const data = JSON.parse(this.responseText).data
  - const product = data.filter(product => product.name === christmasProduct.name && product.description === christmasProduct.description)
  - addProductById(product.id)
  - }
  - }
  -
  - xhttp.open('GET', 'http://localhost:3000/rest/product/search?q=', true)
  - xhttp.setRequestHeader('Content-type', 'text/plain')
  - xhttp.send()
  -
  - function addProductById (id) {
  - var xhttp = new XMLHttpRequest()
  - xhttp.onreadystatechange = function () {
  - if (this.status === 201) {
  - console.log('Success')
  - }
  - }
  - xhttp.open('POST', 'http://localhost:3000/api/BasketItems/', true)
  - xhttp.setRequestHeader('Content-type', 'application/json')
  - xhttp.setRequestHeader('Authorization', `Bearer ${localStorage.getItem('token')}`)
  - xhttp.send(JSON.stringify({'BasketId': `${sessionStorage.getItem('bid')}`, 'ProductId': id, 'quantity': 1}))
  - }
  + models.sequelize.query('SELECT * FROM PRODUCTS').then(([products]) => {
  + var christmasProductId = products.filter(product => product.name === christmasProduct.name)[0].id
  + browser.executeScript('var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function () { if (this.status === 201) { console.log("Success") } } ; xhttp.open("POST", "http://localhost:3000/api/BasketItems/", true); xhttp.setRequestHeader("Content-type", "application/json"); xhttp.setRequestHeader("Authorization", `Bearer ${localStorage.getItem("token")}`); xhttp.send(JSON.stringify({"BasketId": `${sessionStorage.getItem("bid")}`, "ProductId":' + christmasProductId + ', "quantity": 1}))') // eslint-disable-line
  })
  browser.driver.sleep(1000)
  browser.waitForAngularEnabled(true)
  