Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion assets/js/components/SelectionPanel/index.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ function Template( {
export const Default = Template.bind( {} );
Default.storyName = 'Default';
Default.scenario = {
delay: 1500,
readySelector:
'.googlesitekit-selection-panel-item:first-of-type .mdc-checkbox__native-control:focus',
};

export const WithSavedItems = Template.bind( {} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ ReadyWithActivateAnalyticsCTA.args = {
},
};

ReadyWithActivateAnalyticsCTA.scenario = {
// delay: 6000, // This extra delay is required to fix unstable VRTs. TODO: remove if not required.
};
ReadyWithActivateAnalyticsCTA.scenario = {};

export const ReadyWithCompleteAnalyticsActivationCTA = Template.bind( {} );
ReadyWithCompleteAnalyticsActivationCTA.storyName =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ const widgetComponentProps = getWidgetComponentProps(
);

function Template() {
return <DashboardAllTrafficWidgetGA4 { ...widgetComponentProps } />;
// Min height added to fix rare VRT instability where the mobile VRT for Zero Data was not capturing the full height.
return (
<div style={ { minHeight: '980px' } }>
<DashboardAllTrafficWidgetGA4 { ...widgetComponentProps } />
</div>
);
}

const baseAllTrafficOptions = {
Expand Down Expand Up @@ -167,7 +172,7 @@ EntityDashboardLoaded.args = {
};
EntityDashboardLoaded.scenario = {
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 200,
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export const EntityDashboardLoading = Template.bind( {} );
Expand Down Expand Up @@ -225,7 +230,7 @@ EntityDashboardDataUnavailable.args = {
};
EntityDashboardDataUnavailable.scenario = {
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 200,
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export const EntityDashboardZeroData = Template.bind( {} );
Expand Down Expand Up @@ -269,7 +274,7 @@ EntityDashboardZeroData.args = {
};
EntityDashboardZeroData.scenario = {
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 200,
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export const EntityDashboardError = Template.bind( {} );
Expand Down Expand Up @@ -316,7 +321,7 @@ EntityDashboardOneRowOfData.args = {
};
EntityDashboardOneRowOfData.scenario = {
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 200,
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export const NoDataInComparisonDateRange = Template.bind( {} );
Expand All @@ -332,7 +337,7 @@ NoDataInComparisonDateRange.args = {
};
NoDataInComparisonDateRange.scenario = {
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 200,
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ MainDashboardLoaded.args = {
};
MainDashboardLoaded.scenario = {
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 200,
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export const MainDashboardLoading = Template.bind( {} );
Expand Down Expand Up @@ -235,7 +235,7 @@ MainDashboardDataUnavailable.args = {
};
MainDashboardDataUnavailable.scenario = {
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 200,
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export const MainDashboardZeroData = Template.bind( {} );
Expand Down Expand Up @@ -279,7 +279,7 @@ MainDashboardZeroData.args = {
};
MainDashboardZeroData.scenario = {
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 200,
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export const MainDashboardError = Template.bind( {} );
Expand Down Expand Up @@ -326,7 +326,7 @@ MainDashboardOneRowOfData.args = {
};
MainDashboardOneRowOfData.scenario = {
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 200,
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export const NoDataInComparisonDateRange = Template.bind( {} );
Expand All @@ -342,7 +342,7 @@ NoDataInComparisonDateRange.args = {
};
NoDataInComparisonDateRange.scenario = {
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 200,
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ ReadyWithActivateAnalyticsCTA.args = {
provideSearchConsoleMockReport( registry, searchConsoleArgs );
},
};

ReadyWithActivateAnalyticsCTA.scenario = {
delay: 3000,
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export const ReadyWithCompleteAnalyticsActivationCTA = Template.bind( {} );
Expand Down Expand Up @@ -336,9 +336,9 @@ ReadyWithCreateKeyEventCTA.args = {
}
},
};

ReadyWithCreateKeyEventCTA.scenario = {
delay: 3000,
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export const Loading = Template.bind( {} );
Expand Down Expand Up @@ -485,7 +485,10 @@ NoDataInComparisonDateRange.args = {
}
},
};
NoDataInComparisonDateRange.scenario = {};
NoDataInComparisonDateRange.scenario = {
readySelector: '[id^="googlesitekit-chart-"] svg',
delay: 400, // This extended delay is required to fix rare VRT instability where the chart in this scenario does not render in the standard delay.
};

export default {
title: 'Modules/SearchConsole/Widgets/SearchFunnelWidgetGA4',
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading