Skip to content

Commit

Permalink
Test with retries on Chartbeat e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
amoore108 committed Feb 7, 2025
1 parent 9815a25 commit 0cf3f72
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/pages/articles/testsForCanonicalOnly.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const serviceHasCaption = service => service === 'news';
export default ({ service, pageType, variant = 'default' }) =>
describe(`Canonical Tests for ${service} ${pageType}`, () => {
if (appToggles.chartbeatAnalytics.enabled) {
describe('Chartbeat', () => {
describe('Chartbeat', { retries: 3 }, () => {
if (envConfig.chartbeatEnabled) {
it('should have a script with src value set to chartbeat source', () => {
cy.hasScriptWithChartbeatSrc();
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/pages/homePage/testsForCanonicalOnly.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default ({ service }) => {
runAdsTests({ service });
}

describe(`Chartbeat analytics`, () => {
describe(`Chartbeat analytics`, { retries: 3 }, () => {
it('should have a script with src value set to chartbeat source', () => {
cy.hasScriptWithChartbeatSrc();
});
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/pages/liveRadio/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default ({ service, pageType }) =>
},
);

describe('Chartbeat', () => {
describe('Chartbeat', { retries: 3 }, () => {
if (envConfig.chartbeatEnabled) {
it('should have a script with src value set to chartbeat source', () => {
cy.hasScriptWithChartbeatSrc();
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/pages/mediaAssetPage/testsForCanonicalOnly.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const testsThatFollowSmokeTestConfigForCanonicalOnly = ({
}) => {
describe(`testsThatFollowSmokeTestConfigForCanonicalOnly for ${service} ${pageType}`, () => {
if (appToggles.chartbeatAnalytics.enabled && envConfig.chartbeatEnabled) {
describe('Chartbeat', () => {
describe('Chartbeat', { retries: 3 }, () => {
it('should have a script with correct src', () => {
cy.hasScriptWithChartbeatSrc();
});
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/pages/mostReadPage/testsForCanonicalOnly.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import envConfig from '../../../support/config/envs';

export default ({ service, pageType, variant }) => {
describe(`testsForCanonicalOnly for ${service} ${pageType} ${variant}`, () => {
describe('Chartbeat', () => {
describe('Chartbeat', { retries: 3 }, () => {
if (envConfig.chartbeatEnabled) {
it('should have a script with src value set to chartbeat source', () => {
cy.hasScriptWithChartbeatSrc();
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/pages/onDemandAudio/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default ({ service, pageType, variant }) => {
});
});
});
describe('Chartbeat', () => {
describe('Chartbeat', { retries: 3 }, () => {
if (envConfig.chartbeatEnabled) {
it('should have a script with src value set to chartbeat source', () => {
cy.hasScriptWithChartbeatSrc();
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/pages/onDemandTV/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default ({ service, pageType, variant }) => {
});
});
},
describe('Chartbeat', () => {
describe('Chartbeat', { retries: 3 }, () => {
if (envConfig.chartbeatEnabled) {
it('should have a script with src value set to chartbeat source', () => {
cy.hasScriptWithChartbeatSrc();
Expand Down

0 comments on commit 0cf3f72

Please sign in to comment.