Read Jobylon's boards from the embed page and each role's page
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
68a3858355
commit
a41995da8e
6 files changed
+1694
No files matched your search
+257
@@ -0,0 +1,257 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Job Widget</title>
|
||||
<!-- Fake favicon -->
|
||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||
<!-- Bootstrap -->
|
||||
<link href="https://static-eu.jobylon.com/js/vendor/bootstrap/3.2.0/css/bootstrap.min.ff36ce57a168.css"
|
||||
rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://static-eu.jobylon.com/css/embed-v2.min.35b2ee8bfa21.css">
|
||||
<!-- Custom -->
|
||||
|
||||
<link rel="stylesheet"
|
||||
href="//embed-css.jobylon.com/c_1056_v2.css">
|
||||
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="//oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script16 <![endif]-->
|
||||
</head>
|
||||
<body ng-app="embed_v2" ng-controller="JobListCtrl">
|
||||
|
||||
<div ng-show="showSubscribeForm">
|
||||
<div class="col-md-12 well subscribe-well">
|
||||
<form class="form-inline" name="subscriberForm" ng-submit="submitSubscribeForm(subscriberForm.$valid)" ng-hide="showSubscribeSuccess || showSubscribeError" novalidate>
|
||||
<div class="form-group">
|
||||
<label for="email">Get our latest jobs by email</label>
|
||||
<input type="email" class="form-control" id="email" name="email" placeholder="Email address" ng-model="subscriber.email" required />
|
||||
</div>
|
||||
|
||||
<input type="hidden" ng-model="subscriber.content_type" ng-init="subscriber.content_type='12'" value="12" />
|
||||
|
||||
<input type="hidden" ng-model="subscriber.object_id" ng-init="subscriber.object_id='1056'" value="1056" />
|
||||
<input class="btn btn-default" type="submit" ng-disabled="subscriberForm.$invalid" value="Create alert" />
|
||||
</form>
|
||||
<div ng-show="showSubscribeSuccess">Successfully subscribed to our jobs email!</div>
|
||||
<div ng-show="showSubscribeError">
|
||||
Failed to subscribe to job email. Please try again later or contact us on <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9cefe9ececf3eee8dcf6f3fee5f0f3f2b2fff3f1">[email protected]</a>
|
||||
</div>
|
||||
<button class="btn btn-link subscribe-close" type="button" ng-click="showSubscribeForm=false">
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input-group search-job">
|
||||
<input type="text" class="form-control job-search" placeholder="Search for job title and/or location" ng-model="query.text">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default search-btn" type="button">
|
||||
<i class="glyphicon glyphicon-search"></i>
|
||||
</button>
|
||||
<button class="btn btn-success subscribe-btn" type="button" ng-click="showSubscribeForm=true">
|
||||
Subscribe to jobs
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
<div class="filters">
|
||||
<div class="select company-select" ng-show="is_company_group" ng-cloak>
|
||||
<select ng-model="query.company" aria-label='Company' ng-options="comp for comp in companies">
|
||||
<option value="">All companies</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select categories-select">
|
||||
<select ng-model="query.categories" aria-label='Category' ng-options="cat for cat in categories">
|
||||
<option class="option-all" value="">
|
||||
<span class="placeholder">Show all</span>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select departments-select">
|
||||
<select ng-model="query.departments" aria-label='Department' ng-options="dept for dept in departments">
|
||||
<option class="option-all" value="">
|
||||
<span class="placeholder">Show all</span>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select experience-select">
|
||||
<select ng-model="query.experience" aria-label='Experience' ng-options="exp for exp in experiences">
|
||||
<option value="">All levels</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select function-select">
|
||||
<select ng-model="query.function" aria-label='Functions' ng-options="func for func in functions">
|
||||
<option value="">All functions</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select language-select">
|
||||
<select ng-model="query.language" aria-label='Language' ng-options="lang for lang in languages">
|
||||
<option class="option-all" value="">
|
||||
<span class="placeholder">Show all</span>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div ng-repeat="(layerName, layerOptions) in availableLayers" class="select {$ layernameToClass(layerName) $}-select" style="margin-right: 3px">
|
||||
<select ng-model="query[layerName]" aria-label="{$ layernameToLabel(layerName) $}" ng-options="layers for layers in layerOptions">
|
||||
<option class="option-all" value="">
|
||||
<span class="placeholder">Show all</span>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select workspace-select">
|
||||
<select ng-model="query.workspace" aria-label='Workspace type' ng-options="spaces for spaces in workspaces">
|
||||
<option class="option-all" value="">
|
||||
<span class="placeholder">Show all</span>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select employment_type-select">
|
||||
<select ng-model="query.employment_type" aria-label='employment type' ng-options="employment for employment in employment_types">
|
||||
<option class="option-all" value="">
|
||||
<span class="placeholder">Show all</span>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select location-select">
|
||||
<select ng-model="query.locations" aria-label='location' ng-options="loc for loc in locations">
|
||||
<option value="">Everywhere</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="job-wrapper">
|
||||
<a id="job-{$ job.id $}" class="company-{$ job.company_id $}" ng-class="job.klass" ng-repeat="job in pagedJobs[currentPage]" ng-show="pagedJobs.length" ng-cloak href="https://emp.jobylon.com{$ job.url $}" target="_blank" rel="noopener">
|
||||
<div class="job">
|
||||
<img ng-src="{$ job.logo $}" ng-show="is_company_group" alt="">
|
||||
<p class="title">{$ job.title $}</p>
|
||||
<p class="text-muted job-details">
|
||||
<small class="job-company" ng-show="is_company_group"><strong>{$ job.company $}</strong></small>
|
||||
<small class="separator separator-company" ng-show="is_company_group">|</small>
|
||||
<small class="job-location">{$ job.locations_text $}</small>
|
||||
<small class="separator separator-location" ng-show="job.locations_text">|</small>
|
||||
<small class="job-function">{$ job.function $}</small>
|
||||
<small class="job-categories" ng-repeat="category in job.categories">
|
||||
<small class="separator separator-categories">|</small>
|
||||
{$ category $}
|
||||
</small>
|
||||
<small class="job-departments" ng-repeat="department in job.departments">
|
||||
<small class="separator separator-departments">|</small>
|
||||
{$ department $}
|
||||
</small>
|
||||
<small ng-repeat="(layerDimension, layerOptions) in job.layers" class="job-{$ layernameToClass(layerDimension) $}">
|
||||
<span ng-repeat="option in layerOptions">
|
||||
<small class="separator separator-{$ layernameToClass(layerDimension) $}">|</small>
|
||||
{$ option $}
|
||||
</span>
|
||||
</small>
|
||||
<small class="job-workspace">
|
||||
<small class="separator separator-workspace">|</small>
|
||||
{$ job.workspace $}
|
||||
</small>
|
||||
<small class="job-employment_type">
|
||||
<small class="separator separator-employment_type">|</small>
|
||||
{$ job.employment_type $}
|
||||
</small>
|
||||
<small class="separator separator-language" ng-show="job.language">|</small>
|
||||
<small class="job-language">{$ job.language $}</small>
|
||||
<small class="separator separator-published_date" ng-show="job.published_date">|</small>
|
||||
<small class="job-published_date" ng-show="job.published_date">{$ job.published_date $}</small>
|
||||
<small class="separator separator-to_date" ng-show="job.to_date">|</small>
|
||||
<small class="job-to_date" ng-show="job.to_date">{$ job.to_date $}</small>
|
||||
</p>
|
||||
<p class="job-summary">{$ job.summary $}</p>
|
||||
</div>
|
||||
</a>
|
||||
<p class="text-muted text-center" ng-hide="pagedJobs.length" style="margin:30px 0;">
|
||||
<span class="placeholder">No jobs found</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<ul class="pagination pagination-sm">
|
||||
<li ng-class="{disabled: currentPage == 0}">
|
||||
<a href="#" ng-click="prevPage()">«</a>
|
||||
</li>
|
||||
<li ng-repeat="n in range(pagedJobs.length)" ng-class="{active: n == currentPage}">
|
||||
<a href="#" ng-click="setPage()" ng-bind="n + 1"></a>
|
||||
</li>
|
||||
<li ng-class="{disabled: currentPage >= pagedJobs.length - 1}">
|
||||
<a href="#" ng-click="nextPage()">»</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>
|
||||
<small>
|
||||
Powered by
|
||||
<a href="http://www.jobylon.com" target="_blank" rel="noopener">
|
||||
<strong>Jobylon</strong>
|
||||
</a>
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script src="https://static-eu.jobylon.com/js/bower_components/jquery/jquery.min.397754ba49e9.js"></script>
|
||||
<script src="https://static-eu.jobylon.com/js/vendor/bootstrap/3.2.0/js/bootstrap.min.abda843684d0.js"></script>
|
||||
<script>
|
||||
if (typeof JBL === "undefined" || JBL === null) {
|
||||
window.JBL = {};
|
||||
}
|
||||
JBL.embed_v2 = {};
|
||||
|
||||
JBL.embed_v2['is_company_group'] = false;
|
||||
|
||||
JBL.embed_v2['companies'] = [
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['categories'] = [
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['departments'] = [
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['experiences'] = [
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['functions'] = [
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['employment_types'] = [
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['languages'] = [
|
||||
|
||||
];
|
||||
|
||||
|
||||
JBL.embed_v2['layer_headers'] = {};
|
||||
|
||||
|
||||
JBL.embed_v2['availableLayers'] = {}
|
||||
|
||||
|
||||
JBL.embed_v2['locations'] = [
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['workspaces'] = [
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['jobs'] = [
|
||||
|
||||
];
|
||||
</script>
|
||||
<script src="https://static-eu.jobylon.com/js/embed-v2.min.d139cbc386fa.js"></script>
|
||||
<script>(function(){function c(){var b=a.contentDocument||(a.contentWindow&&a.contentWindow.document);if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a42ce836bc6b3620',t:'MTc5MDcwNTAzMg=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body>
|
||||
</html>
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head><title>CDL Driver Recruiter - Einride | Jobylon</title>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "JobPosting",
|
||||
"datePosted": "2026-09-22T11:58:11+00:00",
|
||||
"description": "<p>Want to be part of transforming road freight? Einride is showing the world a new way to move, based on the latest digital, autonomous and electric technologies. We build the technology that hauls freight efficiently, and we put it to work for the world's leading manufacturers, retailers, logistics providers and defense organizations, all working toward a future where moving goods costs less for our customers, and less for the planet.</p>",
|
||||
"hiringOrganization": {
|
||||
"@type": "Organization",
|
||||
"name": "Einride",
|
||||
"sameAs": ""
|
||||
},
|
||||
"title": "CDL Driver Recruiter",
|
||||
"jobLocation": [
|
||||
{
|
||||
"@type": "Place",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"streetAddress": "Houston, TX, USA",
|
||||
"addressLocality": "Houston",
|
||||
"url": "https://maps.google.com/?cid=14559296326948160827"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Place",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"streetAddress": "Dallas, TX, USA",
|
||||
"addressLocality": "Dallas",
|
||||
"url": "https://maps.google.com/?cid=13397254124329199503"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Place",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"streetAddress": "New Jersey, USA",
|
||||
"addressLocality": "",
|
||||
"url": "https://maps.google.com/?cid=3229779156937960845"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Place",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"streetAddress": "Atlanta, GA, USA",
|
||||
"addressLocality": "Atlanta",
|
||||
"url": "https://maps.google.com/?cid=7421613531965645579"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
</head><body></body></html>
|
||||
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head><title>Financial Controller - Einride | Jobylon</title>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "JobPosting",
|
||||
"datePosted": "2026-09-25T13:59:14+00:00",
|
||||
"description": "<p>Want to be part of transforming road freight? Einride is showing the world a new way to move, based on the latest digital, autonomous and electric technologies. We build the technology that hauls freight efficiently, and we put it to work for the world's leading manufacturers, retailers, logistics providers and defense organizations, all working toward a future where moving goods costs less for our customers, and less for the planet.</p>",
|
||||
"hiringOrganization": {
|
||||
"@type": "Organization",
|
||||
"name": "Einride",
|
||||
"sameAs": ""
|
||||
},
|
||||
"title": "Financial Controller",
|
||||
"jobLocation": [
|
||||
{
|
||||
"@type": "Place",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"streetAddress": "Stockholm, Sweden",
|
||||
"addressLocality": "Stockholm",
|
||||
"url": "https://maps.google.com/?cid=12109378761999087462"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
</head><body></body></html>
|
||||
Vendored
+939
@@ -0,0 +1,939 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Job Widget</title>
|
||||
<!-- Fake favicon -->
|
||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||
<!-- Bootstrap -->
|
||||
<link href="https://static-eu.jobylon.com/js/vendor/bootstrap/3.2.0/css/bootstrap.min.ff36ce57a168.css"
|
||||
rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://static-eu.jobylon.com/css/embed-v2.min.35b2ee8bfa21.css">
|
||||
<!-- Custom -->
|
||||
|
||||
<link rel="stylesheet"
|
||||
href="//embed-css.jobylon.com/c_3143_v2.css">
|
||||
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="//oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script16 <![endif]-->
|
||||
</head>
|
||||
<body ng-app="embed_v2" ng-controller="JobListCtrl">
|
||||
|
||||
<div ng-show="showSubscribeForm">
|
||||
<div class="col-md-12 well subscribe-well">
|
||||
<form class="form-inline" name="subscriberForm" ng-submit="submitSubscribeForm(subscriberForm.$valid)" ng-hide="showSubscribeSuccess || showSubscribeError" novalidate>
|
||||
<div class="form-group">
|
||||
<label for="email">Get our latest jobs by email</label>
|
||||
<input type="email" class="form-control" id="email" name="email" placeholder="Email address" ng-model="subscriber.email" required />
|
||||
</div>
|
||||
|
||||
<input type="hidden" ng-model="subscriber.content_type" ng-init="subscriber.content_type='12'" value="12" />
|
||||
|
||||
<input type="hidden" ng-model="subscriber.object_id" ng-init="subscriber.object_id='3143'" value="3143" />
|
||||
<input class="btn btn-default" type="submit" ng-disabled="subscriberForm.$invalid" value="Create alert" />
|
||||
</form>
|
||||
<div ng-show="showSubscribeSuccess">Successfully subscribed to our jobs email!</div>
|
||||
<div ng-show="showSubscribeError">
|
||||
Failed to subscribe to job email. Please try again later or contact us on <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="02717772726d707642686d607b6e6d6c2c616d6f">[email protected]</a>
|
||||
</div>
|
||||
<button class="btn btn-link subscribe-close" type="button" ng-click="showSubscribeForm=false">
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input-group search-job">
|
||||
<input type="text" class="form-control job-search" placeholder="Search for job title and/or location" ng-model="query.text">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default search-btn" type="button">
|
||||
<i class="glyphicon glyphicon-search"></i>
|
||||
</button>
|
||||
<button class="btn btn-success subscribe-btn" type="button" ng-click="showSubscribeForm=true">
|
||||
Subscribe to jobs
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
<div class="filters">
|
||||
<div class="select company-select" ng-show="is_company_group" ng-cloak>
|
||||
<select ng-model="query.company" aria-label='Company' ng-options="comp for comp in companies">
|
||||
<option value="">All companies</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select categories-select">
|
||||
<select ng-model="query.categories" aria-label='Category' ng-options="cat for cat in categories">
|
||||
<option class="option-all" value="">
|
||||
<span class="placeholder">Show all</span>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select departments-select">
|
||||
<select ng-model="query.departments" aria-label='Department' ng-options="dept for dept in departments">
|
||||
<option class="option-all" value="">
|
||||
<span class="placeholder">Show all</span>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select experience-select">
|
||||
<select ng-model="query.experience" aria-label='Experience' ng-options="exp for exp in experiences">
|
||||
<option value="">All levels</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select function-select">
|
||||
<select ng-model="query.function" aria-label='Functions' ng-options="func for func in functions">
|
||||
<option value="">All functions</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select language-select">
|
||||
<select ng-model="query.language" aria-label='Language' ng-options="lang for lang in languages">
|
||||
<option class="option-all" value="">
|
||||
<span class="placeholder">Show all</span>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div ng-repeat="(layerName, layerOptions) in availableLayers" class="select {$ layernameToClass(layerName) $}-select" style="margin-right: 3px">
|
||||
<select ng-model="query[layerName]" aria-label="{$ layernameToLabel(layerName) $}" ng-options="layers for layers in layerOptions">
|
||||
<option class="option-all" value="">
|
||||
<span class="placeholder">Show all</span>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select workspace-select">
|
||||
<select ng-model="query.workspace" aria-label='Workspace type' ng-options="spaces for spaces in workspaces">
|
||||
<option class="option-all" value="">
|
||||
<span class="placeholder">Show all</span>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select employment_type-select">
|
||||
<select ng-model="query.employment_type" aria-label='employment type' ng-options="employment for employment in employment_types">
|
||||
<option class="option-all" value="">
|
||||
<span class="placeholder">Show all</span>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select location-select">
|
||||
<select ng-model="query.locations" aria-label='location' ng-options="loc for loc in locations">
|
||||
<option value="">Everywhere</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="job-wrapper">
|
||||
<a id="job-{$ job.id $}" class="company-{$ job.company_id $}" ng-class="job.klass" ng-repeat="job in pagedJobs[currentPage]" ng-show="pagedJobs.length" ng-cloak href="https://emp.jobylon.com{$ job.url $}" target="_blank" rel="noopener">
|
||||
<div class="job">
|
||||
<img ng-src="{$ job.logo $}" ng-show="is_company_group" alt="">
|
||||
<p class="title">{$ job.title $}</p>
|
||||
<p class="text-muted job-details">
|
||||
<small class="job-company" ng-show="is_company_group"><strong>{$ job.company $}</strong></small>
|
||||
<small class="separator separator-company" ng-show="is_company_group">|</small>
|
||||
<small class="job-location">{$ job.locations_text $}</small>
|
||||
<small class="separator separator-location" ng-show="job.locations_text">|</small>
|
||||
<small class="job-function">{$ job.function $}</small>
|
||||
<small class="job-categories" ng-repeat="category in job.categories">
|
||||
<small class="separator separator-categories">|</small>
|
||||
{$ category $}
|
||||
</small>
|
||||
<small class="job-departments" ng-repeat="department in job.departments">
|
||||
<small class="separator separator-departments">|</small>
|
||||
{$ department $}
|
||||
</small>
|
||||
<small ng-repeat="(layerDimension, layerOptions) in job.layers" class="job-{$ layernameToClass(layerDimension) $}">
|
||||
<span ng-repeat="option in layerOptions">
|
||||
<small class="separator separator-{$ layernameToClass(layerDimension) $}">|</small>
|
||||
{$ option $}
|
||||
</span>
|
||||
</small>
|
||||
<small class="job-workspace">
|
||||
<small class="separator separator-workspace">|</small>
|
||||
{$ job.workspace $}
|
||||
</small>
|
||||
<small class="job-employment_type">
|
||||
<small class="separator separator-employment_type">|</small>
|
||||
{$ job.employment_type $}
|
||||
</small>
|
||||
<small class="separator separator-language" ng-show="job.language">|</small>
|
||||
<small class="job-language">{$ job.language $}</small>
|
||||
<small class="separator separator-published_date" ng-show="job.published_date">|</small>
|
||||
<small class="job-published_date" ng-show="job.published_date">{$ job.published_date $}</small>
|
||||
<small class="separator separator-to_date" ng-show="job.to_date">|</small>
|
||||
<small class="job-to_date" ng-show="job.to_date">{$ job.to_date $}</small>
|
||||
</p>
|
||||
<p class="job-summary">{$ job.summary $}</p>
|
||||
</div>
|
||||
</a>
|
||||
<p class="text-muted text-center" ng-hide="pagedJobs.length" style="margin:30px 0;">
|
||||
<span class="placeholder">No jobs found</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<ul class="pagination pagination-sm">
|
||||
<li ng-class="{disabled: currentPage == 0}">
|
||||
<a href="#" ng-click="prevPage()">«</a>
|
||||
</li>
|
||||
<li ng-repeat="n in range(pagedJobs.length)" ng-class="{active: n == currentPage}">
|
||||
<a href="#" ng-click="setPage()" ng-bind="n + 1"></a>
|
||||
</li>
|
||||
<li ng-class="{disabled: currentPage >= pagedJobs.length - 1}">
|
||||
<a href="#" ng-click="nextPage()">»</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>
|
||||
<small>
|
||||
Powered by
|
||||
<a href="http://www.jobylon.com" target="_blank" rel="noopener">
|
||||
<strong>Jobylon</strong>
|
||||
</a>
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script src="https://static-eu.jobylon.com/js/bower_components/jquery/jquery.min.397754ba49e9.js"></script>
|
||||
<script src="https://static-eu.jobylon.com/js/vendor/bootstrap/3.2.0/js/bootstrap.min.abda843684d0.js"></script>
|
||||
<script>
|
||||
if (typeof JBL === "undefined" || JBL === null) {
|
||||
window.JBL = {};
|
||||
}
|
||||
JBL.embed_v2 = {};
|
||||
|
||||
JBL.embed_v2['is_company_group'] = false;
|
||||
|
||||
JBL.embed_v2['companies'] = [
|
||||
|
||||
'Einride',
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['categories'] = [
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['departments'] = [
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['experiences'] = [
|
||||
|
||||
'Not Applicable',
|
||||
|
||||
'Experienced',
|
||||
|
||||
'Mid level',
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['functions'] = [
|
||||
|
||||
'All functions',
|
||||
|
||||
'Project Management',
|
||||
|
||||
'Operations',
|
||||
|
||||
'Engineering',
|
||||
|
||||
'Purchasing',
|
||||
|
||||
'Logistics \u0026 Transportation',
|
||||
|
||||
'Software Development',
|
||||
|
||||
'Sales \u0026 Business Development',
|
||||
|
||||
'Security \u0026 Protection',
|
||||
|
||||
'Data/IT',
|
||||
|
||||
'Accounting \u0026 Finance',
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['employment_types'] = [
|
||||
|
||||
'Not Applicable',
|
||||
|
||||
'Full\u002Dtime',
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['languages'] = [
|
||||
|
||||
'English',
|
||||
|
||||
];
|
||||
|
||||
|
||||
JBL.embed_v2['layer_headers'] = {};
|
||||
|
||||
JBL.embed_v2.layer_headers[1] = 'Work type';
|
||||
|
||||
JBL.embed_v2.layer_headers[2] = 'Business unit';
|
||||
|
||||
JBL.embed_v2.layer_headers[3] = 'Department';
|
||||
|
||||
|
||||
JBL.embed_v2['availableLayers'] = {}
|
||||
|
||||
JBL.embed_v2.availableLayers['layers_1'] = [
|
||||
|
||||
'Full\u002Dtime',
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2.availableLayers['layers_2'] = [
|
||||
|
||||
'Autonomous Technologies',
|
||||
|
||||
'Central Function',
|
||||
|
||||
'Electric Mobility',
|
||||
|
||||
'Energy \u0026 Charging Infrastructure',
|
||||
|
||||
'Uncategorized',
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2.availableLayers['layers_3'] = [
|
||||
|
||||
'AT \u002D Autonomous Driving Software',
|
||||
|
||||
'AT \u002D Autonomous Vehicles',
|
||||
|
||||
'AT \u002D Operations',
|
||||
|
||||
'AT \u002D Procurement \u0026 Supply Chain Management',
|
||||
|
||||
'CF \u002D Central Functions',
|
||||
|
||||
'CF \u002D Finance',
|
||||
|
||||
'E\u0026CI \u002D Central Operations',
|
||||
|
||||
'EM \u002D Central Commercial',
|
||||
|
||||
'EM \u002D EMEA / Central Operations',
|
||||
|
||||
'EM \u002D North America Operations',
|
||||
|
||||
'EM \u002D Tech Platform',
|
||||
|
||||
];
|
||||
|
||||
|
||||
JBL.embed_v2['locations'] = [
|
||||
|
||||
'Stockholm',
|
||||
|
||||
'Austin',
|
||||
|
||||
'Gothenburg',
|
||||
|
||||
'Houston',
|
||||
|
||||
'Dallas',
|
||||
|
||||
'Atlanta',
|
||||
|
||||
'Colton',
|
||||
|
||||
'Commerce',
|
||||
|
||||
'Washington',
|
||||
|
||||
'Las Vegas',
|
||||
|
||||
'Chicago',
|
||||
|
||||
'Amsterdam',
|
||||
|
||||
'Rotterdam',
|
||||
|
||||
'Utrecht',
|
||||
|
||||
'The Hague',
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['workspaces'] = [
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'On\u002Dsite',
|
||||
|
||||
'On\u002Dsite',
|
||||
|
||||
'On\u002Dsite',
|
||||
|
||||
'Remote',
|
||||
|
||||
'On\u002Dsite',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'On\u002Dsite',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'On\u002Dsite',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'On\u002Dsite',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'On\u002Dsite',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'On\u002Dsite',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
'On\u002Dsite',
|
||||
|
||||
'Remote',
|
||||
|
||||
'Hybrid',
|
||||
|
||||
];
|
||||
|
||||
JBL.embed_v2['jobs'] = [
|
||||
|
||||
|
||||
{
|
||||
id: '385191',
|
||||
url: '/jobs/385191-einride-financial-controller/',
|
||||
title: 'Financial Controller',
|
||||
company: 'Einride',
|
||||
company_id: '3143',
|
||||
logo: 'https://media-eu.jobylon.com/CACHE/companies/company-logo/einride/einride-logo.b7b27376/225a769d66e3a22deb9c40d740b6a944.jpg',
|
||||
klass: {
|
||||
'job-id-385191': true,
|
||||
'job-lang-en': true,
|
||||
'experience-id-3': true,
|
||||
'function-id-40': true,
|
||||
'internal': false,
|
||||
|
||||
|
||||
|
||||
|
||||
'layopt-id-53836': true,
|
||||
|
||||
|
||||
|
||||
'layopt-id-54041': true,
|
||||
|
||||
|
||||
|
||||
'layopt-id-55913': true,
|
||||
|
||||
|
||||
},
|
||||
layers: {
|
||||
|
||||
'layers_1': [
|
||||
|
||||
'Full\u002Dtime',
|
||||
|
||||
],
|
||||
|
||||
'layers_2': [
|
||||
|
||||
'Central Function',
|
||||
|
||||
],
|
||||
|
||||
'layers_3': [
|
||||
|
||||
'CF \u002D Finance',
|
||||
|
||||
],
|
||||
|
||||
},
|
||||
|
||||
'layers_1': [
|
||||
|
||||
'Full\u002Dtime',
|
||||
|
||||
],
|
||||
|
||||
'layers_2': [
|
||||
|
||||
'Central Function',
|
||||
|
||||
],
|
||||
|
||||
'layers_3': [
|
||||
|
||||
'CF \u002D Finance',
|
||||
|
||||
],
|
||||
|
||||
|
||||
|
||||
locations: [
|
||||
|
||||
|
||||
'Stockholm',
|
||||
|
||||
|
||||
],
|
||||
locations_text: 'Stockholm',
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
workspace: 'Hybrid',
|
||||
|
||||
experience: 'Experienced',
|
||||
employment_type: 'Full\u002Dtime',
|
||||
function: 'Accounting \u0026 Finance',
|
||||
language: 'English',
|
||||
summary: 'None',
|
||||
to_date: '',
|
||||
published_date: 'Sept. 25, 2026',
|
||||
is_internal: false
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
id: '384238',
|
||||
url: '/jobs/384238-einride-cdl-driver-recruiter/',
|
||||
title: 'CDL Driver Recruiter',
|
||||
company: 'Einride',
|
||||
company_id: '3143',
|
||||
logo: 'https://media-eu.jobylon.com/CACHE/companies/company-logo/einride/einride-logo.b7b27376/225a769d66e3a22deb9c40d740b6a944.jpg',
|
||||
klass: {
|
||||
'job-id-384238': true,
|
||||
'job-lang-en': true,
|
||||
'experience-id-2': true,
|
||||
'function-id-66': true,
|
||||
'internal': false,
|
||||
|
||||
|
||||
|
||||
|
||||
'layopt-id-53836': true,
|
||||
|
||||
|
||||
|
||||
'layopt-id-54089': true,
|
||||
|
||||
|
||||
},
|
||||
layers: {
|
||||
|
||||
'layers_1': [
|
||||
|
||||
'Full\u002Dtime',
|
||||
|
||||
],
|
||||
|
||||
'layers_2': [
|
||||
|
||||
'Uncategorized',
|
||||
|
||||
],
|
||||
|
||||
},
|
||||
|
||||
'layers_1': [
|
||||
|
||||
'Full\u002Dtime',
|
||||
|
||||
],
|
||||
|
||||
'layers_2': [
|
||||
|
||||
'Uncategorized',
|
||||
|
||||
],
|
||||
|
||||
|
||||
|
||||
locations: [
|
||||
|
||||
|
||||
'Houston',
|
||||
|
||||
|
||||
|
||||
'Dallas',
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'Atlanta',
|
||||
|
||||
|
||||
],
|
||||
locations_text: 'Houston +3 more',
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
workspace: 'Hybrid',
|
||||
|
||||
experience: 'Mid level',
|
||||
employment_type: 'Full\u002Dtime',
|
||||
function: 'All functions',
|
||||
language: 'English',
|
||||
summary: 'None',
|
||||
to_date: '',
|
||||
published_date: 'Sept. 22, 2026',
|
||||
is_internal: false
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
id: '382124',
|
||||
url: '/jobs/382124-einride-head-of-government-affairs/',
|
||||
title: 'Head of Government Affairs',
|
||||
company: 'Einride',
|
||||
company_id: '3143',
|
||||
logo: 'https://media-eu.jobylon.com/CACHE/companies/company-logo/einride/einride-logo.b7b27376/225a769d66e3a22deb9c40d740b6a944.jpg',
|
||||
klass: {
|
||||
'job-id-382124': true,
|
||||
'job-lang-en': true,
|
||||
'experience-id-4': true,
|
||||
'function-id-66': true,
|
||||
'internal': false,
|
||||
|
||||
|
||||
|
||||
|
||||
'layopt-id-53836': true,
|
||||
|
||||
|
||||
|
||||
'layopt-id-54041': true,
|
||||
|
||||
|
||||
|
||||
'layopt-id-55914': true,
|
||||
|
||||
|
||||
},
|
||||
layers: {
|
||||
|
||||
'layers_1': [
|
||||
|
||||
'Full\u002Dtime',
|
||||
|
||||
],
|
||||
|
||||
'layers_2': [
|
||||
|
||||
'Central Function',
|
||||
|
||||
],
|
||||
|
||||
'layers_3': [
|
||||
|
||||
'CF \u002D Central Functions',
|
||||
|
||||
],
|
||||
|
||||
},
|
||||
|
||||
'layers_1': [
|
||||
|
||||
'Full\u002Dtime',
|
||||
|
||||
],
|
||||
|
||||
'layers_2': [
|
||||
|
||||
'Central Function',
|
||||
|
||||
],
|
||||
|
||||
'layers_3': [
|
||||
|
||||
'CF \u002D Central Functions',
|
||||
|
||||
],
|
||||
|
||||
|
||||
|
||||
locations: [
|
||||
|
||||
|
||||
'Washington',
|
||||
|
||||
|
||||
],
|
||||
locations_text: 'Washington',
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
workspace: 'Remote',
|
||||
|
||||
experience: 'Not Applicable',
|
||||
employment_type: 'Not Applicable',
|
||||
function: 'All functions',
|
||||
language: 'English',
|
||||
summary: 'None',
|
||||
to_date: '',
|
||||
published_date: 'Sept. 10, 2026',
|
||||
is_internal: false
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
id: '380347',
|
||||
url: '/jobs/380347-einride-environmental-health-safety-manager/',
|
||||
title: 'Environmental Health \u0026 Safety Manager',
|
||||
company: 'Einride',
|
||||
company_id: '3143',
|
||||
logo: 'https://media-eu.jobylon.com/CACHE/companies/company-logo/einride/einride-logo.b7b27376/225a769d66e3a22deb9c40d740b6a944.jpg',
|
||||
klass: {
|
||||
'job-id-380347': true,
|
||||
'job-lang-en': true,
|
||||
'experience-id-4': true,
|
||||
'function-id-66': true,
|
||||
'internal': false,
|
||||
|
||||
|
||||
|
||||
|
||||
'layopt-id-53836': true,
|
||||
|
||||
|
||||
|
||||
'layopt-id-54089': true,
|
||||
|
||||
|
||||
},
|
||||
layers: {
|
||||
|
||||
'layers_1': [
|
||||
|
||||
'Full\u002Dtime',
|
||||
|
||||
],
|
||||
|
||||
'layers_2': [
|
||||
|
||||
'Uncategorized',
|
||||
|
||||
],
|
||||
|
||||
},
|
||||
|
||||
'layers_1': [
|
||||
|
||||
'Full\u002Dtime',
|
||||
|
||||
],
|
||||
|
||||
'layers_2': [
|
||||
|
||||
'Uncategorized',
|
||||
|
||||
],
|
||||
|
||||
|
||||
|
||||
locations: [
|
||||
|
||||
|
||||
'Dallas',
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'Las Vegas',
|
||||
|
||||
|
||||
|
||||
'Houston',
|
||||
|
||||
|
||||
],
|
||||
locations_text: 'Dallas +3 more',
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
experience: 'Not Applicable',
|
||||
employment_type: 'Not Applicable',
|
||||
function: 'All functions',
|
||||
language: 'English',
|
||||
summary: 'None',
|
||||
to_date: '',
|
||||
published_date: 'Sept. 4, 2026',
|
||||
is_internal: false
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
id: '382860',
|
||||
url: '/jobs/382860-einride-regional-planner/',
|
||||
title: 'Regional Planner',
|
||||
company: 'Einride',
|
||||
company_id: '3143',
|
||||
logo: 'https://media-eu.jobylon.com/CACHE/companies/company-logo/einride/einride-logo.b7b27376/225a769d66e3a22deb9c40d740b6a944.jpg',
|
||||
klass: {
|
||||
'job-id-382860': true,
|
||||
'job-lang-en': true,
|
||||
'experience-id-2': true,
|
||||
'function-id-53': true,
|
||||
'internal': false,
|
||||
|
||||
|
||||
|
||||
|
||||
'layopt-id-53836': true,
|
||||
|
||||
|
||||
|
||||
'layopt-id-55904': true,
|
||||
|
||||
|
||||
|
||||
'layopt-id-54051': true,
|
||||
|
||||
|
||||
},
|
||||
layers: {
|
||||
|
||||
'layers_1': [
|
||||
|
||||
'Full\u002Dtime',
|
||||
|
||||
],
|
||||
|
||||
'layers_2': [
|
||||
|
||||
'Electric Mobility',
|
||||
|
||||
],
|
||||
|
||||
'layers_3': [
|
||||
|
||||
'EM \u002D North America Operations',
|
||||
|
||||
],
|
||||
|
||||
},
|
||||
|
||||
'layers_1': [
|
||||
|
||||
'Full\u002Dtime',
|
||||
|
||||
],
|
||||
|
||||
'layers_2': [
|
||||
|
||||
'Electric Mobility',
|
||||
|
||||
],
|
||||
|
||||
'layers_3': [
|
||||
|
||||
'EM \u002D North America Operations',
|
||||
|
||||
],
|
||||
|
||||
|
||||
|
||||
locations: [
|
||||
|
||||
|
||||
'Colton',
|
||||
|
||||
|
||||
|
||||
'Commerce',
|
||||
|
||||
|
||||
],
|
||||
locations_text: 'Colton +1 more',
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
workspace: 'On-site',
|
||||
|
||||
experience: 'Mid level',
|
||||
employment_type: 'Full\u002Dtime',
|
||||
function: 'Logistics \u0026 Transportation',
|
||||
language: 'English',
|
||||
summary: 'None',
|
||||
to_date: '',
|
||||
published_date: 'Sept. 15, 2026',
|
||||
is_internal: false
|
||||
},
|
||||
|
||||
];
|
||||
</script>
|
||||
<script src="https://static-eu.jobylon.com/js/embed-v2.min.d139cbc386fa.js"></script>
|
||||
<script>(function(){function c(){var b=a.contentDocument||(a.contentWindow&&a.contentWindow.document);if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a42ce6dbdfd2d2a2',t:'MTc5MDcwNDk3Nw=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body>
|
||||
</html>
|
||||
@@ -0,0 +1,199 @@
|
||||
"""The Jobylon host module against a saved embed page (Einride's board,
|
||||
trimmed to five roles, and Vipps MobilePay's empty one) and two saved role
|
||||
pages, 2026-09-29. No network."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
import httpx
|
||||
import pytest
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(ROOT))
|
||||
|
||||
from app.jobs.discover import boards_in # noqa: E402
|
||||
from plugins import ats, atshosts # noqa: E402
|
||||
from plugins.atshosts import jobylon # noqa: E402
|
||||
|
||||
FIXTURES = ROOT / "tests" / "fixtures" / "ats"
|
||||
BOARD = (FIXTURES / "jobylon.html").read_bytes()
|
||||
EMPTY = (FIXTURES / "jobylon-empty.html").read_bytes()
|
||||
FEED = "https://cdn.jobylon.com/jobs/companies/3143/embed/v2/"
|
||||
ROLE = "https://emp.jobylon.com/jobs/385191-einride-financial-controller/"
|
||||
ROLE_2 = "https://emp.jobylon.com/jobs/384238-einride-cdl-driver-recruiter/"
|
||||
|
||||
|
||||
def test_rows_come_from_the_embeds_literal() -> None:
|
||||
rows = jobylon.parse(BOARD, "3143")
|
||||
assert [r["source_id"] for r in rows] == ["385191", "384238", "382124", "380347", "382860"]
|
||||
first = rows[0]
|
||||
assert first["title"] == "Financial Controller"
|
||||
assert first["url"] == ROLE
|
||||
assert first["location"] == "Stockholm"
|
||||
assert first["department"] == "Accounting & Finance" # `&` read as `&`
|
||||
assert first["remote"] == "hybrid"
|
||||
assert first["description"] == "" and first["salary_text"] == ""
|
||||
# A day, with no time of day: the embed says "Sept. 25, 2026".
|
||||
assert first["posted"] is not None and first["posted"].isoformat() == \
|
||||
"2026-09-25T00:00:00+00:00"
|
||||
|
||||
|
||||
def test_places_department_and_remote_follow_the_embeds_words() -> None:
|
||||
rows = {r["source_id"]: r for r in jobylon.parse(BOARD, "3143")}
|
||||
assert rows["384238"]["location"] == "Houston; Dallas; Atlanta"
|
||||
assert rows["384238"]["department"] == "" # "All functions" names none
|
||||
assert rows["382124"]["remote"] == "remote"
|
||||
assert rows["382860"]["remote"] == "onsite"
|
||||
assert rows["380347"]["remote"] is None # a role with no workspace
|
||||
|
||||
|
||||
def test_an_empty_board_is_read_as_no_roles_and_another_page_is_not_a_board() -> None:
|
||||
assert jobylon.parse(EMPTY, "1056") == []
|
||||
with pytest.raises(ValueError, match="not a Jobylon board"):
|
||||
jobylon.parse(b"<html>Not found</html>", "1")
|
||||
|
||||
|
||||
def test_the_literal_reader_takes_quotes_escapes_and_trailing_commas() -> None:
|
||||
assert jobylon._json("[{id: 'a\\u0026b', 'x-y': true, list: ['it\\'s',], n: null,},]") == \
|
||||
[{"id": "a&b", "x-y": True, "list": ["it's"], "n": None}]
|
||||
body = b"JBL.embed_v2['jobs'] = [{title: 'A ] B', url: '/jobs/1-a/', id: '1'}];\n"
|
||||
assert [r["title"] for r in jobylon.parse(body, "9")] == ["A ] B"]
|
||||
|
||||
|
||||
def test_a_role_whose_link_is_not_a_role_page_is_skipped() -> None:
|
||||
body = (b"JBL.embed_v2['jobs'] = [{id: '1', title: 'A', url: 'https://evil.example/jobs/1/'},"
|
||||
b"{id: '2', title: 'B', url: '//evil.example/jobs/2/'},"
|
||||
b"{id: '3', title: 'C', url: '/companies/3/'},"
|
||||
b"{id: '4', title: 'D', url: '/jobs/4-d/'}];\n")
|
||||
assert [r["source_id"] for r in jobylon.parse(body, "9")] == ["4"]
|
||||
|
||||
|
||||
# ---------------------------------------------------------------- detail
|
||||
|
||||
def _get(pages: dict[str, bytes], asked: list[str] | None = None) -> Any:
|
||||
def get(url: str, *, method: str = "GET", payload: Any = None,
|
||||
headers: dict[str, str] | None = None) -> bytes:
|
||||
if asked is not None:
|
||||
asked.append(url)
|
||||
return pages[url]
|
||||
return get
|
||||
|
||||
|
||||
def test_detail_reads_the_role_pages_json_ld() -> None:
|
||||
rows = {r["source_id"]: r for r in jobylon.parse(BOARD, "3143")}
|
||||
asked: list[str] = []
|
||||
pages = {ROLE: (FIXTURES / "jobylon-role.html").read_bytes(),
|
||||
ROLE_2: (FIXTURES / "jobylon-role-2.html").read_bytes()}
|
||||
first = jobylon.detail(_get(pages, asked), "3143", rows["385191"])
|
||||
assert asked == [ROLE]
|
||||
assert set(first) <= set(ats.DETAIL_FIELDS)
|
||||
assert first["description"].startswith("Want to be part of transforming road freight?")
|
||||
assert "<" not in first["description"] and "world's leading" in first["description"]
|
||||
assert first["posted"] is not None and first["posted"].isoformat() == \
|
||||
"2026-09-25T13:59:14+00:00"
|
||||
assert first["location"] == "Stockholm, Sweden"
|
||||
# All four places, where the embed named three.
|
||||
second = jobylon.detail(_get(pages), "3143", rows["384238"])
|
||||
assert second["location"] == "Houston, TX, USA; Dallas, TX, USA; New Jersey, USA; Atlanta, GA, USA"
|
||||
|
||||
|
||||
def test_detail_without_a_job_posting_fails_the_read() -> None:
|
||||
row = jobylon.parse(BOARD, "3143")[0]
|
||||
with pytest.raises(ValueError, match="no JobPosting"):
|
||||
jobylon.detail(_get({ROLE: b"<html>nothing</html>"}), "3143", row)
|
||||
page = (b'<script type="application/ld+json">{"@type": "BreadcrumbList"}</script>'
|
||||
b'<script type="application/ld+json">not json</script>')
|
||||
with pytest.raises(ValueError, match="no JobPosting"):
|
||||
jobylon.detail(_get({ROLE: page}), "3143", row)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def web(monkeypatch: pytest.MonkeyPatch) -> dict[str, Any]:
|
||||
answers: dict[str, Any] = {}
|
||||
asked: list[str] = []
|
||||
|
||||
def fake_get(client, url, host, slug, *, method="GET", payload=None, headers=None,
|
||||
www_twin=False):
|
||||
asked.append(url)
|
||||
if not ats._allowed_host(host, slug)(httpx.URL(url).host):
|
||||
raise ats._Refused(url)
|
||||
answer = answers[url]
|
||||
if isinstance(answer, BaseException):
|
||||
raise answer
|
||||
return answer
|
||||
|
||||
monkeypatch.setattr(ats, "_get", fake_get)
|
||||
monkeypatch.setattr(ats, "PAGE_DELAY", 0)
|
||||
return {"answers": answers, "asked": asked}
|
||||
|
||||
|
||||
def test_the_board_is_one_request_and_each_role_is_read_once(web: dict[str, Any]) -> None:
|
||||
web["answers"] |= {FEED: BOARD, ROLE: (FIXTURES / "jobylon-role.html").read_bytes(),
|
||||
ROLE_2: (FIXTURES / "jobylon-role-2.html").read_bytes()}
|
||||
with httpx.Client() as client:
|
||||
rows, complete = ats._fetch_rows(client, "jobylon:3143")
|
||||
assert len(rows) == 5 and complete and web["asked"] == [FEED]
|
||||
# The three roles whose pages are not saved answer 404, which counts as read.
|
||||
for row in rows:
|
||||
web["answers"].setdefault(row["url"], httpx.HTTPStatusError(
|
||||
"404", request=httpx.Request("GET", row["url"]),
|
||||
response=httpx.Response(404, request=httpx.Request("GET", row["url"]))))
|
||||
filled, done, failed = ats._read_details(client, "jobylon:3143", rows, complete,
|
||||
set(), set())
|
||||
assert done == {f"jobylon:3143:{r['source_id']}" for r in rows} and not failed
|
||||
assert filled[0]["description"].startswith("Want to be part") and filled[0]["location"]
|
||||
assert filled[2]["description"] == ""
|
||||
|
||||
|
||||
def test_an_empty_board_is_complete(web: dict[str, Any]) -> None:
|
||||
web["answers"]["https://cdn.jobylon.com/jobs/companies/1056/embed/v2/"] = EMPTY
|
||||
with httpx.Client() as client:
|
||||
assert ats._fetch_rows(client, "jobylon:1056") == ([], True)
|
||||
|
||||
|
||||
# ------------------------------------------------------- slugs and hosts
|
||||
|
||||
def test_the_module_is_registered_as_a_feed_host_with_detail() -> None:
|
||||
assert atshosts.HOSTS["jobylon"] is jobylon and ats.HOSTS["jobylon"] == "Jobylon"
|
||||
assert jobylon.NAME == "jobylon" and not getattr(jobylon, "KEEP_CASE", False)
|
||||
assert hasattr(jobylon, "detail") and not hasattr(jobylon, "page")
|
||||
|
||||
|
||||
def test_the_urls_and_the_robots_page() -> None:
|
||||
assert jobylon.feed_url("3143") == FEED
|
||||
assert jobylon.careers_url("3143") == "https://emp.jobylon.com/companies/3143/"
|
||||
assert jobylon.robots_page("3143") == FEED
|
||||
allow = jobylon.allowed("3143")
|
||||
assert allow("cdn.jobylon.com") and allow("emp.jobylon.com") and allow("EMP.JOBYLON.COM")
|
||||
for host in ("jobylon.com", "feed.jobylon.com", "emp.jobylon.com.evil.example",
|
||||
"evil.example", "localhost"):
|
||||
assert not allow(host)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("slug", ["3143", "1056", "1"])
|
||||
def test_a_company_id_is_a_slug(slug: str) -> None:
|
||||
assert ats.is_known_target(f"jobylon:{slug}")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("slug", [
|
||||
"", "acme", "3143-einride", "31 43", "3143\n", " 3143", "3143 ", "3143/x", "3143?x",
|
||||
"3143#x", "a@b", "..", "%2f", "3143%2f", "3143:443", "localhost", "127.0.0.1",
|
||||
"1234567890123", "-1", "3.1",
|
||||
])
|
||||
def test_a_hostile_slug_is_refused(slug: str) -> None:
|
||||
assert not jobylon.slug_ok(slug)
|
||||
assert not ats.is_known_target(f"jobylon:{slug}")
|
||||
|
||||
|
||||
def test_discovery_finds_the_company_id() -> None:
|
||||
page = ('<a href="https://emp.jobylon.com/companies/1056-vipps-mobilepay/">Jobs</a>'
|
||||
'<script src="https://cdn.jobylon.com/jobs/companies/3143/embed/v2/?target=x"></script>'
|
||||
'<a href="https://emp.jobylon.com/jobs/385191-einride-financial-controller/">Role</a>'
|
||||
'<script>var jbl_company_id = 2222;</script>'
|
||||
"<script>jbl_company_id: '3333'</script>")
|
||||
assert [(h, s) for h, s, _ in boards_in(page)] == [
|
||||
("jobylon", "1056"), ("jobylon", "3143"), ("jobylon", "2222"), ("jobylon", "3333")]
|
||||
Reference in new issue
Block a user