File size: 921 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
 * @group gutenberg
 * @group jetpack-wpcom-integration
 */
import {
	BlockFlow,
	StarRatingBlock,
	MapFlow,
	GifFlow,
	envVariables,
	RelatedPostsFlow,
} from '@automattic/calypso-e2e';
import { createBlockTests } from './shared/block-smoke-testing';

const blockFlows: BlockFlow[] = [
	new StarRatingBlock( { rating: 3.5 } ),
	new GifFlow( { query: 'https://giphy.com/embed/MDJ9IbxxvDUQM' } ),
];

// Private sites change behaivor of the Map block.
// @see: https://github.com/Automattic/jetpack/issues/32991
// Related posts block do not show up on private sites, as one would expect.
if ( envVariables.ATOMIC_VARIATION !== 'private' ) {
	blockFlows.push(
		new MapFlow( { address: '1455 Quebec Street, Vancouver', select: '1455 Quebec St' } )
	);
	blockFlows.push(
		new RelatedPostsFlow( {
			headline: 'Related Posts from this user',
		} )
	);
}

createBlockTests( 'Blocks: Other Jetpack Blocks', blockFlows );