Skip to content

Commit

Permalink
Merge pull request #71 from newfold-labs/PRESS6-141-component-structu…
Browse files Browse the repository at this point in the history
…re-refactoring

Refactored react components and added cypress tests
  • Loading branch information
ajayadav09 authored Feb 14, 2025
2 parents 1e3c7cd + a9cd438 commit b66805d
Show file tree
Hide file tree
Showing 37 changed files with 10,364 additions and 8,926 deletions.
1 change: 0 additions & 1 deletion .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions build/index-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '879a76c20c2140765e3a');
<?php return array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => 'e722652f9cd805b802e7');
2 changes: 1 addition & 1 deletion build/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const { defineConfig } = require('cypress')

module.exports = defineConfig({
env: {
wpUsername: 'admin',
wpPassword: 'admin',
},
fixturesFolder: 'tests/cypress/fixtures',
screenshotsFolder: 'tests/cypress/screenshots',
video: false,
videosFolder: 'tests/cypress/videos',
videoUploadOnPasses: false,
chromeWebSecurity: false,
e2e: {
setupNodeEvents(on, config) {
return require('./tests/cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost:10003',
specPattern: 'tests/cypress/integration/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'tests/cypress/support/index.js',
},
})
Loading

0 comments on commit b66805d

Please sign in to comment.