From 935be24b5e828d4e91effdb45267965a740cdc73 Mon Sep 17 00:00:00 2001 From: David Calhoun Date: Tue, 29 Aug 2023 08:12:34 -0400 Subject: [PATCH] test: Social Icons (#54001) * test: Export Social Icons block name Enable e2e tests for the Social Icons block by reference. * refactor: Log local Appium server start status Mitigate confusion regarding the local Appium server status. --- .../__device-tests__/helpers/appium-local-start.js | 12 +++++++++++- .../__device-tests__/pages/editor-page.js | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/react-native-editor/__device-tests__/helpers/appium-local-start.js b/packages/react-native-editor/__device-tests__/helpers/appium-local-start.js index 12d00ed09b92ee..a8e62b6b1f67f0 100644 --- a/packages/react-native-editor/__device-tests__/helpers/appium-local-start.js +++ b/packages/react-native-editor/__device-tests__/helpers/appium-local-start.js @@ -3,4 +3,14 @@ */ const { start } = require( './appium-local.js' ); -start( { flags: '--allow-cors' } ); +start( { flags: '--allow-cors' } ).then( + () => { + // eslint-disable-next-line no-console + console.log( 'INFO: Appium server started successfully' ); + }, + ( error ) => { + // eslint-disable-next-line no-console + console.error( error ); + process.exit( 1 ); + } +); diff --git a/packages/react-native-editor/__device-tests__/pages/editor-page.js b/packages/react-native-editor/__device-tests__/pages/editor-page.js index cf5b7879c88192..8e2bc02d657b9a 100644 --- a/packages/react-native-editor/__device-tests__/pages/editor-page.js +++ b/packages/react-native-editor/__device-tests__/pages/editor-page.js @@ -1024,6 +1024,7 @@ const blockNames = { paragraph: 'Paragraph', search: 'Search', separator: 'Separator', + socialIcons: 'Social Icons', spacer: 'Spacer', verse: 'Verse', shortcode: 'Shortcode',