fix: simplify responsive breakpoint comment in admin-styles.css (issue #93) (#105)

* fix: remove redundant Responsive Styles comment in admin-styles.css (issue #93)

Removes the generic '/* Responsive Styles */' comment that was redundant
alongside the specific '/* 782px is the WordPress mobile admin breakpoint. */'
comment, per Gemini Code Assist review feedback on PR #87.

Closes #93

* fix: add missing trailing commas to fix comma-dangle lint errors

Fixes ESLint comma-dangle errors in:
- cypress.config.js (lines 15-16): missing trailing commas on
  chromeWebSecurity property and closing e2e object brace
- cypress/e2e/playground-single-site.cy.js (line 23): missing trailing
  comma on expect() message argument

Also updates eslint-plugin-cypress from ^2.15.1 to ^6.2.0 to resolve
peer dependency conflict that prevented local lint verification.
This commit is contained in:
2026-03-18 22:57:17 +00:00
committed by GitHub
parent 7bac0dc63d
commit 4228bcc330
5 changed files with 24 additions and 13 deletions

View File

@@ -123,8 +123,6 @@
text-align: right;
}
/* Responsive Styles */
/* 782px is the WordPress mobile admin breakpoint. */
@media screen and (max-width: 782px) {
.wpst-form-table th {

View File

@@ -12,6 +12,6 @@ module.exports = defineConfig({
},
// Add configuration for WordPress Playground
experimentalWebKitSupport: true,
chromeWebSecurity: false
}
chromeWebSecurity: false,
},
});

View File

@@ -20,7 +20,7 @@ describe('WordPress Playground Single Site Tests', () => {
cy.get('body', { timeout: 15000 }).then(($body) => {
expect(
$body.find('tr[data-slug="wp-plugin-starter-template-for-ai-coding"] .deactivate a').length,
'Starter template plugin should be present and active'
'Starter template plugin should be present and active',
).to.be.greaterThan(0);
if ($body.text().includes('Plugin Toggle')) {

25
package-lock.json generated
View File

@@ -15,7 +15,7 @@
"@wp-playground/client": "^3.0.22",
"cypress": "^13.17.0",
"eslint": "^8.57.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-cypress": "^6.2.0",
"stylelint": "^16.0.0",
"stylelint-config-standard": "^36.0.0"
}
@@ -3388,16 +3388,29 @@
}
},
"node_modules/eslint-plugin-cypress": {
"version": "2.15.2",
"resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-2.15.2.tgz",
"integrity": "sha512-CtcFEQTDKyftpI22FVGpx8bkpKyYXBlNge6zSo0pl5/qJvBAnzaD76Vu2AsP16d6mTj478Ldn2mhgrWV+Xr0vQ==",
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-6.2.0.tgz",
"integrity": "sha512-G/8XT9Si0GaqGRVM0sgnRACCI9mbzsC4CisvaaiuJlQoCseKz6C51kq5fcC/yKmwO4dTsWCdhbgaiQtZFGSONg==",
"dev": true,
"license": "MIT",
"dependencies": {
"globals": "^13.20.0"
"globals": "^17.3.0"
},
"peerDependencies": {
"eslint": ">= 3.2.1"
"eslint": ">=9"
}
},
"node_modules/eslint-plugin-cypress/node_modules/globals": {
"version": "17.4.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-17.4.0.tgz",
"integrity": "sha512-hjrNztw/VajQwOLsMNT1cbJiH2muO3OROCHnbehc8eY5JyD2gqz4AcMHPqgaOR59DjgUjYAYLeH699g/eWi2jw==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/eslint-scope": {

View File

@@ -61,11 +61,11 @@
"devDependencies": {
"@wordpress/env": "^8.12.0",
"@wp-playground/blueprints": "^3.0.22",
"@wp-playground/client": "^3.0.22",
"@wp-playground/cli": "^3.0.22",
"@wp-playground/client": "^3.0.22",
"cypress": "^13.17.0",
"eslint": "^8.57.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-cypress": "^6.2.0",
"stylelint": "^16.0.0",
"stylelint-config-standard": "^36.0.0"
}