diff --git a/features/import.feature b/features/import.feature index 81b9ec8ed7..b47dbd2c45 100644 --- a/features/import.feature +++ b/features/import.feature @@ -1,35 +1,11 @@ @test-cluster-2 @import Feature: Import -Scenario: Better BibTeX Import 1 - When I import 1 reference with 1 attachment from 'import/Better BibTeX.001.bib' - Then the library should match 'import/Better BibTeX.001.json' - Scenario: Better BibTeX Import 2 When I import 2 references from 'import/Better BibTeX.002.bib' Then the library should match 'import/Better BibTeX.002.json' And the markdown citation for Torre2008 should be '["\\(Torre & Verducci, 2008\\)"]' -Scenario: Better BibTeX Import 3 - When I import 2 references from 'import/Better BibTeX.003.bib' - Then the library should match 'import/Better BibTeX.003.json' - -Scenario: Better BibTeX Import 4 - When I import 1 reference from 'import/Better BibTeX.004.bib' - Then the library should match 'import/Better BibTeX.004.json' - -Scenario: Better BibTeX Import 5 - When I import 1 reference from 'import/Better BibTeX.005.bib' - Then the library should match 'import/Better BibTeX.005.json' - -Scenario: Better BibTeX Import 6 - When I import 1 reference from 'import/Better BibTeX.006.bib' - Then the library should match 'import/Better BibTeX.006.json' - -Scenario: Better BibTeX Import 7 - When I import 1 reference from 'import/Better BibTeX.007.bib' - Then the library should match 'import/Better BibTeX.007.json' - Scenario: option to mantain the braces and special commands in titles or all fields #100 When I set preference translators.better-bibtex.rawImports to true And I set export option Export Collections to false @@ -37,63 +13,34 @@ Scenario: option to mantain the braces and special commands in titles or all fie Then the library should match 'import/Better BibTeX.007.raw.json' And a library export using 'Better BibTeX' should match 'import/Better BibTeX.007.bib' -Scenario: Better BibTeX Import 8 - When I import 1 reference from 'import/Better BibTeX.008.bib' - Then the library should match 'import/Better BibTeX.008.json' - -Scenario: Malformed BibTeX entry on import - When I import 3 references with 2 attachment from 'import/Better BibTeX.009.bib' - Then the library should match 'import/Better BibTeX.009.json' - -Scenario: Better BibTeX Import 10 - When I import 1 reference with 1 attachment from 'import/Better BibTeX.010.bib' - Then the library should match 'import/Better BibTeX.010.json' - -Scenario: Better BibTeX Import 11 - When I import 1 reference with 1 attachment from 'import/Better BibTeX.011.bib' - Then the library should match 'import/Better BibTeX.011.json' - -Scenario: Better BibTeX Import 12 - When I import 1 reference from 'import/Better BibTeX.012.bib' - Then the library should match 'import/Better BibTeX.012.json' - -Scenario: Better BibTeX Import 13 - When I import 2 references from 'import/Better BibTeX.013.bib' - Then the library should match 'import/Better BibTeX.013.json' - -Scenario: Better BibTeX Import 14 - When I import 1 reference from 'import/Better BibTeX.014.bib' - Then the library should match 'import/Better BibTeX.014.json' - -Scenario: Better BibTeX Import 15 - When I import 1 reference with 2 attachments from 'import/Better BibTeX.015.bib' - Then the library should match 'import/Better BibTeX.015.json' - -Scenario: Literal names in braces - When I import 1 reference from 'import/Literal names.bib' - Then the library should match 'import/Literal names.json' - -Scenario: Author splitter failure (89) - When I import 1 reference from 'import/Author splitter failure.bib' - Then the library should match 'import/Author splitter failure.json' - -Scenario: Failure to handle unparsed author names (92) - When I import 1 reference from 'import/Failure to handle unparsed author names (92).bib' - Then the library should match 'import/Failure to handle unparsed author names (92).json' - -Scenario: Problem when importing BibTeX entries with square brackets #94 - When I import 1 reference from 'import/Problem when importing BibTeX entries with square brackets #94.bib' - Then the library should match 'import/Problem when importing BibTeX entries with square brackets #94.json' - -Scenario: Problem when importing BibTeX entries with percent sign #95 or preamble #96 - When I import 1 reference from 'import/Problem when importing BibTeX entries with percent sign #95 or preamble #96.bib' - Then the library should match 'import/Problem when importing BibTeX entries with percent sign #95 or preamble #96.json' +Scenario Outline: Better BibTeX Import + When I import reference from 'import/.bib' + Then the library should match 'import/.json' + + Examples: + | file | references | + | Better BibTeX.001 | 2 | + | Better BibTeX.003 | 2 | + | Better BibTeX.004 | 1 | + | Better BibTeX.005 | 1 | + | Better BibTeX.006 | 1 | + | Better BibTeX.007 | 1 | + | Better BibTeX.008 | 1 | + | Better BibTeX.009 | 5 | + | Better BibTeX.010 | 2 | + | Better BibTeX.011 | 2 | + | Better BibTeX.012 | 1 | + | Better BibTeX.013 | 2 | + | Better BibTeX.014 | 1 | + | Better BibTeX.015 | 3 | + | Literal names | 1 | + | Author splitter failure | 1 | + | Failure to handle unparsed author names (92) | 1 | + | Problem when importing BibTeX entries with square brackets #94 | 1 | + | Problem when importing BibTeX entries with percent sign #95 or preamble #96 | 1 | + | Import fails to perform @String substitutions #154 | 1 | #@97 #Scenario: Maintain the JabRef group and subgroup structure when importing a BibTeX db #97 # When I import 915 reference with 42 attachments from 'import/Maintain the JabRef group and subgroup structure when importing a BibTeX db #97.bib' # Then the library should match 'import/Maintain the JabRef group and subgroup structure when importing a BibTeX db #97.json' - -Scenario: Import fails to perform @String substitutions #154 - When I import 1 reference from 'import/Import fails to perform @String substitutions #154.bib' - Then the library should match 'import/Import fails to perform @String substitutions #154.json'