/
work_import_da.feature
80 lines (79 loc) · 3.57 KB
/
work_import_da.feature
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@works
Feature: Import Works from deviantart
In order to have an archive full of works
As an author
I want to create new works by importing them from deviantart
@import_da_title_link
Scenario: Creating a new art work from a deviantart title link with automatic metadata
Given basic tags
And I am logged in as "cosomeone"
When I go to the import page
And I fill in "urls" with "http://bingeling.deviantart.com/art/Flooded-45971613"
When I press "Import"
Then I should see "Preview"
And I should find "Flooded_by_bingeling.jpg" within "img[src]"
And I should see "Digital Art" within "dd.freeform"
And I should see "People" within "dd.freeform"
And I should see "Vector" within "dd.freeform"
And I should see "Published:2007-01-04"
And I should see "Flooded" within "h2.title"
And I should see "done with Photoshop 7" within "div.notes"
And I should see "but they were definitely helpful" within "div.notes"
And I should not see "deviant"
And I should not see "bingeling"
And I should not see "Visit the Artist"
And I should not see "Download Image"
When I press "Post"
Then I should see "Work was successfully posted."
When I am on cosomeone's user page
#'
Then I should see "Flooded"
# @import_da_gallery_link
# Scenario: TODO: Creating a new art work from a deviantart gallery link with automatic metadata
# Given basic tags
# And I am logged in as "cosomeone"
# When I go to the import page
# And I fill in "urls" with "http://bingeling.deviantart.com/gallery/#/drdbx9"
# When I press "Import"
# Then I should see "Preview"
# And I should find "Flooded_by_bingeling.jpg" within "img[src]"
# And I should see "Digital Art" within "dd.freeform"
# And I should see "People" within "dd.freeform"
# And I should see "Vector" within "dd.freeform"
# And I should see "Published:2007-01-04"
# And I should see "Flooded" within "h2.title"
# And I should see "done with Photoshop 7" within "div.notes"
# And I should see "but they were definitely helpful" within "div.notes"
# And I should not see "deviant"
# And I should not see "bingeling"
# And I should not see "Visit the Artist"
# And I should not see "Download Image"
# When I press "Post"
# Then I should see "Work was successfully posted."
# When I am on cosomeone's user page
# #'
# Then I should see "Flooded"
@import_da_fic
Scenario: Creating a new fic from an deviantart
Given basic tags
And I am logged in as "cosomeone"
When I go to the import page
And I fill in "urls" with "http://cesy12.deviantart.com/art/AO3-testing-text-196158032"
When I press "Import"
Then I should see "Preview"
And I should see "Scraps" within "dd.freeform"
And I should see "Published:2011-02-04"
And I should see "AO3 testing text" within "h2.title"
And I should see "This is the description of the story above." within "div.notes"
And I should see "This is a text, like a story or something."
And I should see "Complete with some paragraphs."
And I should not see "deviant"
And I should not see "cesy"
And I should not see "AO3 testing text" within "#chapters"
And I should not see "Visit the Artist"
And I should not see "Download File"
When I press "Post"
Then I should see "Work was successfully posted."
When I am on cosomeone's user page
#'
Then I should see "AO3 testing text"