From 01dca1b0b8373beca62c986429cfc694964d13a9 Mon Sep 17 00:00:00 2001 From: Jason Bahl Date: Wed, 27 Mar 2024 06:59:17 -0600 Subject: [PATCH] - add composer install step to the workflow --- .github/workflows/graphiql-e2e-tests.yml | 13 ++++++++++++- tests/e2e/specs/graphiql.spec.js | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/graphiql-e2e-tests.yml b/.github/workflows/graphiql-e2e-tests.yml index 45f4afb8e..1f7f75e9c 100644 --- a/.github/workflows/graphiql-e2e-tests.yml +++ b/.github/workflows/graphiql-e2e-tests.yml @@ -30,7 +30,18 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: Install dependencies + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 7.4 + extensions: mbstring, intl + tools: composer + + - name: Install PHP dependencies + run: | + composer install --optimize-autoloader + + - name: Install JavaScript dependencies run: npm ci - name: Build Assets diff --git a/tests/e2e/specs/graphiql.spec.js b/tests/e2e/specs/graphiql.spec.js index 82096445b..627d9e08d 100644 --- a/tests/e2e/specs/graphiql.spec.js +++ b/tests/e2e/specs/graphiql.spec.js @@ -78,7 +78,7 @@ export async function loadGraphiQL( page, queryParams = { query: null, variables // if there's an error, go to the plugins page if ( ! pageTitle.includes( 'GraphiQL' ) ) { - page.goto( wpAdminUrl + '/plugins.php' ) + page.goto( wpAdminUrl + '/plugins.php', { waitUntil: 'networkidle' } ) } await page.waitForLoadState( 'networkidle' );