Skip to content

Commit

Permalink
dev: first initial support for playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed May 21, 2024
1 parent 510d320 commit a8e7ddd
Show file tree
Hide file tree
Showing 12 changed files with 26,200 additions and 18,144 deletions.
25 changes: 0 additions & 25 deletions .babelrc

This file was deleted.

12 changes: 12 additions & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"core": "WordPress/WordPress",
"plugins": [ "." ],
"env": {
"tests": {
"mappings": {
"wp-content/themes/gutenberg-test-themes/twentytwentyone": "https://downloads.wordpress.org/theme/twentytwentyone.2.1.zip",
"wp-content/themes/gutenberg-test-themes/twentytwentyfour": "https://downloads.wordpress.org/theme/twentytwentyfour.1.0.zip"
}
}
}
}
6 changes: 3 additions & 3 deletions includes/admin/feedzy-rss-feeds-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function enqueue_styles_admin() {
if ( ! wp_script_is( 'react-dom' ) ) {
wp_register_script( 'react-dom', 'https://unpkg.com/react-dom@18/umd/react-dom.production.min.js', array(), $this->version, true );
}
wp_enqueue_script( $this->plugin_name . '_action_popup', FEEDZY_ABSURL . 'js/ActionPopup/action-popup.min.js', array( 'react', 'react-dom', 'wp-editor', 'wp-api', 'lodash' ), $this->version, true );
wp_enqueue_script( $this->plugin_name . '_action_popup', FEEDZY_ABSURL . 'build/js/ActionPopup/action-popup.min.js', array( 'react', 'react-dom', 'wp-editor', 'wp-api', 'lodash' ), $this->version, true );

wp_localize_script(
$this->plugin_name . '_action_popup',
Expand All @@ -207,7 +207,7 @@ public function enqueue_styles_admin() {
$this->register_survey();
}
if ( ! defined( 'TI_CYPRESS_TESTING' ) && ( 'edit' !== $screen->base && 'feedzy_imports' === $screen->post_type && feedzy_show_import_tour() ) ) {
wp_enqueue_script( $this->plugin_name . '_on_boarding', FEEDZY_ABSURL . 'js/Onboarding/import-onboarding.min.js', array( 'react', 'react-dom', 'wp-editor', 'wp-api', 'lodash' ), $this->version, true );
wp_enqueue_script( $this->plugin_name . '_on_boarding', FEEDZY_ABSURL . 'build/js/Onboarding/import-onboarding.min.js', array( 'react', 'react-dom', 'wp-editor', 'wp-api', 'lodash' ), $this->version, true );
}

if ( ! in_array( $screen->base, $upsell_screens, true ) && strpos( $screen->id, 'feedzy' ) === false ) {
Expand All @@ -218,7 +218,7 @@ public function enqueue_styles_admin() {

$this->register_survey();

wp_enqueue_script( $this->plugin_name . '_feedback', FEEDZY_ABSURL . 'js/FeedBack/feedback.min.js', array( 'react', 'react-dom', 'wp-editor', 'wp-api', 'lodash' ), $this->version, true );
wp_enqueue_script( $this->plugin_name . '_feedback', FEEDZY_ABSURL . 'build/js/FeedBack/feedback.min.js', array( 'react', 'react-dom', 'wp-editor', 'wp-api', 'lodash' ), $this->version, true );
wp_enqueue_style( 'wp-block-editor' );

wp_localize_script(
Expand Down
4 changes: 2 additions & 2 deletions includes/gutenberg/feedzy-rss-feeds-gutenberg-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private function __construct() {
*/
public function feedzy_gutenberg_scripts() {
if ( FEEDZY_DISABLE_CACHE_FOR_TESTING ) {
$version = filemtime( FEEDZY_ABSPATH . '/includes/gutenberg/build/block.js' );
$version = filemtime( FEEDZY_ABSPATH . 'build//includes/gutenberg/block.js' );
} else {
$version = $this->version;
}
Expand Down Expand Up @@ -82,7 +82,7 @@ public function feedzy_gutenberg_scripts() {

// Enqueue editor block styles
wp_enqueue_style( 'feedzy-block-css', FEEDZY_ABSURL . 'css/feedzy-rss-feeds.css', '', $version );
wp_enqueue_style( 'feedzy-gutenberg-block-css', FEEDZY_ABSURL . 'includes/gutenberg/build/block.css', '', $version );
wp_enqueue_style( 'feedzy-gutenberg-block-css', FEEDZY_ABSURL . 'build/includes/gutenberg/style-block.css', '', $version );
}

/**
Expand Down
Loading

0 comments on commit a8e7ddd

Please sign in to comment.