Merge pull request #5701 from Matt-Yorkley/noimage

Noimage
This commit is contained in:
Luis Ramos
2020-07-02 20:17:04 +01:00
committed by GitHub
18 changed files with 17 additions and 23 deletions

View File

@@ -770,7 +770,7 @@ feature '
expect(page).to have_selector "td.image"
# Shows default image when no image set
expect(page).to have_css "img[src='/assets/noimage/mini.png']"
expect(page).to have_css "img[src='/noimage/mini.png']"
@old_thumb_src = page.find("a.image-modal img")['src']
# Click image

View File

@@ -107,7 +107,7 @@ describe 'Products service', ->
$httpBackend.expectGET(endpoint).respond([product])
$httpBackend.flush()
expect(Products.products[0].primaryImage).toBeUndefined()
expect(Products.products[0].primaryImageOrMissing).toEqual "/assets/noimage/small.png"
expect(Products.products[0].primaryImageOrMissing).toEqual "/noimage/small.png"
it "sets largeImage", ->
$httpBackend.expectGET(endpoint).respond([productWithImage])