manage_software.feature
2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Feature:
As a administrator of a software
I want to manage it
Background:
Given "MpogSoftwarePlugin" plugin is enabled
And I am logged in as admin
And I go to /admin/plugins
And I check "MpogSoftwarePlugin"
And I press "Save changes"
And SoftwareInfo has initial default values on database
@selenium
Scenario: Deactivate a software
Given the following software language
| programing_language | version | operating_system |
| Python | 1.0 | Linux |
And the following software databases
| database_name | version | operating_system |
| PostgreSQL | 1.0 | Linux |
And the following softwares
| name | acronym | operating_platform | software_language | software_database |
| teste | ts | I dont know | Python | PostgreSQL |
And I go to /plugin/mpog_software/archive_software
And I should see "teste"
And I follow "Deactivate software"
And I confirm the "Do you want to deactivate this software?" dialog
And I go to /search/communities
And I fill in "search-input" with "teste"
And I press "Search"
Then I should not see "teste" within "search-profile-item"
@selenium
Scenario: Activate a deactivated software
Given the following software language
| programing_language | version | operating_system |
| Python | 1.0 | Linux |
And the following software databases
| database_name | version | operating_system |
| PostgreSQL | 1.0 | Linux |
And the following softwares
| name | acronym | operating_platform | software_language | software_database |
| teste | ts | I dont know | Python | PostgreSQL |
And I go to /plugin/mpog_software/archive_software
And I should see "teste"
And I follow "Deactivate software"
And I confirm the "Do you want to deactivate this software?" dialog
And I go to /search/communities
And I fill in "search-input" with "teste"
And I press "Search"
And I should not see "Teste" within "search-profile-item"
And I go to /plugin/mpog_software/archive_software
And I should see "teste"
And I follow "Activate Software"
And I confirm the "Do you want to activate this software?" dialog
And I follow "Communities"
And I fill in "search-input" with "teste"
And I press "Search"
Then I should see "teste" within "search-profile-item"