From 28fbce8bf723438c0c0cf4fc914a7c99073e246a Mon Sep 17 00:00:00 2001 From: Joe Fusco Date: Thu, 6 Jun 2024 15:03:57 -0400 Subject: [PATCH] Remove orphaned test spec --- tests/e2e/specs/environment.spec.js | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 tests/e2e/specs/environment.spec.js diff --git a/tests/e2e/specs/environment.spec.js b/tests/e2e/specs/environment.spec.js deleted file mode 100644 index dfb8e5a..0000000 --- a/tests/e2e/specs/environment.spec.js +++ /dev/null @@ -1,24 +0,0 @@ -import { test, expect } from '@playwright/test'; -import { loginToWordPressAdmin, visitPluginsPage } from '../utils'; - -test.beforeEach( async ( { page } ) => { - await loginToWordPressAdmin( page ); -} ); - -test( 'expect the enqueued wpgraphql-ide script to have the defer attribute', async ( { - page, -} ) => { - await visitPluginsPage( page ); - - // Retrieve the script tags and check for the defer attribute - const hasDeferAttribute = await page.evaluate( () => { - const scripts = Array.from( document.querySelectorAll( 'script' ) ); - const targetScript = scripts.find( ( script ) => - script.src.includes( 'wpgraphql-ide' ) - ); - return targetScript?.hasAttribute( 'defer' ); - } ); - - // Assert that the defer attribute is present - expect( hasDeferAttribute ).toBe( true ); -} );