@@ -222,7 +222,7 @@ describe( 'DecoupledEditorUI', () => {
.then( () => {
const attributes = {};
- for ( const attribute of domElement.attributes ) {
+ for ( const attribute of Array.from( domElement.attributes ) ) {
attributes[ attribute.name ] = attribute.value;
}