diff --git a/cypress/fixtures/images/grower.png b/cypress/fixtures/images/grower.png new file mode 100644 index 000000000..337d19aa5 Binary files /dev/null and b/cypress/fixtures/images/grower.png differ diff --git a/cypress/tests/integration/growers/[growerid].cy.js b/cypress/tests/integration/growers/[growerid].cy.js index 8e3d3a70b..82c6eb29d 100644 --- a/cypress/tests/integration/growers/[growerid].cy.js +++ b/cypress/tests/integration/growers/[growerid].cy.js @@ -8,7 +8,12 @@ beforeEach(() => { describe('Grower Page', () => { it('renders with grower data', () => { const path = `/growers/${grower.id}`; - prepareNocks({ grower }); + const imageFixturePath = `images/grower.png`; + cy.fixture(imageFixturePath).then((image) => { + const blob = Cypress.Blob.base64StringToBlob(image, 'image/png'); + const image_url = Cypress.Blob.createObjectURL(blob); + prepareNocks({ grower: { ...grower, image_url } }); + }); cy.visit(path, { failOnStatusCode: false,