diff --git a/CHANGELOG.md b/CHANGELOG.md index 95efdb8..01344d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.4.0] - 2020-08-12 + +### 🎨 Profile Redesign + +### Added + +- Message when a user is not found in the DB - [#67](https://github.com/alexlee-dev/gh-jobs/issues/67) +- Ability to Search from the OptionsPanel - [#43](https://github.com/alexlee-dev/gh-jobs/issues/43) +- `ModalState` - [#69](https://github.com/alexlee-dev/gh-jobs/issues/69) + +### Changed + +- Redesign Profile - [#47](https://github.com/alexlee-dev/gh-jobs/issues/47) +- Rename `created_at` to `listingDate` - [#50](https://github.com/alexlee-dev/gh-jobs/issues/50) + +### Removed + +### Fixed + +- LoadingIndicator stopping before page fully loaded - [#68](https://github.com/alexlee-dev/gh-jobs/issues/68) + ## [1.3.0] - 2020-08-06 ### 🙈 Hide Job diff --git a/cypress/fixtures/chicagoSearch.json b/cypress/fixtures/chicagoSearch.json index c20e496..a4c3fe6 100644 --- a/cypress/fixtures/chicagoSearch.json +++ b/cypress/fixtures/chicagoSearch.json @@ -3,7 +3,7 @@ "id": "b15e4b6a-3498-47fc-b222-62638b802260", "type": "Full Time", "url": "https://jobs.github.com/positions/b15e4b6a-3498-47fc-b222-62638b802260", - "created_at": "Tue Jul 07 20:57:46 UTC 2020", + "listingDate": "Tue Jul 07 20:57:46 UTC 2020", "company": "Cool Chicago Company 1", "company_url": "https://www.linkstechnology.com/", "location": "Schaumburg, IL", @@ -16,7 +16,7 @@ "id": "99a4987e-6b50-11e8-848b-794d9c4e4459", "type": "Full Time", "url": "https://jobs.github.com/positions/99a4987e-6b50-11e8-848b-794d9c4e4459", - "created_at": "Wed Nov 07 20:22:57 UTC 2018", + "listingDate": "Wed Nov 07 20:22:57 UTC 2018", "company": "Cool Chicago Company 2", "company_url": "https://worldhqinc.com/", "location": "Chicago", @@ -29,7 +29,7 @@ "id": "c307e4ca-d6a6-11e8-8f6e-f00ef74f7cb0", "type": "Full Time", "url": "https://jobs.github.com/positions/c307e4ca-d6a6-11e8-8f6e-f00ef74f7cb0", - "created_at": "Tue Oct 23 09:36:02 UTC 2018", + "listingDate": "Tue Oct 23 09:36:02 UTC 2018", "company": "Cool Chicago Company 3", "company_url": "https://www.squirro.com", "location": "Zurich", diff --git a/cypress/fixtures/jobDetails.json b/cypress/fixtures/jobDetails.json index 8fc8440..45b7a7d 100644 --- a/cypress/fixtures/jobDetails.json +++ b/cypress/fixtures/jobDetails.json @@ -2,7 +2,7 @@ "id": "f1884b46-ecb4-473c-81f5-08d9bf2ab3bb", "type": "Full Time", "url": "https://jobs.github.com/positions/f1884b46-ecb4-473c-81f5-08d9bf2ab3bb", - "created_at": "Thu Jul 16 12:03:19 UTC 2020", + "listingDate": "Thu Jul 16 12:03:19 UTC 2020", "company": "Cool Company", "company_url": "https://www.adswizz.com/", "location": "Bucharest", diff --git a/cypress/fixtures/jobs10.json b/cypress/fixtures/jobs10.json index 2ac803e..c57313d 100644 --- a/cypress/fixtures/jobs10.json +++ b/cypress/fixtures/jobs10.json @@ -3,7 +3,7 @@ "id": "f1884b46-ecb4-473c-81f5-08d9bf2ab3bb", "type": "Full Time", "url": "https://jobs.github.com/positions/f1884b46-ecb4-473c-81f5-08d9bf2ab3bb", - "created_at": "Thu Jul 16 12:03:19 UTC 2020", + "listingDate": "Thu Jul 16 12:03:19 UTC 2020", "company": "Cool Company", "company_url": "https://www.adswizz.com/", "location": "Bucharest", @@ -16,7 +16,7 @@ "id": "72de09f2-5bc6-489f-be90-3d38e505e20a", "type": "Full Time", "url": "https://jobs.github.com/positions/72de09f2-5bc6-489f-be90-3d38e505e20a", - "created_at": "Thu Jul 16 12:01:05 UTC 2020", + "listingDate": "Thu Jul 16 12:01:05 UTC 2020", "company": "Cool Company", "company_url": "https://www.adswizz.com/", "location": "Bucharest", @@ -29,7 +29,7 @@ "id": "cc20d9f2-0102-4785-8253-66093d3ca5c0", "type": "Full Time", "url": "https://jobs.github.com/positions/cc20d9f2-0102-4785-8253-66093d3ca5c0", - "created_at": "Thu Jul 16 02:02:01 UTC 2020", + "listingDate": "Thu Jul 16 02:02:01 UTC 2020", "company": "Koffie Labs", "company_url": "https://www.getkoffie.com/", "location": "NYC/Remote", @@ -42,7 +42,7 @@ "id": "65ed6c1f-e74e-47ed-a85f-126ef1071a47", "type": "Full Time", "url": "https://jobs.github.com/positions/65ed6c1f-e74e-47ed-a85f-126ef1071a47", - "created_at": "Wed Jul 15 14:35:57 UTC 2020", + "listingDate": "Wed Jul 15 14:35:57 UTC 2020", "company": "Avans Hogeschool", "company_url": "http://www.avans.nl", "location": "Breda", @@ -55,7 +55,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Full Time", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "OrbitalAds", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -68,7 +68,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -81,7 +81,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -94,7 +94,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -107,7 +107,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -120,7 +120,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", diff --git a/cypress/fixtures/jobs15.json b/cypress/fixtures/jobs15.json index 4288929..6c5bd6b 100644 --- a/cypress/fixtures/jobs15.json +++ b/cypress/fixtures/jobs15.json @@ -3,7 +3,7 @@ "id": "f1884b46-ecb4-473c-81f5-08d9bf2ab3bb", "type": "Full Time", "url": "https://jobs.github.com/positions/f1884b46-ecb4-473c-81f5-08d9bf2ab3bb", - "created_at": "Thu Jul 16 12:03:19 UTC 2020", + "listingDate": "Thu Jul 16 12:03:19 UTC 2020", "company": "Cool Company", "company_url": "https://www.adswizz.com/", "location": "Bucharest", @@ -16,7 +16,7 @@ "id": "72de09f2-5bc6-489f-be90-3d38e505e20a", "type": "Full Time", "url": "https://jobs.github.com/positions/72de09f2-5bc6-489f-be90-3d38e505e20a", - "created_at": "Thu Jul 16 12:01:05 UTC 2020", + "listingDate": "Thu Jul 16 12:01:05 UTC 2020", "company": "Cool Company", "company_url": "https://www.adswizz.com/", "location": "Bucharest", @@ -29,7 +29,7 @@ "id": "cc20d9f2-0102-4785-8253-66093d3ca5c0", "type": "Full Time", "url": "https://jobs.github.com/positions/cc20d9f2-0102-4785-8253-66093d3ca5c0", - "created_at": "Thu Jul 16 02:02:01 UTC 2020", + "listingDate": "Thu Jul 16 02:02:01 UTC 2020", "company": "Koffie Labs", "company_url": "https://www.getkoffie.com/", "location": "NYC/Remote", @@ -42,7 +42,7 @@ "id": "65ed6c1f-e74e-47ed-a85f-126ef1071a47", "type": "Full Time", "url": "https://jobs.github.com/positions/65ed6c1f-e74e-47ed-a85f-126ef1071a47", - "created_at": "Wed Jul 15 14:35:57 UTC 2020", + "listingDate": "Wed Jul 15 14:35:57 UTC 2020", "company": "Avans Hogeschool", "company_url": "http://www.avans.nl", "location": "Breda", @@ -55,7 +55,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Full Time", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "OrbitalAds", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -68,7 +68,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -81,7 +81,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -94,7 +94,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -107,7 +107,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -120,7 +120,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -133,7 +133,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -146,7 +146,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -159,7 +159,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -172,7 +172,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -185,7 +185,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", diff --git a/cypress/fixtures/jobs20.json b/cypress/fixtures/jobs20.json index 99576d7..9ff7ae3 100644 --- a/cypress/fixtures/jobs20.json +++ b/cypress/fixtures/jobs20.json @@ -3,7 +3,7 @@ "id": "f1884b46-ecb4-473c-81f5-08d9bf2ab3bb", "type": "Full Time", "url": "https://jobs.github.com/positions/f1884b46-ecb4-473c-81f5-08d9bf2ab3bb", - "created_at": "Thu Jul 16 12:03:19 UTC 2020", + "listingDate": "Thu Jul 16 12:03:19 UTC 2020", "company": "Cool Company", "company_url": "https://www.adswizz.com/", "location": "Bucharest", @@ -16,7 +16,7 @@ "id": "72de09f2-5bc6-489f-be90-3d38e505e20a", "type": "Full Time", "url": "https://jobs.github.com/positions/72de09f2-5bc6-489f-be90-3d38e505e20a", - "created_at": "Thu Jul 16 12:01:05 UTC 2020", + "listingDate": "Thu Jul 16 12:01:05 UTC 2020", "company": "Cool Company", "company_url": "https://www.adswizz.com/", "location": "Bucharest", @@ -29,7 +29,7 @@ "id": "cc20d9f2-0102-4785-8253-66093d3ca5c0", "type": "Full Time", "url": "https://jobs.github.com/positions/cc20d9f2-0102-4785-8253-66093d3ca5c0", - "created_at": "Thu Jul 16 02:02:01 UTC 2020", + "listingDate": "Thu Jul 16 02:02:01 UTC 2020", "company": "Koffie Labs", "company_url": "https://www.getkoffie.com/", "location": "NYC/Remote", @@ -42,7 +42,7 @@ "id": "65ed6c1f-e74e-47ed-a85f-126ef1071a47", "type": "Full Time", "url": "https://jobs.github.com/positions/65ed6c1f-e74e-47ed-a85f-126ef1071a47", - "created_at": "Wed Jul 15 14:35:57 UTC 2020", + "listingDate": "Wed Jul 15 14:35:57 UTC 2020", "company": "Avans Hogeschool", "company_url": "http://www.avans.nl", "location": "Breda", @@ -55,7 +55,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Full Time", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "OrbitalAds", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -68,7 +68,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -81,7 +81,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -94,7 +94,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -107,7 +107,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -120,7 +120,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -133,7 +133,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -146,7 +146,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -159,7 +159,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -172,7 +172,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -185,7 +185,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -198,7 +198,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -211,7 +211,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -224,7 +224,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -237,7 +237,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", @@ -250,7 +250,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Contract", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "Super Company", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", diff --git a/cypress/fixtures/jobs5.json b/cypress/fixtures/jobs5.json index 360ced4..0d00281 100644 --- a/cypress/fixtures/jobs5.json +++ b/cypress/fixtures/jobs5.json @@ -3,7 +3,7 @@ "id": "f1884b46-ecb4-473c-81f5-08d9bf2ab3bb", "type": "Full Time", "url": "https://jobs.github.com/positions/f1884b46-ecb4-473c-81f5-08d9bf2ab3bb", - "created_at": "Thu Jul 16 12:03:19 UTC 2020", + "listingDate": "Thu Jul 16 12:03:19 UTC 2020", "company": "Cool Company", "company_url": "https://www.adswizz.com/", "location": "Bucharest", @@ -16,7 +16,7 @@ "id": "72de09f2-5bc6-489f-be90-3d38e505e20a", "type": "Full Time", "url": "https://jobs.github.com/positions/72de09f2-5bc6-489f-be90-3d38e505e20a", - "created_at": "Thu Jul 16 12:01:05 UTC 2020", + "listingDate": "Thu Jul 16 12:01:05 UTC 2020", "company": "Cool Company", "company_url": "https://www.adswizz.com/", "location": "Bucharest", @@ -29,7 +29,7 @@ "id": "cc20d9f2-0102-4785-8253-66093d3ca5c0", "type": "Full Time", "url": "https://jobs.github.com/positions/cc20d9f2-0102-4785-8253-66093d3ca5c0", - "created_at": "Thu Jul 16 02:02:01 UTC 2020", + "listingDate": "Thu Jul 16 02:02:01 UTC 2020", "company": "Koffie Labs", "company_url": "https://www.getkoffie.com/", "location": "NYC/Remote", @@ -42,7 +42,7 @@ "id": "65ed6c1f-e74e-47ed-a85f-126ef1071a47", "type": "Full Time", "url": "https://jobs.github.com/positions/65ed6c1f-e74e-47ed-a85f-126ef1071a47", - "created_at": "Wed Jul 15 14:35:57 UTC 2020", + "listingDate": "Wed Jul 15 14:35:57 UTC 2020", "company": "Avans Hogeschool", "company_url": "http://www.avans.nl", "location": "Breda", @@ -55,7 +55,7 @@ "id": "285aa472-990f-418d-b376-e03c27f48d17", "type": "Full Time", "url": "https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at": "Wed Jul 15 14:22:21 UTC 2020", + "listingDate": "Wed Jul 15 14:22:21 UTC 2020", "company": "OrbitalAds", "company_url": "https://orbitalads.com", "location": "Madrid (Spain)", diff --git a/cypress/fixtures/jobs50.json b/cypress/fixtures/jobs50.json index 88b807d..e8b9e94 100644 --- a/cypress/fixtures/jobs50.json +++ b/cypress/fixtures/jobs50.json @@ -3,7 +3,7 @@ "id":"f1884b46-ecb4-473c-81f5-08d9bf2ab3bb", "type":"Full Time", "url":"https://jobs.github.com/positions/f1884b46-ecb4-473c-81f5-08d9bf2ab3bb", - "created_at":"Thu Jul 16 12:03:19 UTC 2020", + "listingDate":"Thu Jul 16 12:03:19 UTC 2020", "company":"Cool Company", "company_url":"https://www.adswizz.com/", "location":"Bucharest", @@ -16,7 +16,7 @@ "id":"72de09f2-5bc6-489f-be90-3d38e505e20a", "type":"Full Time", "url":"https://jobs.github.com/positions/72de09f2-5bc6-489f-be90-3d38e505e20a", - "created_at":"Thu Jul 16 12:01:05 UTC 2020", + "listingDate":"Thu Jul 16 12:01:05 UTC 2020", "company":"Cool Company", "company_url":"https://www.adswizz.com/", "location":"Bucharest", @@ -29,7 +29,7 @@ "id":"cc20d9f2-0102-4785-8253-66093d3ca5c0", "type":"Full Time", "url":"https://jobs.github.com/positions/cc20d9f2-0102-4785-8253-66093d3ca5c0", - "created_at":"Thu Jul 16 02:02:01 UTC 2020", + "listingDate":"Thu Jul 16 02:02:01 UTC 2020", "company":"Koffie Labs", "company_url":"https://www.getkoffie.com/", "location":"NYC/Remote", @@ -42,7 +42,7 @@ "id":"65ed6c1f-e74e-47ed-a85f-126ef1071a47", "type":"Full Time", "url":"https://jobs.github.com/positions/65ed6c1f-e74e-47ed-a85f-126ef1071a47", - "created_at":"Wed Jul 15 14:35:57 UTC 2020", + "listingDate":"Wed Jul 15 14:35:57 UTC 2020", "company":"Avans Hogeschool", "company_url":"http://www.avans.nl", "location":"Breda", @@ -55,7 +55,7 @@ "id":"285aa472-990f-418d-b376-e03c27f48d17", "type":"Full Time", "url":"https://jobs.github.com/positions/285aa472-990f-418d-b376-e03c27f48d17", - "created_at":"Wed Jul 15 14:22:21 UTC 2020", + "listingDate":"Wed Jul 15 14:22:21 UTC 2020", "company":"OrbitalAds", "company_url":"https://orbitalads.com", "location":"Madrid (Spain)", @@ -68,7 +68,7 @@ "id":"11cbce13-e6cd-4c79-b904-d292b569b22f", "type":"Full Time", "url":"https://jobs.github.com/positions/11cbce13-e6cd-4c79-b904-d292b569b22f", - "created_at":"Wed Jul 15 12:17:30 UTC 2020", + "listingDate":"Wed Jul 15 12:17:30 UTC 2020", "company":"OpenPlay", "company_url":"http:", "location":"Santa Monica", @@ -81,7 +81,7 @@ "id":"c41512e4-5cf6-46db-b1a0-898c069b3cec", "type":"Full Time", "url":"https://jobs.github.com/positions/c41512e4-5cf6-46db-b1a0-898c069b3cec", - "created_at":"Wed Jul 15 10:10:04 UTC 2020", + "listingDate":"Wed Jul 15 10:10:04 UTC 2020", "company":"Future Plc", "company_url":"http:", "location":"Brno", @@ -94,7 +94,7 @@ "id":"ef8233e5-4064-4c2b-b8a4-7e0259c1e521", "type":"Full Time", "url":"https://jobs.github.com/positions/ef8233e5-4064-4c2b-b8a4-7e0259c1e521", - "created_at":"Tue Jul 14 15:54:37 UTC 2020", + "listingDate":"Tue Jul 14 15:54:37 UTC 2020", "company":"Kelsus Inc", "company_url":null, "location":"Argentina", @@ -107,7 +107,7 @@ "id":"478f76cf-7608-48a3-a07d-5f2281763349", "type":"Full Time", "url":"https://jobs.github.com/positions/478f76cf-7608-48a3-a07d-5f2281763349", - "created_at":"Tue Jul 14 12:01:35 UTC 2020", + "listingDate":"Tue Jul 14 12:01:35 UTC 2020", "company":"Microsoft Israel R\u0026D Center", "company_url":"http://www.microsoft.com", "location":"Tel-Aviv-Yafo", @@ -120,7 +120,7 @@ "id":"377a1ad3-eea3-42bd-846a-7beff0069797", "type":"Full Time", "url":"https://jobs.github.com/positions/377a1ad3-eea3-42bd-846a-7beff0069797", - "created_at":"Tue Jul 14 09:45:02 UTC 2020", + "listingDate":"Tue Jul 14 09:45:02 UTC 2020", "company":"api.video", "company_url":"https://jobs.api.video", "location":"Bordeaux", @@ -133,7 +133,7 @@ "id":"5903afaa-3fcd-440e-a6ee-fed215987718", "type":"Full Time", "url":"https://jobs.github.com/positions/5903afaa-3fcd-440e-a6ee-fed215987718", - "created_at":"Mon Jul 13 16:13:44 UTC 2020", + "listingDate":"Mon Jul 13 16:13:44 UTC 2020", "company":"Valimail", "company_url":"http://www.Valimail.com", "location":"Remote ", @@ -146,7 +146,7 @@ "id":"a34e33ec-d7b3-4b7f-a3c2-1bf6d91b576a", "type":"Full Time", "url":"https://jobs.github.com/positions/a34e33ec-d7b3-4b7f-a3c2-1bf6d91b576a", - "created_at":"Mon Jul 13 11:08:40 UTC 2020", + "listingDate":"Mon Jul 13 11:08:40 UTC 2020", "company":"neubau kompass AG", "company_url":"https://www.neubaukompass.de/", "location":"München", @@ -159,7 +159,7 @@ "id":"3c98aa7e-baf1-4e24-9b4a-4f34f0e06755", "type":"Full Time", "url":"https://jobs.github.com/positions/3c98aa7e-baf1-4e24-9b4a-4f34f0e06755", - "created_at":"Mon Jul 13 08:24:58 UTC 2020", + "listingDate":"Mon Jul 13 08:24:58 UTC 2020", "company":"Instrument Systems Optische Messtechnik GmbH", "company_url":"https://www.instrumentsystems.com/en/", "location":"München", @@ -172,7 +172,7 @@ "id":"7f482982-dec2-47df-bfe2-0cca7fb64464", "type":"Full Time", "url":"https://jobs.github.com/positions/7f482982-dec2-47df-bfe2-0cca7fb64464", - "created_at":"Mon Jul 13 08:21:13 UTC 2020", + "listingDate":"Mon Jul 13 08:21:13 UTC 2020", "company":"VoltStorage GmbH", "company_url":"https://voltstorage.com/", "location":"München", @@ -185,7 +185,7 @@ "id":"ca0b5423-240b-4979-9cab-b863e9a04f4a", "type":"Full Time", "url":"https://jobs.github.com/positions/ca0b5423-240b-4979-9cab-b863e9a04f4a", - "created_at":"Fri Jul 10 09:05:14 UTC 2020", + "listingDate":"Fri Jul 10 09:05:14 UTC 2020", "company":"Echobot Media Technologies GmbH", "company_url":"https://www.echobot.de/", "location":"Karlsruhe (Germany)", @@ -198,7 +198,7 @@ "id":"11b78361-0c51-42af-8e99-7eddf5f0a289", "type":"Full Time", "url":"https://jobs.github.com/positions/11b78361-0c51-42af-8e99-7eddf5f0a289", - "created_at":"Thu Jul 09 15:59:45 UTC 2020", + "listingDate":"Thu Jul 09 15:59:45 UTC 2020", "company":"ILA Capital", "company_url":"http://ilacapital.com", "location":"Remote", @@ -211,7 +211,7 @@ "id":"a728b871-ae77-4768-89b8-c271652062ad", "type":"Full Time", "url":"https://jobs.github.com/positions/a728b871-ae77-4768-89b8-c271652062ad", - "created_at":"Thu Jul 09 08:43:12 UTC 2020", + "listingDate":"Thu Jul 09 08:43:12 UTC 2020", "company":"Unc Inc", "company_url":"https://www.uncinc.nl", "location":"Amsterdam", @@ -224,7 +224,7 @@ "id":"4f42bd23-86c7-40a5-890e-6630567979fd", "type":"Full Time", "url":"https://jobs.github.com/positions/4f42bd23-86c7-40a5-890e-6630567979fd", - "created_at":"Wed Jul 08 20:12:44 UTC 2020", + "listingDate":"Wed Jul 08 20:12:44 UTC 2020", "company":"Rebilly", "company_url":"https://www.rebilly.com/", "location":"Remote", @@ -237,7 +237,7 @@ "id":"f236c93a-1bab-41a3-aef7-6845f2185acd", "type":"Full Time", "url":"https://jobs.github.com/positions/f236c93a-1bab-41a3-aef7-6845f2185acd", - "created_at":"Wed Jul 08 11:36:33 UTC 2020", + "listingDate":"Wed Jul 08 11:36:33 UTC 2020", "company":"Miele X", "company_url":"https://www.miele-x.com/jobs/head-of-channel-management-amazon/", "location":"Amsterdam", @@ -250,7 +250,7 @@ "id":"86c679b3-f4e8-468a-9104-a62a130d1ce4", "type":"Full Time", "url":"https://jobs.github.com/positions/86c679b3-f4e8-468a-9104-a62a130d1ce4", - "created_at":"Wed Jul 08 10:31:08 UTC 2020", + "listingDate":"Wed Jul 08 10:31:08 UTC 2020", "company":"InVision AG", "company_url":"https://www.ivx.com/jobs", "location":"Leipzig (Germany)", @@ -263,7 +263,7 @@ "id":"28663c1c-a2e1-4184-ae11-d52230324dc6", "type":"Full Time", "url":"https://jobs.github.com/positions/28663c1c-a2e1-4184-ae11-d52230324dc6", - "created_at":"Wed Jul 08 10:08:35 UTC 2020", + "listingDate":"Wed Jul 08 10:08:35 UTC 2020", "company":"InVision AG", "company_url":"https://www.ivx.com/jobs", "location":"Düsseldorf (Germany)", @@ -276,7 +276,7 @@ "id":"68d360da-a1a1-4ea5-9f7e-1aaca538dfb5", "type":"Full Time", "url":"https://jobs.github.com/positions/68d360da-a1a1-4ea5-9f7e-1aaca538dfb5", - "created_at":"Tue Jul 07 21:26:13 UTC 2020", + "listingDate":"Tue Jul 07 21:26:13 UTC 2020", "company":"Cloudrise", "company_url":"http://www.cloudrise.com", "location":"United States", @@ -289,7 +289,7 @@ "id":"369fd039-4745-4de4-8286-bc12f427fe1a", "type":"Full Time", "url":"https://jobs.github.com/positions/369fd039-4745-4de4-8286-bc12f427fe1a", - "created_at":"Mon Apr 27 16:28:09 UTC 2020", + "listingDate":"Mon Apr 27 16:28:09 UTC 2020", "company":"KBMax", "company_url":"https://kbmax.com", "location":"Remote", @@ -302,7 +302,7 @@ "id":"b15e4b6a-3498-47fc-b222-62638b802260", "type":"Full Time", "url":"https://jobs.github.com/positions/b15e4b6a-3498-47fc-b222-62638b802260", - "created_at":"Tue Jul 07 20:57:46 UTC 2020", + "listingDate":"Tue Jul 07 20:57:46 UTC 2020", "company":"Links Technology Solutions, Inc.", "company_url":"https://www.linkstechnology.com/", "location":"Schaumburg, IL", @@ -315,7 +315,7 @@ "id":"ecd9db33-f36a-4b07-8e41-b28113c55069", "type":"Full Time", "url":"https://jobs.github.com/positions/ecd9db33-f36a-4b07-8e41-b28113c55069", - "created_at":"Tue Jul 07 18:45:35 UTC 2020", + "listingDate":"Tue Jul 07 18:45:35 UTC 2020", "company":"TutorMe", "company_url":"https://tutorme.com", "location":"Los Angeles", @@ -328,7 +328,7 @@ "id":"017fb2de-083e-4680-a167-468469c0d0cc", "type":"Full Time", "url":"https://jobs.github.com/positions/017fb2de-083e-4680-a167-468469c0d0cc", - "created_at":"Tue Jul 07 18:38:15 UTC 2020", + "listingDate":"Tue Jul 07 18:38:15 UTC 2020", "company":"TutorMe", "company_url":"https://tutorme.com", "location":"Los Angeles", @@ -341,7 +341,7 @@ "id":"230263f8-14ad-423e-b139-e0aec091ba45", "type":"Full Time", "url":"https://jobs.github.com/positions/230263f8-14ad-423e-b139-e0aec091ba45", - "created_at":"Tue Jul 07 13:14:54 UTC 2020", + "listingDate":"Tue Jul 07 13:14:54 UTC 2020", "company":"InVision AG", "company_url":"https://www.ivx.com/jobs", "location":"Leipzig (Germany)", @@ -354,7 +354,7 @@ "id":"8078cedd-12de-4159-bf69-cf18902e899a", "type":"Full Time", "url":"https://jobs.github.com/positions/8078cedd-12de-4159-bf69-cf18902e899a", - "created_at":"Tue Jul 07 11:13:28 UTC 2020", + "listingDate":"Tue Jul 07 11:13:28 UTC 2020", "company":"NH1816 verzekeringen", "company_url":"http://www.nh1816.nl/", "location":"Oudkarspel", @@ -367,7 +367,7 @@ "id":"6e15057c-fc45-4c63-bdad-cdf0b89f105a", "type":"Full Time", "url":"https://jobs.github.com/positions/6e15057c-fc45-4c63-bdad-cdf0b89f105a", - "created_at":"Tue Jul 07 09:02:42 UTC 2020", + "listingDate":"Tue Jul 07 09:02:42 UTC 2020", "company":"Sonova Marketing GmbH\t", "company_url":"https://www.sonova.com", "location":"Berlin", @@ -380,7 +380,7 @@ "id":"de0cf30c-db0a-40f8-91c8-90c590fee1f2", "type":"Full Time", "url":"https://jobs.github.com/positions/de0cf30c-db0a-40f8-91c8-90c590fee1f2", - "created_at":"Tue Jul 07 08:46:36 UTC 2020", + "listingDate":"Tue Jul 07 08:46:36 UTC 2020", "company":"StudySmarter", "company_url":"https://www.studysmarter.de/", "location":"München", @@ -393,7 +393,7 @@ "id":"e9e632a7-c756-40c9-b1ca-c3eb5c7f9ce3", "type":"Full Time", "url":"https://jobs.github.com/positions/e9e632a7-c756-40c9-b1ca-c3eb5c7f9ce3", - "created_at":"Sat Aug 03 00:50:23 UTC 2019", + "listingDate":"Sat Aug 03 00:50:23 UTC 2019", "company":"Game Closure", "company_url":"http://gameclosure.com", "location":"San Francisco, Mountain View, Tokyo, Remote", @@ -406,7 +406,7 @@ "id":"ed19603f-c92a-408e-aea4-daff58b4e46e", "type":"Full Time", "url":"https://jobs.github.com/positions/ed19603f-c92a-408e-aea4-daff58b4e46e", - "created_at":"Mon Jul 06 21:56:54 UTC 2020", + "listingDate":"Mon Jul 06 21:56:54 UTC 2020", "company":"Tripoint Solutions, LLC", "company_url":"http://www.tripointsolutions.com/careers", "location":"Rockville, MD", @@ -419,7 +419,7 @@ "id":"6cfdc451-a7cc-4000-8e2c-1dc83646cf70", "type":"Full Time", "url":"https://jobs.github.com/positions/6cfdc451-a7cc-4000-8e2c-1dc83646cf70", - "created_at":"Mon Jul 06 17:04:40 UTC 2020", + "listingDate":"Mon Jul 06 17:04:40 UTC 2020", "company":"FlatWorld.Co", "company_url":"https://flatworld.co", "location":"EU-TimeZones (GMT+3 to GMT-2)", @@ -432,7 +432,7 @@ "id":"585ed8c9-b612-4a52-a937-1f1e46fed3ac", "type":"Full Time", "url":"https://jobs.github.com/positions/585ed8c9-b612-4a52-a937-1f1e46fed3ac", - "created_at":"Fri Jul 03 08:02:12 UTC 2020", + "listingDate":"Fri Jul 03 08:02:12 UTC 2020", "company":"Craft Courses Limited", "company_url":null, "location":"Pembrokeshire", @@ -445,7 +445,7 @@ "id":"bfda54c4-da1a-4487-a579-637f9c7a0ffb", "type":"Full Time", "url":"https://jobs.github.com/positions/bfda54c4-da1a-4487-a579-637f9c7a0ffb", - "created_at":"Thu Jul 02 22:24:18 UTC 2020", + "listingDate":"Thu Jul 02 22:24:18 UTC 2020", "company":"One More Cloud", "company_url":"http://bonsai.io", "location":"Remote", @@ -458,7 +458,7 @@ "id":"911a5212-129b-491f-95d4-f7eaa19bdefa", "type":"Full Time", "url":"https://jobs.github.com/positions/911a5212-129b-491f-95d4-f7eaa19bdefa", - "created_at":"Thu Jul 02 17:01:53 UTC 2020", + "listingDate":"Thu Jul 02 17:01:53 UTC 2020", "company":"Zappos.com", "company_url":"http://jobs.zappos.com", "location":"USA Remote", @@ -471,7 +471,7 @@ "id":"22098e20-4b3e-48fb-b109-d6dd72bddd70", "type":"Full Time", "url":"https://jobs.github.com/positions/22098e20-4b3e-48fb-b109-d6dd72bddd70", - "created_at":"Wed Jul 01 15:05:54 UTC 2020", + "listingDate":"Wed Jul 01 15:05:54 UTC 2020", "company":"Virtual Pricing Director", "company_url":"https://www.virtualpricingdirector.com/", "location":"UK", @@ -484,7 +484,7 @@ "id":"5ae75da5-fab6-41dd-8fc6-7c5e3b0ae5fe", "type":"Full Time", "url":"https://jobs.github.com/positions/5ae75da5-fab6-41dd-8fc6-7c5e3b0ae5fe", - "created_at":"Wed Jul 01 11:16:56 UTC 2020", + "listingDate":"Wed Jul 01 11:16:56 UTC 2020", "company":"Gothaer Digital GmbH", "company_url":"http://www.gothaer-digital.de", "location":"Cologne", @@ -497,7 +497,7 @@ "id":"a4a03e31-b069-421c-ad0d-14f10fd6a1d3", "type":"Full Time", "url":"https://jobs.github.com/positions/a4a03e31-b069-421c-ad0d-14f10fd6a1d3", - "created_at":"Tue Jun 30 18:48:52 UTC 2020", + "listingDate":"Tue Jun 30 18:48:52 UTC 2020", "company":"Epic", "company_url":"http://careers.epic.com", "location":"Madison, WI", @@ -510,7 +510,7 @@ "id":"cfb3dfc3-1626-4348-88d6-e885a93a28a2", "type":"Full Time", "url":"https://jobs.github.com/positions/cfb3dfc3-1626-4348-88d6-e885a93a28a2", - "created_at":"Tue Jun 30 15:17:35 UTC 2020", + "listingDate":"Tue Jun 30 15:17:35 UTC 2020", "company":"Altaml", "company_url":"http://www.altaml.com", "location":"Calgary", @@ -523,7 +523,7 @@ "id":"94df0e7f-ecdb-489d-b9a5-dda1b121816c", "type":"Full Time", "url":"https://jobs.github.com/positions/94df0e7f-ecdb-489d-b9a5-dda1b121816c", - "created_at":"Tue Jun 30 14:59:42 UTC 2020", + "listingDate":"Tue Jun 30 14:59:42 UTC 2020", "company":"HubTran", "company_url":"https://www.hubtran.com", "location":"USA Remote", @@ -536,7 +536,7 @@ "id":"db893e00-1e48-433d-8120-82326433e876", "type":"Full Time", "url":"https://jobs.github.com/positions/db893e00-1e48-433d-8120-82326433e876", - "created_at":"Tue Jun 30 14:50:59 UTC 2020", + "listingDate":"Tue Jun 30 14:50:59 UTC 2020", "company":"Hopkins", "company_url":"https://www.hopkins.law/", "location":"Berlin", @@ -549,7 +549,7 @@ "id":"f75f8690-c458-4d9e-bd37-10a660ddf712", "type":"Full Time", "url":"https://jobs.github.com/positions/f75f8690-c458-4d9e-bd37-10a660ddf712", - "created_at":"Tue Jun 30 14:00:28 UTC 2020", + "listingDate":"Tue Jun 30 14:00:28 UTC 2020", "company":"YourWork GmbH", "company_url":"http://www.yourwork.com", "location":"Erfurt", @@ -562,7 +562,7 @@ "id":"f1e47ec6-641c-4b4a-a38a-1a57e6af7c93", "type":"Full Time", "url":"https://jobs.github.com/positions/f1e47ec6-641c-4b4a-a38a-1a57e6af7c93", - "created_at":"Mon Jun 29 06:38:28 UTC 2020", + "listingDate":"Mon Jun 29 06:38:28 UTC 2020", "company":"InnoGames GmbH", "company_url":"https://www.innogames.com", "location":"Hamburg", @@ -575,7 +575,7 @@ "id":"8d090215-8f42-4b8d-8a27-44cca0394f68", "type":"Full Time", "url":"https://jobs.github.com/positions/8d090215-8f42-4b8d-8a27-44cca0394f68", - "created_at":"Sat Jun 27 06:33:39 UTC 2020", + "listingDate":"Sat Jun 27 06:33:39 UTC 2020", "company":"Bayforest Technologies", "company_url":null, "location":"London", @@ -588,7 +588,7 @@ "id":"988bf054-4955-4859-a642-062def8017cb", "type":"Full Time", "url":"https://jobs.github.com/positions/988bf054-4955-4859-a642-062def8017cb", - "created_at":"Fri Jun 26 21:02:23 UTC 2020", + "listingDate":"Fri Jun 26 21:02:23 UTC 2020", "company":"General Atomics", "company_url":"https://bit.ly/2ZeQYUq", "location":"Centennial, CO", @@ -601,7 +601,7 @@ "id":"35bca1a2-42d3-4f6c-93ab-efb76dbfaead", "type":"Full Time", "url":"https://jobs.github.com/positions/35bca1a2-42d3-4f6c-93ab-efb76dbfaead", - "created_at":"Fri Jun 26 21:00:36 UTC 2020", + "listingDate":"Fri Jun 26 21:00:36 UTC 2020", "company":"General Atomics", "company_url":"https://bit.ly/2ZeQYUq", "location":"Centennial, CO", @@ -614,7 +614,7 @@ "id":"c019304d-2472-4934-89e2-5e0a33d40226", "type":"Full Time", "url":"https://jobs.github.com/positions/c019304d-2472-4934-89e2-5e0a33d40226", - "created_at":"Fri Jun 26 20:57:54 UTC 2020", + "listingDate":"Fri Jun 26 20:57:54 UTC 2020", "company":"General Atomics", "company_url":"https://bit.ly/2ZeQYUq", "location":"Centennial, CO", @@ -627,7 +627,7 @@ "id":"3076f2fe-b421-4b0d-8876-b20c02322ba7", "type":"Full Time", "url":"https://jobs.github.com/positions/3076f2fe-b421-4b0d-8876-b20c02322ba7", - "created_at":"Fri Jun 26 20:54:58 UTC 2020", + "listingDate":"Fri Jun 26 20:54:58 UTC 2020", "company":"General Atomics", "company_url":"https://bit.ly/2ZeQYUq", "location":"Centennial, CO", @@ -640,7 +640,7 @@ "id":"69f7a578-6a8b-4df4-8088-fb8d94d33060", "type":"Full Time", "url":"https://jobs.github.com/positions/69f7a578-6a8b-4df4-8088-fb8d94d33060", - "created_at":"Fri Jun 26 20:50:03 UTC 2020", + "listingDate":"Fri Jun 26 20:50:03 UTC 2020", "company":"General Atomics", "company_url":"https://bit.ly/2ZeQYUq", "location":"Centennial, CO", diff --git a/cypress/fixtures/jobsSearch1.json b/cypress/fixtures/jobsSearch1.json index 762bf24..2a188f2 100644 --- a/cypress/fixtures/jobsSearch1.json +++ b/cypress/fixtures/jobsSearch1.json @@ -3,7 +3,7 @@ "id": 1, "type": "Contract", "url": "http://nbcnews.com/id/justo.html?ante=tellus&vestibulum=in&ante=sagittis&ipsum=dui&primis=vel&in=nisl&faucibus=duis&orci=ac&luctus=nibh&et=fusce&ultrices=lacus&posuere=purus&cubilia=aliquet&curae=at&duis=feugiat&faucibus=non&accumsan=pretium&odio=quis&curabitur=lectus&convallis=suspendisse&duis=potenti&consequat=in&dui=eleifend&nec=quam&nisi=a&volutpat=odio&eleifend=in&donec=hac&ut=habitasse&dolor=platea&morbi=dictumst&vel=maecenas&lectus=ut&in=massa&quam=quis&fringilla=augue&rhoncus=luctus&mauris=tincidunt&enim=nulla&leo=mollis", - "created_at": "2009-12-26T17:13:11Z", + "listingDate": "2009-12-26T17:13:11Z", "company": "Anderson LLC", "company_url": "https://deliciousdays.com/consequat/lectus/in.png?nisl=nibh&aenean=fusce&lectus=lacus&pellentesque=purus&eget=aliquet&nunc=at&donec=feugiat&quis=non&orci=pretium&eget=quis&orci=lectus&vehicula=suspendisse&condimentum=potenti&curabitur=in&in=eleifend&libero=quam&ut=a&massa=odio&volutpat=in&convallis=hac&morbi=habitasse&odio=platea&odio=dictumst&elementum=maecenas&eu=ut&interdum=massa&eu=quis&tincidunt=augue&in=luctus&leo=tincidunt&maecenas=nulla&pulvinar=mollis&lobortis=molestie&est=lorem&phasellus=quisque&sit=ut", "location": "Pennsylvania", @@ -16,7 +16,7 @@ "id": 2, "type": "Contract", "url": "https://posterous.com/et/ultrices/posuere/cubilia/curae/duis.json?nunc=non&purus=velit&phasellus=donec&in=diam&felis=neque&donec=vestibulum&semper=eget&sapien=vulputate&a=ut&libero=ultrices&nam=vel&dui=augue&proin=vestibulum&leo=ante&odio=ipsum&porttitor=primis&id=in&consequat=faucibus&in=orci&consequat=luctus&ut=et&nulla=ultrices&sed=posuere&accumsan=cubilia&felis=curae&ut=donec&at=pharetra&dolor=magna&quis=vestibulum&odio=aliquet&consequat=ultrices&varius=erat", - "created_at": "2019-10-01T13:09:54Z", + "listingDate": "2019-10-01T13:09:54Z", "company": "Herman-Kuhic", "company_url": "http://weather.com/eleifend/donec/ut/dolor/morbi.json?tellus=augue&nisi=aliquam&eu=erat&orci=volutpat&mauris=in&lacinia=congue&sapien=etiam&quis=justo&libero=etiam&nullam=pretium&sit=iaculis&amet=justo&turpis=in&elementum=hac&ligula=habitasse&vehicula=platea&consequat=dictumst&morbi=etiam&a=faucibus&ipsum=cursus&integer=urna&a=ut&nibh=tellus&in=nulla&quis=ut&justo=erat&maecenas=id&rhoncus=mauris&aliquam=vulputate&lacus=elementum&morbi=nullam&quis=varius&tortor=nulla&id=facilisi&nulla=cras&ultrices=non&aliquet=velit&maecenas=nec&leo=nisi&odio=vulputate&condimentum=nonummy&id=maecenas&luctus=tincidunt&nec=lacus&molestie=at&sed=velit&justo=vivamus&pellentesque=vel&viverra=nulla&pede=eget&ac=eros&diam=elementum&cras=pellentesque&pellentesque=quisque&volutpat=porta&dui=volutpat&maecenas=erat&tristique=quisque&est=erat&et=eros&tempus=viverra&semper=eget&est=congue&quam=eget&pharetra=semper&magna=rutrum&ac=nulla&consequat=nunc&metus=purus&sapien=phasellus&ut=in&nunc=felis&vestibulum=donec&ante=semper&ipsum=sapien&primis=a&in=libero&faucibus=nam&orci=dui&luctus=proin&et=leo&ultrices=odio&posuere=porttitor&cubilia=id&curae=consequat&mauris=in&viverra=consequat&diam=ut", "location": "California", @@ -29,7 +29,7 @@ "id": 3, "type": "Contract", "url": "https://craigslist.org/luctus/rutrum.png?vestibulum=elit&rutrum=proin&rutrum=risus&neque=praesent&aenean=lectus&auctor=vestibulum&gravida=quam&sem=sapien&praesent=varius&id=ut&massa=blandit&id=non&nisl=interdum&venenatis=in&lacinia=ante&aenean=vestibulum&sit=ante&amet=ipsum&justo=primis&morbi=in&ut=faucibus&odio=orci&cras=luctus&mi=et&pede=ultrices&malesuada=posuere&in=cubilia&imperdiet=curae&et=duis&commodo=faucibus&vulputate=accumsan&justo=odio&in=curabitur&blandit=convallis&ultrices=duis&enim=consequat&lorem=dui&ipsum=nec&dolor=nisi&sit=volutpat&amet=eleifend&consectetuer=donec&adipiscing=ut&elit=dolor&proin=morbi&interdum=vel&mauris=lectus&non=in&ligula=quam&pellentesque=fringilla&ultrices=rhoncus&phasellus=mauris&id=enim&sapien=leo&in=rhoncus&sapien=sed&iaculis=vestibulum&congue=sit&vivamus=amet&metus=cursus&arcu=id&adipiscing=turpis&molestie=integer&hendrerit=aliquet&at=massa&vulputate=id&vitae=lobortis&nisl=convallis&aenean=tortor&lectus=risus&pellentesque=dapibus&eget=augue&nunc=vel&donec=accumsan&quis=tellus&orci=nisi&eget=eu&orci=orci&vehicula=mauris&condimentum=lacinia&curabitur=sapien&in=quis&libero=libero&ut=nullam&massa=sit&volutpat=amet&convallis=turpis&morbi=elementum&odio=ligula&odio=vehicula&elementum=consequat&eu=morbi&interdum=a", - "created_at": "2013-03-11T15:13:15Z", + "listingDate": "2013-03-11T15:13:15Z", "company": "Howe-Becker", "company_url": "https://boston.com/orci/luctus/et/ultrices.jpg?condimentum=semper&neque=est&sapien=quam&placerat=pharetra&ante=magna&nulla=ac&justo=consequat&aliquam=metus&quis=sapien&turpis=ut&eget=nunc&elit=vestibulum&sodales=ante&scelerisque=ipsum&mauris=primis&sit=in&amet=faucibus&eros=orci&suspendisse=luctus&accumsan=et&tortor=ultrices&quis=posuere&turpis=cubilia&sed=curae&ante=mauris&vivamus=viverra&tortor=diam&duis=vitae&mattis=quam&egestas=suspendisse&metus=potenti&aenean=nullam&fermentum=porttitor&donec=lacus&ut=at&mauris=turpis&eget=donec&massa=posuere&tempor=metus&convallis=vitae&nulla=ipsum&neque=aliquam&libero=non&convallis=mauris&eget=morbi&eleifend=non&luctus=lectus&ultricies=aliquam&eu=sit&nibh=amet&quisque=diam&id=in&justo=magna&sit=bibendum&amet=imperdiet&sapien=nullam&dignissim=orci&vestibulum=pede&vestibulum=venenatis&ante=non&ipsum=sodales&primis=sed&in=tincidunt&faucibus=eu&orci=felis&luctus=fusce&et=posuere&ultrices=felis&posuere=sed&cubilia=lacus&curae=morbi&nulla=sem&dapibus=mauris&dolor=laoreet&vel=ut&est=rhoncus&donec=aliquet&odio=pulvinar&justo=sed&sollicitudin=nisl&ut=nunc&suscipit=rhoncus&a=dui&feugiat=vel&et=sem&eros=sed&vestibulum=sagittis&ac=nam&est=congue&lacinia=risus&nisi=semper&venenatis=porta&tristique=volutpat&fusce=quam", "location": "Oregon", @@ -42,7 +42,7 @@ "id": 4, "type": "Full Time", "url": "http://usa.gov/at/diam/nam/tristique/tortor/eu/pede.jsp?in=turpis&blandit=adipiscing&ultrices=lorem&enim=vitae&lorem=mattis&ipsum=nibh&dolor=ligula&sit=nec&amet=sem&consectetuer=duis&adipiscing=aliquam&elit=convallis&proin=nunc", - "created_at": "2000-12-20T22:53:44Z", + "listingDate": "2000-12-20T22:53:44Z", "company": "Wolff LLC", "company_url": "http://time.com/congue.jsp?pretium=turpis&iaculis=enim&justo=blandit&in=mi&hac=in&habitasse=porttitor&platea=pede&dictumst=justo&etiam=eu&faucibus=massa&cursus=donec&urna=dapibus&ut=duis&tellus=at&nulla=velit&ut=eu&erat=est&id=congue", "location": "Texas", @@ -55,7 +55,7 @@ "id": 5, "type": "Contract", "url": "http://yelp.com/lectus/aliquam/sit/amet/diam.png?orci=ante&mauris=vel&lacinia=ipsum&sapien=praesent&quis=blandit&libero=lacinia&nullam=erat&sit=vestibulum&amet=sed&turpis=magna&elementum=at&ligula=nunc&vehicula=commodo&consequat=placerat&morbi=praesent&a=blandit&ipsum=nam&integer=nulla&a=integer&nibh=pede&in=justo&quis=lacinia&justo=eget&maecenas=tincidunt&rhoncus=eget&aliquam=tempus&lacus=vel&morbi=pede&quis=morbi&tortor=porttitor&id=lorem&nulla=id&ultrices=ligula&aliquet=suspendisse&maecenas=ornare&leo=consequat&odio=lectus&condimentum=in&id=est&luctus=risus&nec=auctor&molestie=sed&sed=tristique&justo=in&pellentesque=tempus&viverra=sit&pede=amet&ac=sem&diam=fusce&cras=consequat&pellentesque=nulla&volutpat=nisl&dui=nunc&maecenas=nisl&tristique=duis&est=bibendum&et=felis&tempus=sed&semper=interdum&est=venenatis&quam=turpis&pharetra=enim&magna=blandit&ac=mi&consequat=in&metus=porttitor&sapien=pede&ut=justo&nunc=eu&vestibulum=massa&ante=donec&ipsum=dapibus&primis=duis&in=at&faucibus=velit&orci=eu&luctus=est&et=congue&ultrices=elementum&posuere=in&cubilia=hac&curae=habitasse", - "created_at": "2000-08-30T22:51:20Z", + "listingDate": "2000-08-30T22:51:20Z", "company": "Senger-Gerhold", "company_url": "http://yellowbook.com/nisl/nunc/rhoncus/dui.html?ipsum=cras&integer=non&a=velit&nibh=nec&in=nisi&quis=vulputate&justo=nonummy&maecenas=maecenas&rhoncus=tincidunt&aliquam=lacus&lacus=at&morbi=velit&quis=vivamus&tortor=vel&id=nulla&nulla=eget&ultrices=eros&aliquet=elementum&maecenas=pellentesque&leo=quisque&odio=porta&condimentum=volutpat&id=erat&luctus=quisque&nec=erat&molestie=eros&sed=viverra&justo=eget&pellentesque=congue&viverra=eget&pede=semper&ac=rutrum&diam=nulla&cras=nunc&pellentesque=purus&volutpat=phasellus&dui=in&maecenas=felis&tristique=donec&est=semper&et=sapien&tempus=a&semper=libero&est=nam&quam=dui&pharetra=proin&magna=leo&ac=odio&consequat=porttitor&metus=id&sapien=consequat&ut=in&nunc=consequat&vestibulum=ut&ante=nulla&ipsum=sed&primis=accumsan&in=felis&faucibus=ut&orci=at&luctus=dolor&et=quis&ultrices=odio&posuere=consequat&cubilia=varius&curae=integer&mauris=ac&viverra=leo&diam=pellentesque&vitae=ultrices", "location": "Texas", @@ -68,7 +68,7 @@ "id": 6, "type": "Contract", "url": "http://shinystat.com/ultricies/eu/nibh/quisque/id/justo.xml?at=nisl&turpis=duis&a=bibendum&pede=felis&posuere=sed&nonummy=interdum&integer=venenatis&non=turpis&velit=enim&donec=blandit&diam=mi&neque=in&vestibulum=porttitor&eget=pede&vulputate=justo&ut=eu&ultrices=massa&vel=donec&augue=dapibus&vestibulum=duis&ante=at&ipsum=velit&primis=eu&in=est&faucibus=congue&orci=elementum&luctus=in&et=hac&ultrices=habitasse&posuere=platea&cubilia=dictumst&curae=morbi&donec=vestibulum&pharetra=velit&magna=id&vestibulum=pretium&aliquet=iaculis&ultrices=diam&erat=erat&tortor=fermentum", - "created_at": "2017-12-17T08:44:18Z", + "listingDate": "2017-12-17T08:44:18Z", "company": "Zulauf, Reynolds and Green", "company_url": "http://cyberchimps.com/fusce/congue/diam/id.json?aliquam=nulla&non=tempus&mauris=vivamus&morbi=in&non=felis&lectus=eu&aliquam=sapien&sit=cursus&amet=vestibulum&diam=proin&in=eu&magna=mi&bibendum=nulla&imperdiet=ac&nullam=enim&orci=in&pede=tempor&venenatis=turpis&non=nec&sodales=euismod&sed=scelerisque&tincidunt=quam&eu=turpis&felis=adipiscing&fusce=lorem&posuere=vitae&felis=mattis&sed=nibh&lacus=ligula&morbi=nec&sem=sem&mauris=duis&laoreet=aliquam&ut=convallis&rhoncus=nunc&aliquet=proin&pulvinar=at&sed=turpis&nisl=a&nunc=pede&rhoncus=posuere&dui=nonummy&vel=integer&sem=non&sed=velit&sagittis=donec&nam=diam&congue=neque&risus=vestibulum&semper=eget&porta=vulputate&volutpat=ut&quam=ultrices&pede=vel&lobortis=augue&ligula=vestibulum&sit=ante&amet=ipsum&eleifend=primis&pede=in&libero=faucibus&quis=orci&orci=luctus&nullam=et&molestie=ultrices&nibh=posuere", "location": "New York", @@ -81,7 +81,7 @@ "id": 7, "type": "Full Time", "url": "http://reverbnation.com/luctus.js?viverra=eu&diam=magna&vitae=vulputate&quam=luctus&suspendisse=cum&potenti=sociis&nullam=natoque&porttitor=penatibus&lacus=et&at=magnis&turpis=dis&donec=parturient&posuere=montes&metus=nascetur&vitae=ridiculus&ipsum=mus&aliquam=vivamus&non=vestibulum&mauris=sagittis&morbi=sapien&non=cum&lectus=sociis&aliquam=natoque&sit=penatibus&amet=et&diam=magnis&in=dis&magna=parturient&bibendum=montes&imperdiet=nascetur&nullam=ridiculus&orci=mus&pede=etiam&venenatis=vel&non=augue&sodales=vestibulum&sed=rutrum&tincidunt=rutrum&eu=neque&felis=aenean&fusce=auctor&posuere=gravida&felis=sem&sed=praesent&lacus=id&morbi=massa&sem=id&mauris=nisl&laoreet=venenatis&ut=lacinia&rhoncus=aenean&aliquet=sit&pulvinar=amet&sed=justo&nisl=morbi&nunc=ut&rhoncus=odio&dui=cras&vel=mi", - "created_at": "2007-09-30T09:39:32Z", + "listingDate": "2007-09-30T09:39:32Z", "company": "VonRueden and Sons", "company_url": "http://wix.com/ante/vestibulum/ante/ipsum/primis/in.aspx?vivamus=habitasse&tortor=platea&duis=dictumst&mattis=etiam&egestas=faucibus&metus=cursus&aenean=urna&fermentum=ut&donec=tellus&ut=nulla&mauris=ut&eget=erat&massa=id&tempor=mauris&convallis=vulputate&nulla=elementum&neque=nullam&libero=varius&convallis=nulla&eget=facilisi&eleifend=cras&luctus=non&ultricies=velit&eu=nec&nibh=nisi&quisque=vulputate&id=nonummy&justo=maecenas&sit=tincidunt&amet=lacus&sapien=at&dignissim=velit&vestibulum=vivamus&vestibulum=vel&ante=nulla&ipsum=eget&primis=eros&in=elementum&faucibus=pellentesque&orci=quisque&luctus=porta&et=volutpat&ultrices=erat&posuere=quisque&cubilia=erat&curae=eros&nulla=viverra&dapibus=eget&dolor=congue&vel=eget&est=semper&donec=rutrum&odio=nulla&justo=nunc&sollicitudin=purus&ut=phasellus&suscipit=in&a=felis&feugiat=donec&et=semper&eros=sapien&vestibulum=a&ac=libero&est=nam&lacinia=dui&nisi=proin&venenatis=leo&tristique=odio&fusce=porttitor", "location": "California", diff --git a/cypress/fixtures/jobsSearch2.json b/cypress/fixtures/jobsSearch2.json index 50985c5..69ba2c0 100644 --- a/cypress/fixtures/jobsSearch2.json +++ b/cypress/fixtures/jobsSearch2.json @@ -3,7 +3,7 @@ "id": 1, "type": "Full Time", "url": "http://nbcnews.com/id/justo.html?ante=tellus&vestibulum=in&ante=sagittis&ipsum=dui&primis=vel&in=nisl&faucibus=duis&orci=ac&luctus=nibh&et=fusce&ultrices=lacus&posuere=purus&cubilia=aliquet&curae=at&duis=feugiat&faucibus=non&accumsan=pretium&odio=quis&curabitur=lectus&convallis=suspendisse&duis=potenti&consequat=in&dui=eleifend&nec=quam&nisi=a&volutpat=odio&eleifend=in&donec=hac&ut=habitasse&dolor=platea&morbi=dictumst&vel=maecenas&lectus=ut&in=massa&quam=quis&fringilla=augue&rhoncus=luctus&mauris=tincidunt&enim=nulla&leo=mollis", - "created_at": "2009-12-26T17:13:11Z", + "listingDate": "2009-12-26T17:13:11Z", "company": "Anderson LLC", "company_url": "https://deliciousdays.com/consequat/lectus/in.png?nisl=nibh&aenean=fusce&lectus=lacus&pellentesque=purus&eget=aliquet&nunc=at&donec=feugiat&quis=non&orci=pretium&eget=quis&orci=lectus&vehicula=suspendisse&condimentum=potenti&curabitur=in&in=eleifend&libero=quam&ut=a&massa=odio&volutpat=in&convallis=hac&morbi=habitasse&odio=platea&odio=dictumst&elementum=maecenas&eu=ut&interdum=massa&eu=quis&tincidunt=augue&in=luctus&leo=tincidunt&maecenas=nulla&pulvinar=mollis&lobortis=molestie&est=lorem&phasellus=quisque&sit=ut", "location": "Pennsylvania", @@ -16,7 +16,7 @@ "id": 2, "type": "Full Time", "url": "https://posterous.com/et/ultrices/posuere/cubilia/curae/duis.json?nunc=non&purus=velit&phasellus=donec&in=diam&felis=neque&donec=vestibulum&semper=eget&sapien=vulputate&a=ut&libero=ultrices&nam=vel&dui=augue&proin=vestibulum&leo=ante&odio=ipsum&porttitor=primis&id=in&consequat=faucibus&in=orci&consequat=luctus&ut=et&nulla=ultrices&sed=posuere&accumsan=cubilia&felis=curae&ut=donec&at=pharetra&dolor=magna&quis=vestibulum&odio=aliquet&consequat=ultrices&varius=erat", - "created_at": "2019-10-01T13:09:54Z", + "listingDate": "2019-10-01T13:09:54Z", "company": "Herman-Kuhic", "company_url": "http://weather.com/eleifend/donec/ut/dolor/morbi.json?tellus=augue&nisi=aliquam&eu=erat&orci=volutpat&mauris=in&lacinia=congue&sapien=etiam&quis=justo&libero=etiam&nullam=pretium&sit=iaculis&amet=justo&turpis=in&elementum=hac&ligula=habitasse&vehicula=platea&consequat=dictumst&morbi=etiam&a=faucibus&ipsum=cursus&integer=urna&a=ut&nibh=tellus&in=nulla&quis=ut&justo=erat&maecenas=id&rhoncus=mauris&aliquam=vulputate&lacus=elementum&morbi=nullam&quis=varius&tortor=nulla&id=facilisi&nulla=cras&ultrices=non&aliquet=velit&maecenas=nec&leo=nisi&odio=vulputate&condimentum=nonummy&id=maecenas&luctus=tincidunt&nec=lacus&molestie=at&sed=velit&justo=vivamus&pellentesque=vel&viverra=nulla&pede=eget&ac=eros&diam=elementum&cras=pellentesque&pellentesque=quisque&volutpat=porta&dui=volutpat&maecenas=erat&tristique=quisque&est=erat&et=eros&tempus=viverra&semper=eget&est=congue&quam=eget&pharetra=semper&magna=rutrum&ac=nulla&consequat=nunc&metus=purus&sapien=phasellus&ut=in&nunc=felis&vestibulum=donec&ante=semper&ipsum=sapien&primis=a&in=libero&faucibus=nam&orci=dui&luctus=proin&et=leo&ultrices=odio&posuere=porttitor&cubilia=id&curae=consequat&mauris=in&viverra=consequat&diam=ut", "location": "California", @@ -29,7 +29,7 @@ "id": 3, "type": "Full Time", "url": "https://craigslist.org/luctus/rutrum.png?vestibulum=elit&rutrum=proin&rutrum=risus&neque=praesent&aenean=lectus&auctor=vestibulum&gravida=quam&sem=sapien&praesent=varius&id=ut&massa=blandit&id=non&nisl=interdum&venenatis=in&lacinia=ante&aenean=vestibulum&sit=ante&amet=ipsum&justo=primis&morbi=in&ut=faucibus&odio=orci&cras=luctus&mi=et&pede=ultrices&malesuada=posuere&in=cubilia&imperdiet=curae&et=duis&commodo=faucibus&vulputate=accumsan&justo=odio&in=curabitur&blandit=convallis&ultrices=duis&enim=consequat&lorem=dui&ipsum=nec&dolor=nisi&sit=volutpat&amet=eleifend&consectetuer=donec&adipiscing=ut&elit=dolor&proin=morbi&interdum=vel&mauris=lectus&non=in&ligula=quam&pellentesque=fringilla&ultrices=rhoncus&phasellus=mauris&id=enim&sapien=leo&in=rhoncus&sapien=sed&iaculis=vestibulum&congue=sit&vivamus=amet&metus=cursus&arcu=id&adipiscing=turpis&molestie=integer&hendrerit=aliquet&at=massa&vulputate=id&vitae=lobortis&nisl=convallis&aenean=tortor&lectus=risus&pellentesque=dapibus&eget=augue&nunc=vel&donec=accumsan&quis=tellus&orci=nisi&eget=eu&orci=orci&vehicula=mauris&condimentum=lacinia&curabitur=sapien&in=quis&libero=libero&ut=nullam&massa=sit&volutpat=amet&convallis=turpis&morbi=elementum&odio=ligula&odio=vehicula&elementum=consequat&eu=morbi&interdum=a", - "created_at": "2013-03-11T15:13:15Z", + "listingDate": "2013-03-11T15:13:15Z", "company": "Howe-Becker", "company_url": "https://boston.com/orci/luctus/et/ultrices.jpg?condimentum=semper&neque=est&sapien=quam&placerat=pharetra&ante=magna&nulla=ac&justo=consequat&aliquam=metus&quis=sapien&turpis=ut&eget=nunc&elit=vestibulum&sodales=ante&scelerisque=ipsum&mauris=primis&sit=in&amet=faucibus&eros=orci&suspendisse=luctus&accumsan=et&tortor=ultrices&quis=posuere&turpis=cubilia&sed=curae&ante=mauris&vivamus=viverra&tortor=diam&duis=vitae&mattis=quam&egestas=suspendisse&metus=potenti&aenean=nullam&fermentum=porttitor&donec=lacus&ut=at&mauris=turpis&eget=donec&massa=posuere&tempor=metus&convallis=vitae&nulla=ipsum&neque=aliquam&libero=non&convallis=mauris&eget=morbi&eleifend=non&luctus=lectus&ultricies=aliquam&eu=sit&nibh=amet&quisque=diam&id=in&justo=magna&sit=bibendum&amet=imperdiet&sapien=nullam&dignissim=orci&vestibulum=pede&vestibulum=venenatis&ante=non&ipsum=sodales&primis=sed&in=tincidunt&faucibus=eu&orci=felis&luctus=fusce&et=posuere&ultrices=felis&posuere=sed&cubilia=lacus&curae=morbi&nulla=sem&dapibus=mauris&dolor=laoreet&vel=ut&est=rhoncus&donec=aliquet&odio=pulvinar&justo=sed&sollicitudin=nisl&ut=nunc&suscipit=rhoncus&a=dui&feugiat=vel&et=sem&eros=sed&vestibulum=sagittis&ac=nam&est=congue&lacinia=risus&nisi=semper&venenatis=porta&tristique=volutpat&fusce=quam", "location": "Oregon", @@ -42,7 +42,7 @@ "id": 4, "type": "Full Time", "url": "http://usa.gov/at/diam/nam/tristique/tortor/eu/pede.jsp?in=turpis&blandit=adipiscing&ultrices=lorem&enim=vitae&lorem=mattis&ipsum=nibh&dolor=ligula&sit=nec&amet=sem&consectetuer=duis&adipiscing=aliquam&elit=convallis&proin=nunc", - "created_at": "2000-12-20T22:53:44Z", + "listingDate": "2000-12-20T22:53:44Z", "company": "Wolff LLC", "company_url": "http://time.com/congue.jsp?pretium=turpis&iaculis=enim&justo=blandit&in=mi&hac=in&habitasse=porttitor&platea=pede&dictumst=justo&etiam=eu&faucibus=massa&cursus=donec&urna=dapibus&ut=duis&tellus=at&nulla=velit&ut=eu&erat=est&id=congue", "location": "Texas", diff --git a/cypress/integration/hiddenJobs.spec.js b/cypress/integration/hiddenJobs.spec.js index f4f28a1..8862e12 100644 --- a/cypress/integration/hiddenJobs.spec.js +++ b/cypress/integration/hiddenJobs.spec.js @@ -74,22 +74,22 @@ context("Hidden Jobs", () => { cy.get("#nav-profile").click(); cy.get("#view-hidden-jobs").click(); - cy.get("h1").should("have.text", "Hidden Jobs"); + cy.get("#modal-title").should("have.text", "Hidden Jobs"); cy.get("#f1884b46-ecb4-473c-81f5-08d9bf2ab3bb").should("exist"); // * Cleanup cy.get("#show-job-f1884b46-ecb4-473c-81f5-08d9bf2ab3bb").click(); }); - it("Should be able to return to the profile display page", () => { + it("Should be able to return to the profile page", () => { cy.get("#hide-job-f1884b46-ecb4-473c-81f5-08d9bf2ab3bb").click(); cy.get("#nav-profile").click(); cy.get("#view-hidden-jobs").click(); - cy.get("h1").should("have.text", "Hidden Jobs"); + cy.get("#modal-title").should("have.text", "Hidden Jobs"); - cy.get("#back-to-profile").click(); - cy.get("h1").should("have.text", "Profile"); + cy.get("#modal-close").click(); + cy.get("h2").should("have.text", "Hello, Bob"); // * Cleanup cy.get("#view-hidden-jobs").click(); @@ -119,6 +119,7 @@ context("Hidden Jobs", () => { ); // * Cleanup + cy.get("#modal-close").click(); cy.get("header").click(); cy.get("#show-job-f1884b46-ecb4-473c-81f5-08d9bf2ab3bb").click(); cy.get("#show-job-72de09f2-5bc6-489f-be90-3d38e505e20a").click(); diff --git a/cypress/integration/login.spec.js b/cypress/integration/login.spec.js index 177d248..fae6a31 100644 --- a/cypress/integration/login.spec.js +++ b/cypress/integration/login.spec.js @@ -61,11 +61,22 @@ context("Login - Error", () => { cy.get("h1").should("have.text", "Login"); }); - it("Should not allow to login with invalid credentials", () => { + it("Should not allow to login with invalid credentials for an existing account", () => { + cy.get("#email").type("bobtest@email.com"); + cy.get("#password").type("Blue123456!!!"); + cy.get("#log-in").click(); + cy.wait(500); + cy.get("#notification").should("have.text", "Invalid credentials."); + }); + + it("Should not allow to login with an account that does not exist", () => { cy.get("#email").type("fake@email.com"); cy.get("#password").type("Red123456!!!"); cy.get("#log-in").click(); cy.wait(500); - cy.get("#notification").should("have.text", "Invalid credentials."); + cy.get("#notification").should( + "have.text", + "We couldn't find a user with that email address. Please create an account, or provide another email address." + ); }); }); diff --git a/cypress/integration/notification.spec.js b/cypress/integration/notification.spec.js index 97e143b..9405d86 100644 --- a/cypress/integration/notification.spec.js +++ b/cypress/integration/notification.spec.js @@ -26,15 +26,13 @@ context("Notification", () => { cy.get("#nav-login").should("not.exist"); cy.get("#search").should("be.visible"); cy.get("#nav-profile").click(); - cy.get("#edit").click(); - cy.get("h1").should("have.text", "Edit Profile"); - cy.get("#edit-name").clear(); - cy.get("#edit-name").type("Cool Bob"); + cy.get("#edit-profile").click(); + cy.get("#name").clear(); + cy.get("#name").type("Cool Bob"); cy.get("#edit-confirm").click(); cy.wait(500); - cy.get("h1").should("have.text", "Profile"); cy.get("#notification").should( "have.text", "Profile information updated successfully." @@ -45,13 +43,12 @@ context("Notification", () => { cy.get("#notification").should("not.exist"); // * Reset to normal data (Cleanup) - cy.get("#edit").click(); + cy.get("#edit-profile").click(); cy.get("#notification").should("not.exist"); - cy.get("#edit-name").clear(); - cy.get("#edit-name").type("Bob Test"); + cy.get("#name").clear(); + cy.get("#name").type("Bob Test"); cy.get("#edit-confirm").click(); cy.wait(500); - cy.get("h1").should("have.text", "Profile"); cy.get("#name").should("have.value", "Bob Test"); cy.get("#email").should("have.value", "bobtest@email.com"); }); @@ -66,15 +63,13 @@ context("Notification", () => { cy.get("#nav-login").should("not.exist"); cy.get("#search").should("be.visible"); cy.get("#nav-profile").click(); - cy.get("#edit").click(); - cy.get("h1").should("have.text", "Edit Profile"); - cy.get("#edit-name").clear(); - cy.get("#edit-name").type("Cool Bob"); + cy.get("#edit-profile").click(); + cy.get("#name").clear(); + cy.get("#name").type("Cool Bob"); cy.get("#edit-confirm").click(); cy.wait(500); - cy.get("h1").should("have.text", "Profile"); cy.get("#notification").should( "have.text", "Profile information updated successfully." @@ -83,12 +78,11 @@ context("Notification", () => { cy.get("#notification").should("not.exist"); // * Reset to normal data (Cleanup) - cy.get("#edit").click(); - cy.get("#edit-name").clear(); - cy.get("#edit-name").type("Bob Test"); + cy.get("#edit-profile").click(); + cy.get("#name").clear(); + cy.get("#name").type("Bob Test"); cy.get("#edit-confirm").click(); cy.wait(500); - cy.get("h1").should("have.text", "Profile"); cy.get("#name").should("have.value", "Bob Test"); cy.get("#email").should("have.value", "bobtest@email.com"); }); diff --git a/cypress/integration/optionsPanel.spec.js b/cypress/integration/optionsPanel.spec.js index ebcce84..af5327e 100644 --- a/cypress/integration/optionsPanel.spec.js +++ b/cypress/integration/optionsPanel.spec.js @@ -22,14 +22,14 @@ context("Options Panel", () => { cy.route({ method: "GET", url: - "/jobs/search?full_time=false&description=&location=Los Angeles", + "/jobs/search?full_time=false&description=&location1=Los Angeles", status: 200, delay: 1000, response: jobsSearch1Json, }); cy.route({ method: "GET", - url: "/jobs/search?full_time=false&description=&location=Chicago", + url: "/jobs/search?full_time=false&description=&location1=Chicago", status: 200, delay: 1000, response: jobsSearch1Json, @@ -41,6 +41,14 @@ context("Options Panel", () => { delay: 1000, response: jobsSearch1Json, }); + cy.route({ + method: "GET", + url: + "/jobs/search?full_time=false&description=&location1=Los Angeles", + status: 200, + delay: 1000, + response: jobsSearch1Json, + }); }); }); }); @@ -91,4 +99,12 @@ context("Options Panel", () => { assert.equal($jobs.length, 4); }); }); + + it("Should be able to search within the OptionsPanel", () => { + cy.get("#location-search").type("Los Angeles"); + cy.get("#options-panel-search").click(); + cy.wait(1000); + + cy.get("#notification").should("have.text", "Search returned 7 results."); + }); }); diff --git a/cypress/integration/profile.spec.js b/cypress/integration/profile.spec.js index ea65c8c..145fe49 100644 --- a/cypress/integration/profile.spec.js +++ b/cypress/integration/profile.spec.js @@ -26,92 +26,72 @@ context("Profile", () => { }); it("Should display 'Profile' page", () => { - cy.get("h1").should("have.text", "Profile"); + cy.get("h2").should("have.text", "Hello, Bob"); cy.get("#name").should("have.value", "Bob Test"); cy.get("#email").should("have.value", "bobtest@email.com"); }); it("Should be able to edit the user profile", () => { - cy.get("#edit").click(); - cy.get("h1").should("have.text", "Edit Profile"); - cy.get("#edit-name").clear(); - cy.get("#edit-name").type("Cool Name"); - cy.get("#edit-email").clear(); - cy.get("#edit-email").type("bobtest2@email.com"); + cy.get("#edit-profile").click(); + cy.get("#name").clear(); + cy.get("#name").type("Cool Name"); + cy.get("#email").clear(); + cy.get("#email").type("bobtest2@email.com"); cy.get("#edit-confirm").click(); cy.wait(1500); - cy.get("h1").should("have.text", "Profile"); + cy.get("h2").should("have.text", "Hello, Cool"); cy.get("#notification").should( "have.text", "Profile information updated successfully." ); // * Reset to normal data (Cleanup) - cy.get("#edit").click(); - cy.get("#notification").should("not.be.visible"); - cy.get("#edit-name").clear(); - cy.get("#edit-name").type("Bob Test"); - cy.get("#edit-email").clear(); - cy.get("#edit-email").type("bobtest@email.com"); + cy.get("#edit-profile").click(); + cy.get("#name").clear(); + cy.get("#name").type("Bob Test"); + cy.get("#email").clear(); + cy.get("#email").type("bobtest@email.com"); cy.get("#edit-confirm").click(); cy.wait(500); - cy.get("h1").should("have.text", "Profile"); + cy.get("h2").should("have.text", "Hello, Bob"); cy.get("#name").should("have.value", "Bob Test"); cy.get("#email").should("have.value", "bobtest@email.com"); }); it("Should be able to cancel editing the user profile", () => { - cy.get("#edit").click(); - cy.get("h1").should("have.text", "Edit Profile"); - cy.get("#edit-name").clear(); - cy.get("#edit-name").type("Cool Name"); - cy.get("#edit-email").clear(); - cy.get("#edit-email").type("bobtest2@email.com"); + cy.get("#edit-profile").click(); + cy.get("#name").clear(); + cy.get("#name").type("Cool Name"); + cy.get("#email").clear(); + cy.get("#email").type("bobtest2@email.com"); // * Cancel - cy.get("#cancel").click(); + cy.get("#edit-cancel").click(); - cy.get("h1").should("have.text", "Profile"); + cy.get("h2").should("have.text", "Hello, Bob"); cy.get("#notification").should("not.be.visible"); cy.get("#name").should("have.value", "Bob Test"); cy.get("#email").should("have.value", "bobtest@email.com"); }); it("Should not allow to submit edit profile form if information is not changed", () => { - cy.get("#edit").click(); - cy.get("h1").should("have.text", "Edit Profile"); + cy.get("#edit-profile").click(); cy.get("#edit-confirm").should("be.disabled"); }); it("Should not allow to submit edit profile form if information is blank", () => { - cy.get("#edit").click(); - cy.get("h1").should("have.text", "Edit Profile"); - cy.get("#edit-name").clear(); - cy.get("#edit-email").clear(); + cy.get("#edit-profile").click(); + cy.get("#name").clear(); + cy.get("#email").clear(); cy.get("#edit-confirm").should("be.disabled"); }); - it("Should not allow to set newEmail to an invalid email", () => { - cy.get("#edit").click(); - cy.get("h1").should("have.text", "Edit Profile"); - cy.get("#edit-name").clear(); - cy.get("#edit-name").type("Cool Name"); - cy.get("#edit-email").type("bobtest2@email.com"); - cy.get("#edit-confirm").click(); - - cy.wait(500); - - cy.get("h1").should("have.text", "Edit Profile"); - cy.get("#notification").should("have.text", "Invalid email."); - - cy.get("#cancel").click(); - }); - it("Should be able to reset the password", () => { + cy.get("#settings").click(); cy.get("#reset-password").click(); - cy.get("h1").should("have.text", "Reset Password"); + cy.get("#modal-title").should("have.text", "Reset Password"); cy.get("#current-password").type("Red123456!!!"); cy.get("#new-password").type("Blue123456!!!"); cy.get("#confirm-new-password").type("Blue123456!!!"); @@ -119,29 +99,32 @@ context("Profile", () => { cy.wait(500); - cy.get("h1").should("have.text", "Profile"); + cy.get("h2").should("have.text", "Hello, Bob"); cy.get("#notification").should("have.text", "Password reset successfully."); // * Reset to normal data (Cleanup) + cy.get("#settings").click(); cy.get("#reset-password").click(); - cy.get("h1").should("have.text", "Reset Password"); + cy.get("#modal-title").should("have.text", "Reset Password"); cy.get("#current-password").type("Blue123456!!!"); cy.get("#new-password").type("Red123456!!!"); cy.get("#confirm-new-password").type("Red123456!!!"); cy.get("#reset").click(); - cy.get("h1").should("have.text", "Profile"); + cy.get("h2").should("have.text", "Hello, Bob"); cy.get("#notification").should("have.text", "Password reset successfully."); }); it("Should not allow to submit reset password form if information is not changed", () => { + cy.get("#settings").click(); cy.get("#reset-password").click(); - cy.get("h1").should("have.text", "Reset Password"); + cy.get("#modal-title").should("have.text", "Reset Password"); cy.get("#reset").should("be.disabled"); }); it("Should not allow to submit reset password form if information is blank", () => { + cy.get("#settings").click(); cy.get("#reset-password").click(); - cy.get("h1").should("have.text", "Reset Password"); + cy.get("#modal-title").should("have.text", "Reset Password"); cy.get("#current-password").clear(); cy.get("#new-password").clear(); cy.get("#confirm-new-password").clear(); @@ -149,8 +132,9 @@ context("Profile", () => { }); it("Should not be able to reset password when using invalid credentials", () => { + cy.get("#settings").click(); cy.get("#reset-password").click(); - cy.get("h1").should("have.text", "Reset Password"); + cy.get("#modal-title").should("have.text", "Reset Password"); cy.get("#current-password").type("Blue123456!!!"); cy.get("#new-password").type("Red123456!!!"); cy.get("#confirm-new-password").type("Red123456!!!"); @@ -158,13 +142,14 @@ context("Profile", () => { cy.wait(500); - cy.get("h1").should("have.text", "Reset Password"); + cy.get("#modal-title").should("have.text", "Reset Password"); cy.get("#notification").should("have.text", "Invalid credentials."); }); it("Should not be able to reset password if passwords do not match", () => { + cy.get("#settings").click(); cy.get("#reset-password").click(); - cy.get("h1").should("have.text", "Reset Password"); + cy.get("#modal-title").should("have.text", "Reset Password"); cy.get("#current-password").type("Red123456!!!"); cy.get("#new-password").type("Blue123456!!!"); cy.get("#confirm-new-password").type("Yellow123456!!!"); @@ -172,23 +157,26 @@ context("Profile", () => { cy.wait(500); - cy.get("h1").should("have.text", "Reset Password"); + cy.get("#modal-title").should("have.text", "Reset Password"); cy.get("#notification").should("have.text", "Passwords do not match."); }); it("Should be able to log out on this device", () => { + cy.get("#settings").click(); cy.get("#log-out").click(); cy.get("#nav-login").should("exist"); cy.get("#search").should("be.visible"); }); it("Should be able to log out on all devices", () => { + cy.get("#settings").click(); cy.get("#log-out-all").click(); cy.get("#nav-login").should("exist"); cy.get("#search").should("be.visible"); }); it("Should be able to delete a user profile", () => { + cy.get("#settings").click(); cy.get("#log-out").click(); cy.wait(500); cy.get("#nav-login").should("exist"); @@ -207,10 +195,11 @@ context("Profile", () => { cy.get("#nav-login").should("not.exist"); cy.get("#search").should("be.visible"); cy.get("#nav-profile").click(); - cy.get("h1").should("have.text", "Profile"); + cy.get("h2").should("have.text", "Hello, Delete"); + cy.get("#settings").click(); cy.get("#delete-profile").click(); - cy.get("h1").should("have.text", "Delete Profile"); + cy.get("#modal-title").should("have.text", "Delete Profile"); cy.get("#notification").should( "have.text", "Are you sure you would like to delete your profile? This can not be reversed." @@ -222,6 +211,7 @@ context("Profile", () => { }); it("Should be able to cancel deleting a user profile", () => { + cy.get("#settings").click(); cy.get("#log-out").click(); cy.wait(500); cy.get("#nav-login").should("exist"); @@ -240,22 +230,26 @@ context("Profile", () => { cy.get("#nav-login").should("not.exist"); cy.get("#search").should("be.visible"); cy.get("#nav-profile").click(); - cy.get("h1").should("have.text", "Profile"); + cy.get("h2").should("have.text", "Hello, Delete"); + cy.get("#settings").click(); cy.get("#delete-profile").click(); - cy.get("h1").should("have.text", "Delete Profile"); + cy.get("#modal-title").should("have.text", "Delete Profile"); cy.get("#notification").should( "have.text", "Are you sure you would like to delete your profile? This can not be reversed." ); - cy.get("#cancel").click(); - cy.get("h1").should("have.text", "Profile"); + cy.get("#delete-cancel").click(); + cy.get("#modal-title").should("have.text", "Settings"); + cy.get("#modal-close").click(); + cy.get("h2").should("have.text", "Hello, Delete"); cy.get("#name").should("have.value", "Delete Test"); cy.get("#email").should("have.value", "deletetest@email.com"); // * Cleanup + cy.get("#settings").click(); cy.get("#delete-profile").click(); - cy.get("h1").should("have.text", "Delete Profile"); + cy.get("#modal-title").should("have.text", "Delete Profile"); cy.get("#notification").should( "have.text", "Are you sure you would like to delete your profile? This can not be reversed." diff --git a/cypress/integration/savedJobs.spec.js b/cypress/integration/savedJobs.spec.js index 28bf8b3..6fbb1d9 100644 --- a/cypress/integration/savedJobs.spec.js +++ b/cypress/integration/savedJobs.spec.js @@ -74,7 +74,7 @@ context("Saved Jobs", () => { cy.get("#nav-profile").click(); cy.get("#view-saved-jobs").click(); - cy.get("h1").should("have.text", "Saved Jobs"); + cy.get("#modal-title").should("have.text", "Saved Jobs"); cy.get("#f1884b46-ecb4-473c-81f5-08d9bf2ab3bb").should("exist"); // * Cleanup @@ -86,10 +86,10 @@ context("Saved Jobs", () => { cy.get("#nav-profile").click(); cy.get("#view-saved-jobs").click(); - cy.get("h1").should("have.text", "Saved Jobs"); + cy.get("#modal-title").should("have.text", "Saved Jobs"); - cy.get("#back-to-profile").click(); - cy.get("h1").should("have.text", "Profile"); + cy.get("#modal-close").click(); + cy.get("h2").should("have.text", "Hello, Bob"); // * Cleanup cy.get("#view-saved-jobs").click(); @@ -119,6 +119,7 @@ context("Saved Jobs", () => { ); // * Cleanup + cy.get("#modal-close").click(); cy.get("header").click(); cy.get("#remove-job-f1884b46-ecb4-473c-81f5-08d9bf2ab3bb").click(); cy.get("#remove-job-72de09f2-5bc6-489f-be90-3d38e505e20a").click(); diff --git a/cypress/integration/search.spec.js b/cypress/integration/search.spec.js index 4b63222..b6dbe17 100644 --- a/cypress/integration/search.spec.js +++ b/cypress/integration/search.spec.js @@ -82,3 +82,31 @@ context("Search - No Results", () => { ); }); }); + +context("Search - Loading Indicator", () => { + beforeEach(() => { + cy.fixture("jobs50").then((jobsJson) => { + cy.server(); + cy.route({ + method: "GET", + url: "/jobs", + status: 200, + response: jobsJson, + delay: 3000, + }); + }); + }); + + it("Should display LoadingIndicator correctly on jobs loading", () => { + cy.visit("http://localhost:3000"); + cy.get("#no-results").should("be.visible"); + cy.get("[data-cy=orbit-container] > :nth-child(3)").should("be.visible"); + + cy.wait(3100); + + cy.get("#no-results").should("not.be.visible"); + cy.get("[data-cy=orbit-container] > :nth-child(3)").should( + "not.be.visible" + ); + }); +}); diff --git a/package-lock.json b/package-lock.json index dfae6f6..8934f9d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "gh-jobs", - "version": "1.3.0", + "version": "1.4.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d46ed2c..eea6c82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gh-jobs", - "version": "1.3.0", + "version": "1.4.0", "description": "A MERN application bootstrapped with create-mern-application.", "main": "build/index.js", "scripts": { diff --git a/src/client/App.tsx b/src/client/App.tsx index 032421b..ad67819 100644 --- a/src/client/App.tsx +++ b/src/client/App.tsx @@ -12,6 +12,7 @@ import Signup from "./pages/Signup"; import ErrorFallback from "./components/ErrorFallback"; import LoadingIndicator from "./components/LoadingIndicator"; +import Modal from "./components/Modal"; import Navigation from "./components/Navigation"; import { setError } from "./redux/actions/application"; @@ -71,6 +72,7 @@ const App: React.SFC = (props: AppProps) => { + ); diff --git a/src/client/components/JobCard/JobCard.tsx b/src/client/components/JobCard/JobCard.tsx index 91b7131..a2409f9 100644 --- a/src/client/components/JobCard/JobCard.tsx +++ b/src/client/components/JobCard/JobCard.tsx @@ -142,7 +142,7 @@ const JobCard: React.SFC = (props: JobCardProps) => { access_time

- {formatDistanceToNow(new Date(job.created_at), { + {formatDistanceToNow(new Date(job.listingDate), { addSuffix: true, })}

diff --git a/src/client/components/Modal/Modal-styled.tsx b/src/client/components/Modal/Modal-styled.tsx new file mode 100644 index 0000000..41c40c3 --- /dev/null +++ b/src/client/components/Modal/Modal-styled.tsx @@ -0,0 +1,71 @@ +import styled from "styled-components"; + +interface ModalContainerProps { + isModalOpen: boolean; +} + +const ModalContainer = styled.div` + align-items: center; + background-color: transparent; + bottom: 0; + display: ${(props) => (props.isModalOpen ? "flex" : "none")}; + left: 0; + justify-content: center; + position: absolute; + right: 0; + top: 0; + width: 100%; + z-index: 10; +`; + +const ModalInnerContainer = styled.div` + background-color: #ffffff; + border-radius: 1.25rem; + height: fit-content; + max-height: 80%; + overflow-y: scroll; + padding: 25px; + width: 50%; + + @media only screen and (max-width: 600px) { + width: 100%; + } +`; + +const ModalTitle = styled.div` + display: flex; + flex-direction: row; + justify-content: space-between; + margin-bottom: 25px; + + button { + background: transparent; + border: 0; + font-size: 20px; + + &:hover { + cursor: pointer; + } + } + + h2 { + margin: 0; + } +`; + +interface ShadeProps { + isModalOpen: boolean; +} + +const Shade = styled.div` + background-color: rgba(0, 0, 0, 0.75); + bottom: 0; + display: ${(props) => (props.isModalOpen ? "block" : "none")}; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 5; +`; + +export { ModalContainer, ModalInnerContainer, ModalTitle, Shade }; diff --git a/src/client/components/Modal/Modal.tsx b/src/client/components/Modal/Modal.tsx new file mode 100644 index 0000000..45da26e --- /dev/null +++ b/src/client/components/Modal/Modal.tsx @@ -0,0 +1,57 @@ +import * as React from "react"; +import { connect } from "react-redux"; + +import { + ModalContainer, + ModalInnerContainer, + ModalTitle, + Shade, +} from "./Modal-styled"; + +import contents from "./contents"; + +import { resetModal } from "../../redux/thunks"; + +import { RootState } from "../../types"; + +export interface ModalProps { + handleCloseModal: () => void; + isModalOpen: boolean; + modalContent: string; + modalTitle: string; +} + +const Modal: React.SFC = (props: ModalProps) => { + const { handleCloseModal, isModalOpen, modalContent, modalTitle } = props; + + const Content = contents[modalContent]; + + return ( + <> + + + + + + + + {Content && } + + + + ); +}; + +const mapStateToProps = (state: RootState) => ({ + isModalOpen: state.modal.isModalOpen, + modalContent: state.modal.modalContent, + modalTitle: state.modal.modalTitle, +}); + +const mapDispatchToProps = (dispatch) => ({ + handleCloseModal: () => dispatch(resetModal()), +}); + +export default connect(mapStateToProps, mapDispatchToProps)(Modal); diff --git a/src/client/components/Modal/contents.ts b/src/client/components/Modal/contents.ts new file mode 100644 index 0000000..dd24143 --- /dev/null +++ b/src/client/components/Modal/contents.ts @@ -0,0 +1,15 @@ +import DeleteProfile from "../../modals/DeleteProfile"; +import HiddenJobs from "../../modals/HiddenJobs"; +import ResetPassword from "../../modals/ResetPassword"; +import SavedJobs from "../../modals/SavedJobs"; +import Settings from "../../modals/Settings"; + +const contents = { + deleteProfile: DeleteProfile, + hiddenJobs: HiddenJobs, + resetPassword: ResetPassword, + savedJobs: SavedJobs, + settings: Settings, +}; + +export default contents; diff --git a/src/client/components/Modal/index.ts b/src/client/components/Modal/index.ts new file mode 100644 index 0000000..09b91f7 --- /dev/null +++ b/src/client/components/Modal/index.ts @@ -0,0 +1 @@ +export { default } from "./Modal"; diff --git a/src/client/components/OptionsPanel/OptionsPanel.tsx b/src/client/components/OptionsPanel/OptionsPanel.tsx index 94fb9a9..44e573a 100644 --- a/src/client/components/OptionsPanel/OptionsPanel.tsx +++ b/src/client/components/OptionsPanel/OptionsPanel.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import { connect } from "react-redux"; +import Button from "../Button"; import Checkbox from "../Checkbox"; import Input from "../Input"; @@ -10,12 +11,14 @@ import { setFullTime, setLocationSearch, } from "../../redux/actions/application"; +import { searchJobs } from "../../redux/thunks"; import { LocationOption, RootState } from "../../types"; export interface OptionsPanelProps { fullTime: boolean; handleCheckBox: (e: React.ChangeEvent) => void; + handleSearch: (search: string, locationOptions: LocationOption[]) => void; handleSetFullTime: (fullTime: boolean) => void; handleSetLocationSearch: (locationSearch: string) => void; locationOptions: LocationOption[]; @@ -28,6 +31,7 @@ const OptionsPanel: React.SFC = ( const { fullTime, handleCheckBox, + handleSearch, handleSetFullTime, handleSetLocationSearch, locationOptions, @@ -64,6 +68,14 @@ const OptionsPanel: React.SFC = ( value={location.name} /> ))} + +