As a Agency Admin
I want to remove a company from the system
So that the company no longer as access to PETS
===
Given I am logged in as a Agency Admin
When I Access the administration of PETS
And I click on Companies
And I select a company
Then I should see a Delete Company button
Given I have selected a company in the administration
When I press the Delete Company button
Then I see a alert saying 'When you delete a company, it can no longer be activated. The Company People will no longer be able to access PETS, Job Seekers that applied to a job in the company no longer will see the their applications to that company. Do you really want to proceed'
And I press No
And the alert will close
And I see the company editing form without any change
--
Given I pressed the Delete Company button
When I see the alert
And press yes
Then I should be redirected to the list of companies
And I should see the company with the status 'Inactive'
And No link on the company name
As a Agency Admin I want to remove a company from the system So that the company no longer as access to PETS
===
Given I am logged in as a Agency Admin When I Access the administration of PETS And I click on Companies And I select a company Then I should see a Delete Company button
Given I have selected a company in the administration When I press the Delete Company button Then I see a alert saying 'When you delete a company, it can no longer be activated. The Company People will no longer be able to access PETS, Job Seekers that applied to a job in the company no longer will see the their applications to that company. Do you really want to proceed' And I press No And the alert will close And I see the company editing form without any change
--
Given I pressed the Delete Company button When I see the alert And press yes Then I should be redirected to the list of companies And I should see the company with the status 'Inactive' And No link on the company name