Skip to content

Commit

Permalink
Update e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DAreRodz committed Jan 17, 2024
1 parent adf8203 commit 144c15c
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/e2e-tests/plugins/interactive-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function () {
gutenberg_register_module(
$name . '-view',
$view_file,
array( '@wordpress/interactivity' ),
array( '@wordpress/interactivity', '@wordpress/interactivity/router' ),
filemtime( $view_file ),
true
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* WordPress dependencies
*/
import { store, navigate, getContext } from '@wordpress/interactivity';
import { store, getContext } from '@wordpress/interactivity';
// eslint-disable-next-line no-restricted-syntax
import { navigate } from '@wordpress/interactivity/router';

store( 'directive-context', {
state: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* WordPress dependencies
*/
import { store, getContext, navigate } from '@wordpress/interactivity';
import { store, getContext } from '@wordpress/interactivity';
// eslint-disable-next-line no-restricted-syntax
import { navigate } from '@wordpress/interactivity/router';

const { state } = store( 'directive-each' );

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* WordPress dependencies
*/
import { store, navigate } from '@wordpress/interactivity';
import { store } from '@wordpress/interactivity';
// eslint-disable-next-line no-restricted-syntax
import { navigate } from '@wordpress/interactivity/router';

const html = `
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
import {
store,
directive,
navigate,
useInit,
useWatch,
cloneElement,
getElement,
} from '@wordpress/interactivity';
// eslint-disable-next-line no-restricted-syntax
import { navigate } from '@wordpress/interactivity/router';

// Custom directive to show hide the content elements in which it is placed.
directive(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* WordPress dependencies
*/
import { store, navigate } from '@wordpress/interactivity';
import { store } from '@wordpress/interactivity';
// eslint-disable-next-line no-restricted-syntax
import { navigate } from '@wordpress/interactivity/router';

const { state } = store( 'router', {
state: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* WordPress dependencies
*/
import { store, navigate, getContext } from '@wordpress/interactivity';
import { store, getContext } from '@wordpress/interactivity';
// eslint-disable-next-line no-restricted-syntax
import { navigate } from '@wordpress/interactivity/router';

const { state } = store( 'router-regions', {
state: {
Expand Down

0 comments on commit 144c15c

Please sign in to comment.