Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
1bdfcf6
Update nvmrc to use the latest nodejs version.
Apr 23, 2025
f1b5ebb
Disable the storybook tests action and removed corresponding deps.
Apr 23, 2025
ff4e2eb
Update nvmrc to use the latest nodejs version.
Apr 23, 2025
44a8af8
Disable the storybook tests action and removed corresponding deps.
Apr 23, 2025
63d25fb
Disable storybook tests file.
Apr 23, 2025
480a7d7
Remove npm 7 installation.
Apr 23, 2025
5daeee2
Split js tests, js lint and css lint tasks into 3 jobs.
Apr 23, 2025
292e058
Merge branch 'enhancement/10091-storybook-dependencies-latest-nodejs'…
Apr 23, 2025
08811e7
Update nvmrc to use the latest nodejs version.
Apr 23, 2025
bebf553
Disable the storybook tests action and removed corresponding deps.
Apr 23, 2025
0e70f74
Disable storybook tests file.
Apr 23, 2025
cd51b5b
Remove npm 7 installation.
Apr 23, 2025
281c76f
Split js tests, js lint and css lint tasks into 3 jobs.
Apr 23, 2025
1fb46ae
Merge branch 'enhancement/10091-storybook-dependencies-latest-nodejs'…
Apr 25, 2025
1ef3b15
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
Apr 25, 2025
445342e
Fix the node.js version checker issue.
Apr 25, 2025
5b68035
Update npm deps installation in github actions to use proper workspaces.
Apr 25, 2025
0aa7fae
Fix eslint issues.
Apr 28, 2025
3212b1c
Remove reference to the assets package from tests/js.
Apr 28, 2025
e8242d1
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
Apr 28, 2025
7166cb2
Update sass version to use 1.30 exactly.
Apr 29, 2025
ca76305
Upgrade webpack to the 5th version.
Apr 29, 2025
a6c1695
Upgrade storybook.
May 1, 2025
bf1bea4
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
May 2, 2025
7ad11e3
Fix storybook issues.
May 2, 2025
2fc8109
Add fetch-mock to the storybook workspace.
May 2, 2025
fa9950a
Fix github action issues.
May 2, 2025
9a389ce
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
May 5, 2025
97ba76d
Lift babel-loader to the main package.json file.
May 5, 2025
9d70a81
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
May 8, 2025
ce6c91c
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
May 13, 2025
53f00c1
Fix sass version issue.
May 13, 2025
982dd19
Fix assets and storybook builds.
May 14, 2025
29d096f
Fix jest tests.
May 16, 2025
9f849be
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
May 16, 2025
2a18fdc
Remove testing env configuration.
May 19, 2025
d71bfe5
Rollback @wordpress/babel-preset-default for Jest compat.
aaemnnosttv May 19, 2025
ee9bc42
Rollback all references of @wordpress/babel-preset-default.
aaemnnosttv May 19, 2025
8954409
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
May 21, 2025
a1bad1a
Fix peer dependencies.
techanvil May 21, 2025
9427ebc
Fix tests.
techanvil May 21, 2025
6ca196e
Fix more tests.
techanvil May 21, 2025
1e1b11c
Merge branch 'develop' into enhancement/10091-storybook-dependencies-…
techanvil May 21, 2025
a7fe051
Fix test build.
techanvil May 21, 2025
6200708
Fix E2E Jest config.
techanvil May 21, 2025
128cb99
Upgrade @wordpress/babel-preset-default again.
aaemnnosttv May 21, 2025
7fd55cd
Merge branch 'develop' into enhancement/10091-storybook-dependencies-…
aaemnnosttv May 21, 2025
5e9bf65
Remove nested Jest hook.
aaemnnosttv May 21, 2025
5878f6d
Configure fetchMock to avoid errors.
aaemnnosttv May 21, 2025
ba7e033
Revert "Fix tests."
techanvil May 21, 2025
dd5e2f3
Revert "Fix more tests."
techanvil May 21, 2025
04b2b29
Fix restoration of real timers in the top-level `afterEach()`.
techanvil May 21, 2025
98562ae
Merge branch 'enhancement/10091-storybook-dependencies-latest-nodejs'…
Jun 2, 2025
635a018
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
Jun 3, 2025
543f8ae
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
Jun 5, 2025
1270083
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
Jun 23, 2025
7e227d1
Improve comment.
techanvil May 22, 2025
60230b1
Fix failing `AudienceTilesError` test.
techanvil Jun 25, 2025
35aaf2e
Fix tests failing due to new snapshot output format.
techanvil Jun 25, 2025
bbb3e33
Merge branch 'develop' into enhancement/10091-storybook-dependencies-…
tofumatt Jul 3, 2025
3a49e74
Merge branch 'develop' into enhancement/10091-storybook-dependencies-…
techanvil Jul 17, 2025
9d552eb
Potential workaround for ESLint tests.
techanvil Jul 17, 2025
b2d7b78
Combine main and eslint-plugin Jest configurations.
techanvil Jul 17, 2025
aeda05d
Restore `setTimeout()` after mocking it.
techanvil Jul 18, 2025
8eb5db5
Remove unneeded `setTimeout()` mock.
techanvil Jul 18, 2025
bc4822c
Fix `CoreSiteBannerNotifications` test.
techanvil Jul 18, 2025
d5dd2f3
Fix `useMonitorInternetConnection()` tests.
techanvil Jul 18, 2025
c1c3a8b
Update Urdu currency format expectation for Node.js 22 ICU changes.
techanvil Jul 18, 2025
7fb4769
Fix faker timer detection in `createWaitForRegistry()`.
techanvil Jul 18, 2025
685aabb
Fix test for `SetupUsingProxyWithSignIn`.
techanvil Jul 18, 2025
7598ffc
Fix test for `Header`.
techanvil Jul 18, 2025
636f54b
Fix test for `ReportError`.
techanvil Jul 18, 2025
ba11c08
Fix tests for `WebContainerSelect`.
techanvil Jul 18, 2025
fd0aa61
Fix test for `AdBlockingRecoverySetupCTAWidget`.
techanvil Jul 18, 2025
e6fef31
Fix tests for `WooCommerceRedirectModal`.
techanvil Jul 18, 2025
cea9ec6
Update `SurveyQuestion` snapshots for updated `closeSmall` icon from …
techanvil Jul 18, 2025
4f2a02b
Update `CurrentSurvey` snapshots for updated `closeSmall` icon from `…
techanvil Jul 18, 2025
fab6980
Fix Jest timer issues in tests for `PublicationOnboardingStateNotice`…
techanvil Jul 18, 2025
96d1be6
Merge branch 'develop' into enhancement/10091-storybook-dependencies-…
techanvil Jul 18, 2025
8d66610
Run an HTTP server in the Backstop Docker container to fix Storybook.
techanvil Jul 18, 2025
4a147ce
Force Backstop Docker build to test VRT in CI.
techanvil Jul 18, 2025
e8ccc02
Add a comment to explain the separate Jest configuration for `eslint-…
techanvil Jul 19, 2025
7a19f6d
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
eugene-manuilov Aug 13, 2025
544fc21
Update the package-lock.json file.
eugene-manuilov Aug 13, 2025
9d05462
Remove a log file.
eugene-manuilov Aug 13, 2025
68f6f0d
Update data mocking files to import util functions from correct files.
eugene-manuilov Aug 14, 2025
3e7a4c1
Update the docker-compose environment for e2e tests to use specific t…
eugene-manuilov Aug 14, 2025
416e11a
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
Aug 15, 2025
d67add7
Fix incorrect import.
Aug 15, 2025
04925b8
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
Aug 16, 2025
1b5087b
Update the compressed-siz-action to use the correct installation script.
Aug 16, 2025
4bf0b5d
Fix sass version issue.
Aug 17, 2025
451ccdc
Update the e2e workflow to install all npm dependencies.
Aug 17, 2025
b9f60ae
Disable animation completely when we run vrt tests.
Aug 17, 2025
fe905a8
Update animation classes in the vrt mode to have some components use …
Aug 17, 2025
20e13c9
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
benbowler Sep 4, 2025
278e3f0
Fix PHP version number.
benbowler Sep 4, 2025
816c724
Fix PHP versions.
benbowler Sep 4, 2025
7fd7745
Fix AMPContainerSelect test.
benbowler Sep 4, 2025
0b272fd
Fix animation pausing in VRTs.
benbowler Sep 4, 2025
ae0e581
Update my story sort work to sort within storybook v8.
benbowler Sep 4, 2025
5962eec
Add note RE Storybook test runner upgrade.
benbowler Sep 4, 2025
8881303
Update JoyrideTooltip due to instability.
benbowler Sep 4, 2025
e46e352
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
benbowler Sep 8, 2025
6c9a099
Continue fixes to Joyride story/VRT.
benbowler Sep 8, 2025
c710fc3
Experiment with rest plugin activation for E2E instability and disabl…
benbowler Sep 8, 2025
4cd34d8
Fix __experimentalActivatePlugin reference.
benbowler Sep 8, 2025
4e1ec7c
Move skip to top level for unstable plugin activation notice tests.
benbowler Sep 8, 2025
42a46f7
Fix outdated Chromium version.
benbowler Sep 8, 2025
977a046
Increase timeout for activatePlugin bug temorarily.
benbowler Sep 8, 2025
58b9a4e
Revert ineffective e2e-tests-site-verification-api-mock activation ex…
benbowler Sep 8, 2025
e5a23da
Skip tests failing due to e2e-tests-site-verification-api-mock plugin…
benbowler Sep 8, 2025
72dc933
Update images based on chromium upgrade.
benbowler Sep 8, 2025
ce6b0df
Try greatly increasing timeout for E2E to account for activatePlugin …
benbowler Sep 8, 2025
5efde98
Update @wordpress/e2e-test-utils.
benbowler Sep 9, 2025
7af2775
Merge remote-tracking branch 'origin/develop' into enhancement/10091-…
benbowler Sep 9, 2025
cccb75a
Bring activatePlugin into the plugin to debug.
benbowler Sep 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 2 additions & 7 deletions .github/workflows/browserslist-db-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,8 @@ jobs:
- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

# npm@7 is the minimum version required for c2corg/browserslist-update-action@v2.
# TODO: Remove this step once our node base version comes with npm@7 or greater.
- name: Install npm globally
run: npm run install-global-npm
node-version-file: .nvmrc
cache: npm

- name: Update Browserslist database and create PR if applicable
uses: c2corg/browserslist-update-action@v2
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/compressed-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,12 @@ jobs:
- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

# nvm@7 is the minimum version required for npm workspace support.
# This is needed to prevent js lint failures due to module resolution to the workspace packages.
# This can be removed once our node base version comes with nvm@7 or greater.
- name: Install npm Globally
run: npm run install-global-npm
node-version-file: .nvmrc
cache: npm

- uses: preactjs/compressed-size-action@v2
with:
install-script: npm i --workspace=assets --include-workspace-root
repo-token: '${{ secrets.GITHUB_TOKEN }}'
pattern: './dist/assets/**/*.{css,js}'
# The sub-match below will be replaced by asterisks.
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,11 @@ jobs:
- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

# nvm@7 is the minimum version required for npm workspace support.
# This is needed to prevent js lint failures due to module resolution to the workspace packages.
# This can be removed once our node base version comes with nvm@7 or greater.
- name: Install npm Globally
run: npm run install-global-npm
node-version-file: .nvmrc
cache: npm

- name: npm install
run: npm ci
run: npm i --workspaces --include-workspace-root

- name: Build
run: npm run build:test
Expand Down
46 changes: 30 additions & 16 deletions .github/workflows/js-css-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,46 @@ concurrency:
cancel-in-progress: true

jobs:
js-css-lint-test:
name: JS + CSS
css-lint:
name: CSS Lint
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

# nvm@7 is the minimum version required for npm workspace support.
# This is needed to prevent js lint failures due to module resolution to the workspace packages.
# This can be removed once our node base version comes with nvm@7 or greater.
- name: Install npm Globally
run: npm run install-global-npm

node-version-file: .nvmrc
cache: npm
- name: npm install
run: npm ci
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
run: npm i -w assets --include-workspace-root
- name: CSS Lint
run: npm run lint:css
js-lint:
name: JS Lint
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: npm install
run: npm i -w assets -w storybook -w tests/js -w tests/e2e --include-workspace-root
- name: JS Lint
run: npm run lint:js
js-test:
name: JS Tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: npm install
run: npm i -w assets -w storybook -w tests/js --include-workspace-root
- name: Jest Tests
id: test-js
run: npm run test:js
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,8 @@ jobs:
with:
node-version-file: .nvmrc
cache: npm
# npm@7 is the minimum version required for this repository.
# TODO: Remove this step once our node base version comes with npm@7 or greater.
- name: Install npm globally
run: npm run install-global-npm
- name: npm install
run: npm ci
run: npm i -w assets -w storybook -w tests/js --include-workspace-root
- name: Build Storybook
run: npm run build:storybook
- name: Upload artifacts
Expand Down Expand Up @@ -164,11 +160,7 @@ jobs:
with:
node-version-file: .nvmrc
cache: npm
# npm@7 is the minimum version required for this repository.
# TODO: Remove this step once our node base version comes with npm@7 or greater.
- name: Install npm globally
run: npm run install-global-npm
- name: npm install
run: npm ci
- name: Test Storybook
run: npm run test:storybook
run: npm i -w assets -w storybook -w tests/js --include-workspace-root
# - name: Test Storybook
# run: npm run test:storybook
15 changes: 3 additions & 12 deletions .github/workflows/visual-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,16 @@ jobs:
- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

# nvm@7 is the minimum version required for npm workspace support.
# This is needed to prevent js lint failures due to module resolution to the workspace packages.
# This can be removed once our node base version comes with nvm@7 or greater.
- name: Install npm Globally
run: npm run install-global-npm

node-version-file: .nvmrc
cache: npm
- name: npm install
run: npm ci

run: npm i -w assets -w tests/backstop -w storybook -w tests/js --include-workspace-root
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: google-site-kit-bot
password: ${{ secrets.GH_BOT_TOKEN }}

- name: Run Backstopjs
run: npm run test:visualtest
- name: Upload artifacts
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/zips.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,10 @@ jobs:
- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
# nvm@7 is the minimum version required for npm workspace support.
# This is needed to prevent js lint failures due to module resolution to the workspace packages.
# This can be removed once our node base version comes with nvm@7 or greater.
- name: Install npm Globally
run: npm run install-global-npm
node-version-file: .nvmrc
cache: npm
- name: npm install
run: |
npm ci
run: npm i --include-workspace-root -w assets
- name: Create destination directory and update file permissions
run: |
mkdir -p "${{ github.ref }}"
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
22
5 changes: 4 additions & 1 deletion assets/js/components/Header.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
provideModules,
provideUserAuthentication,
provideUserInfo,
waitForDefaultTimeouts,
} from '../../../tests/js/test-utils';
import { VIEW_CONTEXT_MAIN_DASHBOARD } from '@/js/googlesitekit/constants';
import { CORE_SITE } from '@/js/googlesitekit/datastore/site/constants';
Expand All @@ -46,11 +47,13 @@ describe( 'Header', () => {
registry.dispatch( MODULES_ANALYTICS_4 ).receiveGetSettings( [] );
} );

it( 'renders', () => {
it( 'renders', async () => {
render( <Header />, {
registry,
viewContext: VIEW_CONTEXT_MAIN_DASHBOARD,
} );

await act( waitForDefaultTimeouts );
} );

it( 'can render a subheader', async () => {
Expand Down
12 changes: 6 additions & 6 deletions assets/js/components/JoyrideTooltip.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ DefaultTooltip.args = {
target: '.target',
};
DefaultTooltip.scenario = {
delay: 300,
delay: 200, // Slight delays are required to ensure the tooltip is fully rendered even with animations disabled.
};

export const PlacementTooltip = Template.bind( {} );
PlacementTooltip.storyName = 'Tooltip with Custom Placement';
PlacementTooltip.args = {
title: 'Tooltip with Top Placement',
content: 'This tooltip is positioned at the top of the target element.',
title: 'Tooltip with Bottom Placement',
content: 'This tooltip is positioned at the bottom of the target element.',
dismissLabel: 'Got it',
target: '.target',
placement: 'top',
placement: 'bottom',
};
PlacementTooltip.scenario = {
delay: 300,
delay: 200,
};

export const MobileModalTooltip = Template.bind( {} );
Expand All @@ -65,7 +65,7 @@ MobileModalTooltip.args = {
disableOverlay: false,
};
MobileModalTooltip.scenario = {
delay: 300,
delay: 200,
};

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* Internal dependencies
*/
import { replaceValuesInAnalytics4ReportWithZeroData } from '../../../../tests/js/utils/zeroReports';
import { replaceValuesInAnalytics4ReportWithZeroData } from '@/js/util/zero-reports';
import {
act,
createTestRegistry,
Expand Down
7 changes: 5 additions & 2 deletions assets/js/components/ReportError.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ import {
provideModuleRegistrations,
provideModules,
provideUserInfo,
waitForDefaultTimeouts,
} from '../../../tests/js/utils';
import {
ERROR_CODE_MISSING_REQUIRED_SCOPE,
ERROR_REASON_INSUFFICIENT_PERMISSIONS,
} from '@/js/util/errors';
import { fireEvent, render } from '../../../tests/js/test-utils';
import { act, fireEvent, render } from '../../../tests/js/test-utils';
import ReportError from './ReportError';
import { MODULES_ANALYTICS_4 } from '@/js/modules/analytics-4/datastore/constants';
import { MODULE_SLUG_ANALYTICS_4 } from '@/js/modules/analytics-4/constants';
Expand Down Expand Up @@ -94,7 +95,7 @@ describe( 'ReportError', () => {
invalidateResolutionSpy.mockReset();
} );

it( 'renders the error message', () => {
it( 'renders the error message', async () => {
const { container } = render(
<ReportError
moduleSlug={ moduleName }
Expand All @@ -112,6 +113,8 @@ describe( 'ReportError', () => {
expect( container.querySelector( 'p' ).textContent ).toEqual(
'Test error message'
);

await act( waitForDefaultTimeouts );
} );

it( 'renders the error message without HTML tags', async () => {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/adminbar/AdminBarApp.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
setupSearchConsoleZeroData,
setupAnalytics4ZeroData,
setupAnalytics4MockReportsWithNoDataInComparisonDateRange,
} from './common-GA4.stories';
} from './common-GA4-stories';
import { Provider as ViewContextProvider } from '@/js/components/Root/ViewContextContext';
import WithRegistrySetup from '../../../../tests/js/WithRegistrySetup';
import AdminBarApp from './AdminBarApp';
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/adminbar/AdminBarClicks.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
setupSearchConsoleGatheringData,
setupSearchConsoleMockReports,
widgetDecorators,
} from './common-GA4.stories';
} from './common-GA4-stories';
import AdminBarClicks from './AdminBarClicks';
import WithRegistrySetup from '../../../../tests/js/WithRegistrySetup';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
setupSearchConsoleGatheringData,
setupSearchConsoleMockReports,
widgetDecorators,
} from './common-GA4.stories';
} from './common-GA4-stories';
import AdminBarImpressions from './AdminBarImpressions';
import WithRegistrySetup from '../../../../tests/js/WithRegistrySetup';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
setupAnalytics4MockReports,
widgetDecorators,
setupAnalytics4MockReportsWithNoDataInComparisonDateRange,
} from './common-GA4.stories';
} from './common-GA4-stories';
import WithRegistrySetup from '../../../../tests/js/WithRegistrySetup';
import AdminBarSessionsGA4 from './AdminBarSessionsGA4';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
setupAnalytics4Error,
widgetDecorators,
setupAnalytics4MockReportsWithNoDataInComparisonDateRange,
} from './common-GA4.stories';
} from './common-GA4-stories';
import WithRegistrySetup from '../../../../tests/js/WithRegistrySetup';
import AdminBarUniqueVisitorsGA4 from './AdminBarUniqueVisitorsGA4';

Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/adminbar/AdminBarWidgets.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
widgetDecorators,
setupAnalytics4Loading,
setupAnalytics4MockReports,
} from './common-GA4.stories';
} from './common-GA4-stories';
import { Provider as ViewContextProvider } from '@/js/components/Root/ViewContextContext';
import { CORE_SITE } from '@/js/googlesitekit/datastore/site/constants';
import { VIEW_CONTEXT_ADMIN_BAR_VIEW_ONLY } from '@/js/googlesitekit/constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ import {
} from '../../../../tests/js/utils';
import { CORE_USER } from '@/js/googlesitekit/datastore/user/constants';
import WithRegistrySetup from '../../../../tests/js/WithRegistrySetup';
import { provideSearchConsoleMockReport } from '@/js/modules/search-console/util/data-mock';
import { replaceValuesInAnalytics4ReportWithZeroData } from '../../../../tests/js/utils/zeroReports';
import { replaceValuesInAnalytics4ReportWithZeroData } from '@/js/util/zero-reports';
import {
getAnalytics4MockResponse,
provideAnalyticsReportWithoutDateRangeData,
} from '@/js/modules/analytics-4/utils/data-mock';
import { provideSearchConsoleMockReport } from '@/js/modules/search-console/util/data-mock';
import { MODULES_ANALYTICS_4 } from '@/js/modules/analytics-4/datastore/constants';
import { MODULE_SLUG_ANALYTICS_4 } from '@/js/modules/analytics-4/constants';
import { DAY_IN_SECONDS } from '@/js/util';
Expand Down Expand Up @@ -257,6 +257,7 @@ export function setupAnalytics4GatheringData(
const propertyID = properties[ 0 ]._id;
// Set the property creation timestamp to one and a half days ago, so that
// the property is considered to be in the gathering data state.
// eslint-disable-next-line sitekit/no-direct-date
const createTime = new Date(
Date.now() - DAY_IN_SECONDS * 1.5 * 1000
).toISOString();
Expand Down
Loading
Loading