$page->
pressButton('Save'
);
$assert_session->
responseContains("Select a responsive image style."
);
// Create responsive image styles.
$responsive_image_style = ResponsiveImageStyle::
create([ 'id' => 'style_one',
'label' => 'Style One',
'breakpoint_group' => 'responsive_image_test_module',
'fallback_image_style' => 'thumbnail',
]);
$responsive_image_style ->
addImageStyleMapping('responsive_image_test_module.mobile', '1x',
[ 'image_mapping_type' => 'image_style',
'image_mapping' => 'thumbnail',
]) ->
addImageStyleMapping('responsive_image_test_module.narrow', '1x',
[ 'image_mapping_type' => 'image_style',
'image_mapping' => 'medium',
]) // Test the normal output of mapping to an image style.
->
addImageStyleMapping('responsive_image_test_module.wide', '1x',
[ 'image_mapping_type' => 'image_style',
'image_mapping' => 'large',
])