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' );