Skip to content

Commit 6880fd0

Browse files
committed
fix: increase Jest max timeout to reduce frequency of errors when testing autotrack link behavior on 3rd party sites
1 parent e1e4273 commit 6880fd0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

packages/analytics/autolink/__tests__/autolink.test.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('analytics autolinker', () => {
3737
const currentUrl = await page.url();
3838

3939
expect(currentUrl).toContain('_ga=1234');
40-
}, 30000);
40+
}, 60000);
4141

4242
test('autolinker updates the URLs of a <bolt-button> with an external url (2nd in the config) + rendering to the Shadow DOM', async function() {
4343
await page.addScriptTag({
@@ -58,7 +58,7 @@ describe('analytics autolinker', () => {
5858
const currentUrl = await page.url();
5959

6060
expect(currentUrl).toContain('_ga');
61-
}, 30000);
61+
}, 60000);
6262

6363
test('autolinker tracks the URLs of a <bolt-button> with an external url (2nd in the config) + rendering to the Shadow DOM - even after re-rendering', async function() {
6464
await page.addScriptTag({
@@ -87,7 +87,7 @@ describe('analytics autolinker', () => {
8787

8888
expect(currentUrl).toContain('_ga');
8989
expect(currentUrl).toContain('brightcove.com');
90-
}, 30000);
90+
}, 60000);
9191

9292
test('autolinker updates the URLs of a <bolt-button> with an external url + rendering to the Shadow DOM', async function() {
9393
await page.addScriptTag({
@@ -108,7 +108,7 @@ describe('analytics autolinker', () => {
108108
const currentUrl = await page.url();
109109

110110
expect(currentUrl).toContain('_ga');
111-
}, 30000);
111+
}, 60000);
112112

113113
test('autolinker updates the URLs of <bolt-button>s with external urls + render to the light DOM', async function() {
114114
await page.addScriptTag({
@@ -130,7 +130,7 @@ describe('analytics autolinker', () => {
130130
const currentUrl = await page.url();
131131

132132
expect(currentUrl).toContain('_ga');
133-
}, 30000);
133+
}, 60000);
134134

135135
test('autolinker does not track <bolt-button>s with urls not containing domains in the config', async function() {
136136
await page.addScriptTag({
@@ -151,7 +151,7 @@ describe('analytics autolinker', () => {
151151
const currentUrl = await page.url();
152152

153153
expect(currentUrl).not.toContain('_ga');
154-
}, 30000);
154+
}, 60000);
155155

156156
test('autolinker updates the URLs of a <bolt-link> with an external url + rendering to the Shadow DOM', async function() {
157157
await page.addScriptTag({
@@ -173,7 +173,7 @@ describe('analytics autolinker', () => {
173173
const currentUrl = await page.url();
174174

175175
expect(currentUrl).toContain('_ga');
176-
}, 30000);
176+
}, 60000);
177177

178178
test('autolinker updates the URLs of a <bolt-link> with an external url + rendering to the light DOM', async function() {
179179
await page.addScriptTag({
@@ -195,7 +195,7 @@ describe('analytics autolinker', () => {
195195
const currentUrl = await page.url();
196196

197197
expect(currentUrl).toContain('_ga');
198-
}, 30000);
198+
}, 60000);
199199

200200
test('autolinker does not track <bolt-link>s with urls not containing domains in the config', async function() {
201201
await page.addScriptTag({
@@ -217,7 +217,7 @@ describe('analytics autolinker', () => {
217217
const currentUrl = await page.url();
218218

219219
expect(currentUrl).not.toContain('_ga');
220-
}, 30000);
220+
}, 60000);
221221

222222
test('the correct inline config for specifying autolink domains inside Drupal exists', async function() {
223223
await page.addScriptTag({
@@ -235,7 +235,7 @@ describe('analytics autolinker', () => {
235235
});
236236

237237
expect(config).toBe('pega.com');
238-
}, 30000);
238+
}, 60000);
239239

240240
test('allow Drupal to configure which domains get configured / tracked by autolink.', async function() {
241241
await page.addScriptTag({
@@ -260,5 +260,5 @@ describe('analytics autolinker', () => {
260260
const currentUrl = await page.url();
261261

262262
expect(currentUrl).toContain('_ga');
263-
}, 30000);
263+
}, 60000);
264264
});

0 commit comments

Comments
 (0)