Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix interactionIdToRouteNameMapping scenarios
- Loading branch information
1 parent
47a3cc7
commit 8b1871e
Showing
11 changed files
with
272 additions
and
74 deletions.
There are no files selected for viewing
29 changes: 16 additions & 13 deletions
29
...-integration-tests/suites/tracing/browserTracingIntegration/interactions/assets/script.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
const delay = e => { | ||
const startTime = Date.now(); | ||
const createDelayFunction = | ||
(delay = 70) => | ||
e => { | ||
const startTime = Date.now(); | ||
|
||
function getElasped() { | ||
const time = Date.now(); | ||
return time - startTime; | ||
} | ||
function getElasped() { | ||
const time = Date.now(); | ||
return time - startTime; | ||
} | ||
|
||
while (getElasped() < 70) { | ||
// | ||
} | ||
while (getElasped() < delay) { | ||
// | ||
} | ||
|
||
e.target.classList.add('clicked'); | ||
}; | ||
e.target.classList.add('clicked'); | ||
}; | ||
|
||
document.querySelector('[data-test-id=interaction-button]').addEventListener('click', delay); | ||
document.querySelector('[data-test-id=annotated-button]').addEventListener('click', delay); | ||
document.querySelector('[data-test-id=interaction-button]').addEventListener('click', createDelayFunction()); | ||
document.querySelector('[data-test-id=annotated-button]').addEventListener('click', createDelayFunction()); | ||
document.querySelector('[data-test-id=slow-interaction-button]').addEventListener('click', createDelayFunction(200)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 16 additions & 13 deletions
29
...ges/browser-integration-tests/suites/tracing/browsertracing/interactions/assets/script.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
const delay = e => { | ||
const startTime = Date.now(); | ||
const createDelayFunction = | ||
(delay = 70) => | ||
e => { | ||
const startTime = Date.now(); | ||
|
||
function getElasped() { | ||
const time = Date.now(); | ||
return time - startTime; | ||
} | ||
function getElasped() { | ||
const time = Date.now(); | ||
return time - startTime; | ||
} | ||
|
||
while (getElasped() < 70) { | ||
// | ||
} | ||
while (getElasped() < delay) { | ||
// | ||
} | ||
|
||
e.target.classList.add('clicked'); | ||
}; | ||
e.target.classList.add('clicked'); | ||
}; | ||
|
||
document.querySelector('[data-test-id=interaction-button]').addEventListener('click', delay); | ||
document.querySelector('[data-test-id=annotated-button]').addEventListener('click', delay); | ||
document.querySelector('[data-test-id=interaction-button]').addEventListener('click', createDelayFunction()); | ||
document.querySelector('[data-test-id=annotated-button]').addEventListener('click', createDelayFunction()); | ||
document.querySelector('[data-test-id=slow-interaction-button]').addEventListener('click', createDelayFunction(200)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.