Skip to content

Commit a423826

Browse files
committed
Fix e2e interactivity utils
1 parent 769342b commit a423826

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/e2e/specs/interactivity/fixtures/interactivity-utils.ts

+8-4
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,20 @@ export default class InteractivityUtils {
6666
name: string,
6767
{ attributes, alias, innerBlocks }: AddPostWithBlockOptions = {}
6868
) {
69+
const block = attributes
70+
? `${ name } ${ JSON.stringify( attributes ) }`
71+
: name;
72+
73+
if ( ! alias ) {
74+
alias = block;
75+
}
76+
6977
const content = generateBlockMarkup( [
7078
name,
7179
attributes,
7280
innerBlocks,
7381
] );
7482

75-
if ( ! alias ) {
76-
alias = content;
77-
}
78-
7983
const payload = {
8084
content,
8185
status: 'publish' as 'publish',

0 commit comments

Comments
 (0)