diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index aeedbfc..a9ed50f 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -9,10 +9,12 @@ on: - cron: '0 6 * * *' env: - DRUPAL_TESTING_TEST_CODING_STYLES: false - DRUPAL_TESTING_DATABASE_USER: root - DRUPAL_TESTING_DATABASE_PASSWORD: root - DRUPAL_TESTING_DATABASE_ENGINE: mysql + DRUPAL_TESTING_TEST_CODING_STYLES: false + DRUPAL_TESTING_DATABASE_USER: root + DRUPAL_TESTING_DATABASE_PASSWORD: root + DRUPAL_TESTING_DATABASE_ENGINE: mysql + DRUPAL_TESTING_HTTP_PORT: 8888 + DRUPAL_TESTING_PARALLEL_TESTING: true jobs: build: @@ -22,8 +24,8 @@ jobs: strategy: matrix: THEME: ['stark', 'seven', 'thunder_admin', 'claro', 'gin'] - DRUPAL_TESTING_DRUPAL_VERSION: ['~9.4.0'] - PHP: ['8.1'] + DRUPAL_TESTING_DRUPAL_VERSION: ['~9.4.0', '~9.5.0'] + PHP_VERSION: ['8.1'] steps: - uses: actions/checkout@v1 @@ -31,7 +33,7 @@ jobs: - uses: shivammathur/setup-php@v2 with: coverage: none - php-version: ${{ matrix.PHP }} + php-version: ${{ matrix.PHP_VERSION }} extensions: Imagick, gd, pdo_mysql - name: Start MySql service @@ -68,7 +70,15 @@ jobs: env: DRUPAL_TESTING_TEST_DEPRECATION: false - - name: Start webserver and run the tests + - name: Setup Apache + uses: thunder/apache-shiva-php-action@v1 + with: + php-version: ${{ matrix.PHP_VERSION }} + site-directory: /tmp/test/paragraphs_features/install/web + http-port: ${{ env.DRUPAL_TESTING_HTTP_PORT }} + + - name: Run the tests run: test-drupal-project env: THEME: ${{ matrix.THEME }} + DRUPAL_TESTING_SELENIUM_CHROME_VERSION: '105.0' diff --git a/js/plugins/splittext/plugin.js b/js/plugins/splittext/plugin.js index 044f4cc..e0c1a1c 100644 --- a/js/plugins/splittext/plugin.js +++ b/js/plugins/splittext/plugin.js @@ -186,7 +186,7 @@ } // After ajax response correct values should be placed in text editors. - $(document).once('ajax-paragraph').ajaxComplete(onAjaxSplit); + $(document).once('ajax-paragraph').ajaxComplete((...args) => setTimeout(() => onAjaxSplit(...args))); createNewParagraphOverModal(editor); };