Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #696 from adobe/upgrade-testcafe
Upgraded testcafe and browserstack provider.
- Loading branch information
Showing
31 changed files
with
1,716 additions
and
33,706 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Alloy Test Page</title> | ||
</head> | ||
<body> | ||
<h1> | ||
Testcafe injects Alloy and configurations during runtime. This is a | ||
standalone test page that is hosted on alloyio.com/functional-test/ This | ||
page is only used by reloadPage.js as an interim workaround for | ||
https://github.com/DevExpress/testcafe/issues/5992 | ||
</h1> | ||
</body> | ||
</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,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Alloy Test Page</title> | ||
</head> | ||
<body> | ||
<h1> | ||
Testcafe injects Alloy and configurations during runtime. This is a | ||
standalone test page that is hosted on alloyio.com/functional-test/ | ||
</h1> | ||
</body> | ||
</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,39 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<!-- | ||
While it seems reasonable to use re-use our default test page | ||
and just add the meta CSP element dynamically during our test, | ||
TestCafe has a bug that prevents that approach from working properly. | ||
https://github.com/DevExpress/testcafe/issues/6057 | ||
--> | ||
<meta | ||
http-equiv="Content-Security-Policy" | ||
content="default-src 'self'; | ||
script-src 'self' 'unsafe-eval' 'nonce-aZ96GeVfD9D'; | ||
style-src 'self' 'nonce-aZ96GeVfD9D'; | ||
connect-src 'self' *.alloyio.com *.demdex.net *.adobedc.net;" | ||
/> | ||
<title>Alloy Test Page</title> | ||
<!-- | ||
A customer using a CSP would typically add a nonce attribute to | ||
the base code script we provide in Alloy's installation instructions. | ||
Then, Alloy would find the nonce on that script tag and use the | ||
nonce value when adding script or style elements (typically when | ||
rendering personalized content). Because TestCafe limits how the | ||
base code's script tag is constructed | ||
(https://github.com/DevExpress/testcafe/issues/5612), we can't add | ||
a nonce attribute to the script tag that TestCafe adds to the page. | ||
So, as a workaround, we've provided this script tag with a nonce, so that | ||
Alloy can properly access and use its nonce value. | ||
--> | ||
<script nonce="aZ96GeVfD9D"></script> | ||
</head> | ||
<body> | ||
<h1> | ||
Testcafe injects Alloy and configurations during runtime. This is a | ||
standalone test page that is hosted on alloyio.com/functional-test/ | ||
</h1> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
/* | ||
Copyright 2021 Adobe. All rights reserved. | ||
This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. You may obtain a copy | ||
of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under | ||
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
OF ANY KIND, either express or implied. See the License for the specific language | ||
governing permissions and limitations under the License. | ||
*/ | ||
|
||
export const ECID = /^[0-9]{38}$/; |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
/* | ||
Copyright 2021 Adobe. All rights reserved. | ||
This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. You may obtain a copy | ||
of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under | ||
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
OF ANY KIND, either express or implied. See the License for the specific language | ||
governing permissions and limitations under the License. | ||
*/ | ||
|
||
const baseUrl = `https://alloyio.com/functional-test`; | ||
|
||
export const TEST_PAGE = `${baseUrl}/testPage.html`; | ||
export const TEST_PAGE_WITH_CSP = `${baseUrl}/testPageWithCsp.html`; | ||
// This page is only used by reloadPage.js as an interim workaround for | ||
// https://github.com/DevExpress/testcafe/issues/5992 | ||
export const RELOAD_PAGE = `${baseUrl}/reloadPage.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
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
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
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
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.