-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
E2E Test queryTrackedDomainList (#132)
* e2e test for queryTrackedDomainList * redaction case added * update description * added domains to list * modified regex
- Loading branch information
Gouri Hariharan
authored and
GitHub Enterprise
committed
Jan 13, 2025
1 parent
5c3b101
commit 3150079
Showing
4 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
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
19 changes: 19 additions & 0 deletions
19
test/e2e/00_pageLoad/queryTrackedDomainList/www.example1.com.html
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>pageLoad test</title> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Tangerine"> | ||
</head> | ||
<body> | ||
Test url domain in queryTrackedDomainList | ||
|
||
<script src="/e2e/initializer.js"></script> | ||
<script crossorigin="anonymous" defer src="/target/eum.min.js"></script> | ||
|
||
<script> | ||
eum('queryTrackedDomainList', [/www.example1.com/i]); | ||
</script> | ||
|
||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
test/e2e/00_pageLoad/queryTrackedDomainList/www.example2.com.html
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>pageLoad test</title> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Tangerine"> | ||
</head> | ||
<body> | ||
Test url domain not in queryTrackedDomainList | ||
|
||
<script src="/e2e/initializer.js"></script> | ||
<script crossorigin="anonymous" defer src="/target/eum.min.js"></script> | ||
|
||
<script> | ||
eum('queryTrackedDomainList', [/www.example1.com/i, /www.example3.com/i]); | ||
</script> | ||
|
||
</body> | ||
</html> |
21 changes: 21 additions & 0 deletions
21
test/e2e/00_pageLoad/queryTrackedDomainList/www.exampleWithRedactionCase.com.html
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>pageLoad test</title> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Tangerine"> | ||
</head> | ||
<body> | ||
Test url in queryTrackedDomainList and with redacted secret and fragment. | ||
|
||
<script src="/e2e/initializer.js"></script> | ||
<script crossorigin="anonymous" defer src="/target/eum.min.js"></script> | ||
|
||
<script> | ||
eum('fragment', [/pageLoad/i]); | ||
eum('secrets', [/secret/i]); | ||
eum('queryTrackedDomainList', [/www.exampleWithRedactionCase.com/i]); | ||
</script> | ||
|
||
</body> | ||
</html> |