diff --git a/lib/static/components/modals/screenshot-accepter/body.jsx b/lib/static/components/modals/screenshot-accepter/body.jsx
index ec574924c..e38ea5f74 100644
--- a/lib/static/components/modals/screenshot-accepter/body.jsx
+++ b/lib/static/components/modals/screenshot-accepter/body.jsx
@@ -27,17 +27,16 @@ class ScreenshotAccepterBody extends Component {
{
isNoRefImageError(image.error)
- ? this._renderImageBox('No reference image', image.actualImg)
+ ? this._renderImageBox(image.actualImg)
:
}
);
}
- _renderImageBox(label, image) {
+ _renderImageBox(image) {
return (
- {label &&
{titleText}
}
+ {label && !isScreenshotAccepterOpened &&
{titleText}
}
', () => {
});
describe('no reference image error', () => {
- it('should render screenshot with title', () => {
+ it('should render screenshot', () => {
const image = mkImage({
id: 'img',
parentId: 'res',
@@ -105,12 +105,8 @@ describe('
', () => {
const tree = mkStateTree({browsersById, resultsById});
isNoRefImageError.withArgs(image.error).returns(true);
- const component = mkBodyComponent({image}, {tree});
+ mkBodyComponent({image}, {tree});
- assert.equal(
- component.find('.image-box__title').text(),
- 'No reference image'
- );
assert.calledOnceWith(ResizedScreenshot, {image: image.actualImg});
});
});