-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'oil-173-vendors' into noticket-stabilize-tests
- Loading branch information
Showing
20 changed files
with
233 additions
and
33 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<title>Test Page</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<!-- tag::oil-config[] --> | ||
<script id="oil-configuration" type="application/configuration"> | ||
{ | ||
"advanced_settings": true, | ||
"iabVendorWhitelist": [2,3], | ||
"show_limited_vendors": true | ||
} | ||
</script> | ||
<!-- end::oil-config[] --> | ||
<style> | ||
body { | ||
font-family: 'Nunito', sans-serif; | ||
font-size: 60px; | ||
color: #f7f7f7; | ||
min-height: 100vh; | ||
height: 100%; | ||
background: linear-gradient(20deg, #3a871a 0%, #a5ba10 50%, #cfcd26 100%); | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.demoname { | ||
padding: 24px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class="demoname">Group A Site A</div> | ||
<!--<div id="oil-preference-center"></div>--> | ||
</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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { | ||
OIL_LAYER, | ||
OIL_ADVANCED_SETTINGS_WRAPPER, | ||
OIL_ADVANCED_SETTINGS, | ||
OIL_THIRD_PARTY_NAME | ||
} from '../test_constants.js'; | ||
|
||
module.exports = { | ||
'@disabled': false, | ||
|
||
beforeEach: browser => { | ||
browser | ||
.url(browser.globals.launch_url_host1 + 'demos/advanced-settings-limited-vendors.html') | ||
.deleteCookies(); | ||
|
||
browser | ||
.url(browser.globals.launch_url_host1 + 'demos/advanced-settings-limited-vendors.html') | ||
.useCss() | ||
.waitForElementVisible('body', 1000, false) | ||
.useXpath() | ||
.waitForElementVisible(OIL_LAYER, 2000, false); | ||
}, | ||
|
||
'third party list includes only two entries': function (browser) { | ||
browser | ||
.click(OIL_ADVANCED_SETTINGS) | ||
.pause(200) | ||
.waitForElementVisible(OIL_ADVANCED_SETTINGS_WRAPPER, 1000, false) | ||
.pause(200) | ||
.useCss() | ||
.expect.element(OIL_THIRD_PARTY_NAME).text.to.equal('Captify Technologies Limited') | ||
browser.end(); | ||
} | ||
|
||
}; |
14 changes: 14 additions & 0 deletions
14
test/fixtures/config/given.config.with.advanced.settings.show.limited.vendors.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,14 @@ | ||
<script id="oil-configuration" type="application/configuration"> | ||
{ | ||
"advanced_settings": true, | ||
"iabVendorWhitelist": [1,2], | ||
"show_limited_vendors": true, | ||
"locale": { | ||
"localeId": "enEN_01", | ||
"version": 1, | ||
"texts": { | ||
"label_intro_heading": "Insider, Inc." | ||
} | ||
} | ||
} | ||
</script> |
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.