Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix all errors in Applications and CV module #396

Merged
merged 14 commits into from
Jul 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -12,7 +12,7 @@ before_install:
- sudo apt-get update > /dev/null
- "mongo --eval 'db.runCommand({setParameter: 1, textSearchEnabled: true})' admin"
# setup xvfb to be used by selenium
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1680x1050x16"
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1920x1080x16"

install:
# install php packages required for running YAWIK phpunit tests
Expand Down
4 changes: 3 additions & 1 deletion behat.yml.dist
Expand Up @@ -45,4 +45,6 @@ default:
- Yawik\Behat\CoreContext
- Yawik\Behat\OrganizationContext
- Yawik\Behat\UserContext
- Yawik\Behat\SettingsContext
- Yawik\Behat\SettingsContext
- Yawik\Behat\Select2Context
- Yawik\Behat\JobContext
14 changes: 8 additions & 6 deletions composer.json
Expand Up @@ -45,6 +45,11 @@
"zendframework/zend-form": "^2.10",
"zendframework/zend-mail": "^2.7",
"zendframework/zend-json": "^3.0",
"zendframework/zend-view": "^2.9",
"zendframework/zend-feed": "^2.8",
"zendframework/zendservice-recaptcha": "^3.0",
"zendframework/zend-log": "^2.9",
"zendframework/zend-serializer": "^2.8",
"doctrine/doctrine-mongo-odm-module": "*",
"hybridauth/hybridauth": "^2.9",
"mpdf/mpdf": "5.7.*",
Expand All @@ -55,11 +60,7 @@
"mikey179/vfsStream": "*",
"ircmaxell/random-lib": "1.1.0",
"tracy/tracy": "^2.4",
"zendframework/zend-view": "^2.9",
"zendframework/zend-feed": "^2.8",
"imagine/imagine": "^0.6.3",
"zendframework/zendservice-recaptcha": "^3.0",
"zendframework/zend-log": "^2.9"
"imagine/imagine": "^0.6.3"
},
"require-dev": {
"cbleek/pecl-solr-hint": "dev-master",
Expand All @@ -76,7 +77,8 @@
"se/selenium-server-standalone": "^2.52",
"friends-of-behat/context-service-extension": "^0.3.0",
"friends-of-behat/cross-container-extension": "^0.3.0",
"friends-of-behat/service-container-extension": "^0.3.0"
"friends-of-behat/service-container-extension": "^0.3.0",
"novaway/common-contexts": "dev-master"
},
"scripts": {
"post-install-cmd": [
Expand Down
110 changes: 108 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions config/common.modules.php
Expand Up @@ -17,6 +17,7 @@
'Zend\Navigation',
'Zend\I18n',
'Zend\Filter',
'Zend\InputFilter',
'Zend\Form',
'Zend\Validator',
'Zend\Log',
Expand All @@ -25,6 +26,7 @@
'Zend\Mvc\Plugin\FlashMessenger',
'Zend\Mvc\I18n',
'Zend\Hydrator',
'Zend\Serializer',
'DoctrineModule',
'DoctrineMongoODMModule',
);
4 changes: 2 additions & 2 deletions features/account/social_profiles.feature
Expand Up @@ -33,9 +33,9 @@ Feature: Social profile feature
And I wait for the ajax response
And I fill in login form with LinkedIn user
And I press "Sign In"
And I wait for 5 seconds
And I wait for the ajax response
And I switch back to main window
And I wait for the ajax response
And I wait for 5 seconds
And I wait for 6 seconds
Then I should see an ".btn-success .fa-linkedin" element

21 changes: 21 additions & 0 deletions features/jobs/publish.feature
@@ -0,0 +1,21 @@
Feature: Publish Job
In order to get applicants
As recruiter
I should able to publish my job

Background:
Given I am logged in as a recruiter with "Cross Solution" as organization
And I don't have any posted job
And I have a draft job with the following:
| Title | Test Publishing a Job |
| Professions | Sales,Law,HR |
| Industries | Banking,IT |
| Employment Types | Permanent |
| Location | 10117 Berlin |
| Company Name | Test Company |

@javascript @skip-travis
Scenario: Successfully publish a job
Given I go to edit job draft with title "Test Publish a Job"
And I follow "Publish job"
Then I should see "Publishing successfully finished"
72 changes: 72 additions & 0 deletions features/jobs/update.feature
@@ -0,0 +1,72 @@
Feature: Update job
In order to get an applicant
As a recruiter
I should be able to manage my job posts

Background:
Given I am logged in as a recruiter with "Cross Solution" as organization

@javascript @job-create
Scenario: Successfully create new job
Given I don't have any posted job
And I go to create job page
And I wait for the ajax response
When I fill job location search with "Berlin" and choose "10117 Berlin"
And I fill in "Job title" with "Test Job Draft"
And I save "job title and location" form
And I wait for the ajax response
Then I should see "Test Job Draft"
When I click edit on "job classification" form
And I choose "Sales" from professions
And I choose "Banking" from industries
And I fill in select2 "#classifications-employmentTypes-span .select2-container" with "Contract"
And I save "job classification" form
And I wait for the ajax response
Then I should see "Sales"
And I should see "Banking"
And I should see "Contract"
When I click edit on "customer note" form
And I wait for the ajax response
And I fill in "customerNote-note" with "Some Note"
And I save "customer note" form
And I wait for the ajax response
Then I should see "Some Note"


@javascript
Scenario: Successfully edit title and job location
Given I go to edit job draft with title "Test Job Draft"
And I follow "Basic Data"
When I fill in "Job title" with "Edited Test Job Draft"
And I fill job location search with "Berlin" and choose "10117 Berlin"
When I save "job title and location" form
And I wait for the ajax response
Then I should see "Edited Test Job Draft"

@javascript
Scenario: Successfully edit classifications
Given I don't have any posted job
And I go to edit job draft with title "Test Job Draft"
And I click edit on "job classification" form
And I choose "Sales" from professions
And I choose "Banking" from industries
And I choose "Permanent" from "employment types"
And I save "job classification" form
And I wait for the ajax response
Then I should see "Sales"
And I should see "Banking"
And I should see "Permanent"

@javascript
Scenario: Successfully edit customer note
Given I don't have any posted job
And I go to edit job draft with title "Test Job Draft"
And I click edit on "customer note" form
And I scroll "#yk-footer" into view
And I wait for the ajax response
And I fill in "customerNote-note" with "Edited Some Note"
And I save "customer note" form
And I wait for the ajax response
Then I should see "Edited Some Note"


3 changes: 2 additions & 1 deletion features/organization/insert.feature
Expand Up @@ -5,7 +5,8 @@ Feature: Add new organization

@javascript @organization
Scenario: Create organization when main organization not exists
Given I am logged in as a recruiter
Given I don't have "test@recruiter.com" user
When I am logged in as a recruiter
And I go to create new organization page
Then I should see "Sorry, you may not create organizations."
And I should see "Before you are able to create organizations, you have to create your main organization first."
Expand Down
1 change: 0 additions & 1 deletion features/organization/update.feature
Expand Up @@ -10,7 +10,6 @@ Feature: Updating my organization
@javascript @organization-name
Scenario: Updating Name
When I click edit on name form
And I press "Edit"
And I fill in "Organizationname" with "Some Organization"
And I save name form
And I wait for the ajax response
Expand Down
14 changes: 14 additions & 0 deletions features/select2.feature
@@ -0,0 +1,14 @@
Feature: Update job
In order to get an applicant
As a recruiter
I should be able to manage my job posts

@javascript @job-create
Scenario: Test Select2
Given I go to job board page
When I fill in select2 search "l" with "Berlin" and I choose "10117 Berlin"
And I wait for the ajax response
And I wait for 10 seconds
#And I save "job title and location" form
#And I wait for the ajax response
#Then I should see "Test Job"
9 changes: 6 additions & 3 deletions module/Applications/config/module.config.php
Expand Up @@ -9,7 +9,10 @@

namespace Applications;

use Applications\Controller\ApplyController;
use Applications\Controller\CommentController;
use Applications\Controller\ManageController;
use Applications\Mail\Forward;
use Zend\ServiceManager\Factory\InvokableFactory;

return [
Expand Down Expand Up @@ -84,13 +87,13 @@
'controllers' => [
'invokables' => [
'Applications\Controller\Index' => 'Applications\Controller\IndexController',
'Applications\Controller\Apply' => 'Applications\Controller\ApplyController',
'Applications/CommentController' => 'Applications\Controller\CommentController',
'Applications/Console' => 'Applications\Controller\ConsoleController',
'Applications\Controller\MultiManage' => 'Applications\Controller\MultimanageController',
],
'factories' => [
'Applications/Controller/Manage' => [ManageController::class,'factory'],
'Applications\Controller\Apply' => [ApplyController::class,'factory'],
'Applications/CommentController' => [CommentController::class,'factory'],
]
],

Expand Down Expand Up @@ -231,12 +234,12 @@
'mails' => [
'invokables' => [
'Applications/StatusChange' => 'Applications\Mail\StatusChange',
'Applications/Forward' => 'Applications\Mail\Forward',
'Applications/CarbonCopy' => 'Applications\Mail\ApplicationCarbonCopy',
],
'factories' => [
'Applications/NewApplication' => 'Applications\Factory\Mail\NewApplicationFactory',
Mail\Confirmation::class => Factory\Mail\ConfirmationFactory::class,
'Applications/Forward' => [Forward::class,'factory'],
],
'aliases' => [
'Applications/Confirmation' => Mail\Confirmation::class,
Expand Down