Commit Graph

18 Commits

Author SHA1 Message Date
4228bcc330 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.
2026-03-18 22:57:17 +00:00
7bac0dc63d t096: fix unconditional plugin activation assertion in cypress test (#101)
* fix: make plugin activation assertion unconditional in cypress test

Addresses Gemini Code Assist review feedback on PR #84 (issue #96).
The 'Plugin is activated' test was using an if/else guard that caused
it to silently pass when the plugin row was missing. Replaced with a
direct unconditional cy.get() + cy.within() assertion so the test
fails clearly if the plugin is not found.

Optional plugin checks (Plugin Toggle, Kadence Blocks) retain their
conditional logic as those are genuinely optional in the test env.

Closes #96

* fix: reduce duplicated Cypress assertion for SonarCloud

* fix: lower Sonar new-code duplication in playground test
2026-03-18 21:38:00 +00:00
79f78882a6 fix: remove redundant existence check, use cy.within() for scoped selector (#84)
Addresses Gemini review feedback on PR #50 line 23: the .should('exist')
check was redundant since the if-condition already confirms element presence.
Refactored to use cy.within() to scope the .deactivate a check, eliminating
selector repetition and improving readability.

Closes #79
2026-03-17 20:29:00 +00:00
595855ce10 fix: add specific plugin functionality tests to single-site.cy.js (issue #33) (#61)
Address CodeRabbit PR #15 review feedback: replace generic settings page
stub with tests that verify actual plugin functionality — plugin row
visibility, update source selector link presence, modal open/close
behaviour, and source option rendering.
2026-03-16 23:08:29 +00:00
52632ec322 fix(tests): add plugin activation verification by slug in Cypress test (#50)
Addresses CodeRabbit review feedback on PR #15 (issue #32): the 'Plugin is
activated' test now also checks that the starter template plugin itself
(wp-plugin-starter-template-for-ai-coding) exists and has a .deactivate link,
confirming it is active rather than just present in the plugins list.
2026-03-16 21:45:23 +00:00
e6dcda3f6e Fix GitHub Actions failures: code quality, tests, and linting
- Fix shellcheck warnings in bin/install-wp-tests.sh (quote variables, fix command -v usage)
- Remove trailing spaces in .github/workflows/phpunit.yml
- Add phpmd.xml to exclude camelCase checks for WordPress naming conventions
- Update composer.json to use phpmd.xml configuration
- Remove trailing commas in .eslintrc.js for Codacy compliance
- Add .markdownlint.json to configure markdown linting rules
- Improve Cypress test reliability with increased timeouts
- Update loginAsAdmin command with better error handling
- Make plugin activation checks more robust in Cypress tests

🤖 Generated with [Qoder][https://qoder.com]
2025-11-16 03:51:12 +00:00
b1966067ea Fix failing tests: Update install-wp-tests.sh, Cypress commands, and GitHub Actions workflows 2025-04-23 04:26:06 +01:00
0c4e91fcec Fix code quality issues and GitHub Actions workflows 2025-04-22 22:30:31 +01:00
f3d6bd2434 Fix code quality issues: update Cypress tests to use custom commands, fix workflow files, update documentation 2025-04-22 22:10:55 +01:00
771cc96da8 Fix WordPress Playground tests: improve login handling, implement CodeRabbit suggestions 2025-04-22 21:45:54 +01:00
ef60ce0c9d Fix WordPress Playground tests: update port for multisite, improve test reliability 2025-04-22 16:57:56 +01:00
fa92ca58df Fix remaining issues: update Cypress tests to work directly with WordPress, fix Markdown formatting 2025-04-22 16:46:36 +01:00
8fa2c19fe4 Fix WordPress Playground tests: update Cypress test URL, improve blueprints, enhance documentation 2025-04-22 16:37:01 +01:00
f48276cc58 Fix code quality issues: add ESLint config to Cypress files, update documentation, improve HTML accessibility 2025-04-22 15:11:56 +01:00
fb0949df0a Add Cypress tests for WordPress Playground 2025-04-21 22:42:13 +01:00
d6b2349af8 Enhance testing framework with WordPress Playground integration 2025-04-21 22:30:10 +01:00
051bc763f8 Fix code quality issues and improve test framework 2025-04-21 21:23:23 +01:00
8ed22642e2 Add comprehensive testing framework for both single site and multisite WordPress environments 2025-04-21 17:32:01 +01:00