software_registration.feature
1.84 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
Feature: software registration
As a user
I want to create a new software
So that I can have software communities on my network
Background:
Given "MpogSoftwarePlugin" plugin is enabled
And SoftwareInfo has initial default values on database
And I am logged in as admin
And I go to /admin/plugins
And I check "MpogSoftwarePlugin"
And I press "Save changes"
Scenario: Show library fields when click in New Library
Given I go to admin_user's control panel
And I follow "Manage my groups"
And I follow "Create a new software"
And I follow "New Library"
Then I should see "Name"
Then I should see "Version"
Then I should see "License"
@selenium
Scenario: Show SoftwareLangue fields when click in New Language
Given I go to admin_user's control panel
And I follow "Manage my groups"
And I follow "Create a new software"
And I follow "New language"
And I should see "3" of this selector ".software-language-table"
And I follow "Delete"
Then I should see "2" of this selector ".software-language-table"
#3 because one is always hidden
@selenium
Scenario: Show databasefields when click in New database
Given I go to admin_user's control panel
And I follow "Manage my groups"
And I follow "Create a new software"
And I follow "New Database"
And I should see "3" of this selector ".database-table"
And I follow "Delete"
Then I should see "2" of this selector ".database-table"
#3 because one is always hidden
@selenium
Scenario: Delete software libraries
Given I go to admin_user's control panel
And I follow "Manage my groups"
And I follow "Create a new software"
And I follow "New Library"
And I should see "2" of this selector ".library-table"
And I follow "Delete"
Then I should see "1" of this selector ".library-table"