Utilisateur:Skalman/test/spec
Apparence
This page is a BDD test spec, written in natural language. The syntax must be exactly correct.
Story: Add translations to fr-wikt
[modifier le wikicode]Scenario: Add first translation
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} {{trad-fin}}
- When using translation form 1
- And I enter language "en"
- And I leave the language field
- Then the current language should be "anglais"
- When I enter word "distinction"
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} {{trad-fin}}
Scenario: Use autocomplete
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} {{trad-fin}}
- When using translation form 1
- And I enter language "angl"
- Then autocompletion should suggest "anglais"
- When I select autocompletion "anglais"
- Then the current language should be "anglais"
- When I leave the language field
- And I enter word "distinction"
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} {{trad-fin}}
Scenario: Add second translation
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} (''note'') {{trad-fin}}
- When using translation form 1
- And I enter language "en"
- And I leave the language field
- Then the current language should be "anglais"
- When I enter word "test"
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} (''note''), {{trad+|en|test}} {{trad-fin}}
Scenario: Add translation to a page with multiple translation lists
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} {{trad-fin}} {{trad-début|{{en particulier|nocat=1}} Indication, séparation des divers sens qu’une proposition peut recevoir.|2}} {{trad-fin}} {{trad-début|Opération de l’esprit par laquelle on distingue une chose d'une autre.|3}} {{trad-fin}}
- When using translation form 2
- And I enter language "en"
- And I leave the language field
- Then the current language should be "anglais"
- When I enter word "distinction"
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} {{trad-fin}} {{trad-début|{{en particulier|nocat=1}} Indication, séparation des divers sens qu’une proposition peut recevoir.|2}} * {{T|en}} : {{trad+|en|distinction}} {{trad-fin}} {{trad-début|Opération de l’esprit par laquelle on distingue une chose d'une autre.|3}} {{trad-fin}}
Scenario: Add translation with gender
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} {{trad-fin}}
- When using translation form 1
- And I enter language "ca"
- And I leave the language field
- Then the current language should be "catalan"
- When I enter word "distinció"
- And I select gender "fém."
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|ca}} : {{trad+|ca|distinció|f}} {{trad-fin}}
Scenario: Correct language sorting (1/2)
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} {{trad-fin}}
- When using translation form 1
- And I enter language "de"
- And I leave the language field
- Then the current language should be "allemand"
- When I enter word "Unterschied"
- And I click the submission button
- Then I should be asked whether the word is actually capitalized
- When I confirm the word is capitalized
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|de}} : {{trad+|de|Unterschied}} * {{T|en}} : {{trad+|en|distinction}} {{trad-fin}}
Scenario: Correct language sorting (2/2)
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|de}} : {{trad+|de|Unterschied}} * {{T|ca}} : {{trad-|ca|distinció}} {{trad-fin}}
- When using translation form 1
- And I enter language "en"
- And I leave the language field
- Then the current language should be "anglais"
- When I enter word "distinction"
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|de}} : {{trad+|de|Unterschied}} * {{T|en}} : {{trad+|en|distinction}} * {{T|ca}} : {{trad-|ca|distinció}} {{trad-fin}}
Scenario: Ignoring "missing translation"
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} {{ébauche-trad}} {{trad-fin}}
- When using translation form 1
- And I enter language "en"
- And I leave the language field
- Then the current language should be "anglais"
- When I enter word "distinction"
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} {{ébauche-trad}} {{trad-fin}}
Scenario: Add translation in "International conventions"
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} {{trad-fin}}
- When using translation form 1
- And I enter language "conv"
- And I leave the language field
- Then the current language should be "conventions internationales"
- When I enter word "test"
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|conv}} : ''{{trad+|conv|test}}'' * {{T|en}} : {{trad+|en|distinction}} {{trad-fin}}
Scenario: Replace language code with language name according to wiki local settings (1/2)
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} {{trad-fin}}
- When using translation form 1
- And I enter language "hu"
- And I leave the language field
- Then the current language should be "hongrois"
- Then I should be asked whether I prefer "hu"
- When I enter word "különbségtétel"
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} * {{T|hu}} : {{trad+|hu|különbségtétel}} {{trad-fin}}
Scenario: Replace language code with language name according to wiki local settings (2/2)
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} {{trad-fin}}
- When using translation form 1
- And I enter language "hu"
- And I leave the language field
- Then the current language should be "hongrois"
- Then I should be asked whether I prefer "hu"
- When I confirm I want "hu" to be used
- Then the current language should be "hu"
- When I enter word "test"
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} * {{T|huo}} : {{trad--|huo|test}} {{trad-fin}}
Scenario: Properly ignore template:ébauche-trad (1/2)
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} * {{T|ca}} : {{trad-|ca|distinció}} {{ébauche-trad}} {{trad-fin}}
- When using translation form 1
- And I enter language "bg"
- And I leave the language field
- Then the current language should be "bulgare"
- When I enter word "разлика"
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} * {{T|bg}} : {{trad+|bg|разлика}} * {{T|ca}} : {{trad-|ca|distinció}} {{ébauche-trad}} {{trad-fin}}
Scenario: Properly ignore template:ébauche-trad (2/2)
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} {{ébauche-trad}} * {{T|en}} : {{trad+|en|distinction}} * {{T|ca}} : {{trad-|ca|distinció}} {{trad-fin}}
- When using translation form 1
- And I enter language "de"
- And I leave the language field
- Then the current language should be "allemand"
- When I enter word "Unterschied"
- And I submit the translation form
- Then the current wikitext should be
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|de}} : {{trad+|de|Unterschied}} {{ébauche-trad}} * {{T|en}} : {{trad+|en|distinction}} * {{T|ca}} : {{trad-|ca|distinció}} {{trad-fin}}
Scenario: Submit feedback
[modifier le wikicode]- Given the page "distinction"
- And the wikitext
== {{langue|fr}} == === {{S|nom|fr}} === {{fr-rég|dis.tɛ̃k.sjɔ̃|s=distinction}} '''distinction''' # [[action|Action]] de [[séparer]] [[nettement]] une [[chose]] d’une [[autre]]. ==== {{S|traductions}} ==== {{trad-début|Action de séparer nettement une chose d’une autre.|1}} * {{T|en}} : {{trad+|en|distinction}} {{trad-fin}}
- When using translation form 1
- And I click the "More" button
- And I click on "Report a bug"
- Then the feedback GUI should appear
- When I type in the message field "English translation inserted in the form 1 is not correct ~~~~"
- And I type in the header field "Translation error in distinction"
- And I submit the feedback form
- Then the submitted wikitext should be
== Translation error in distinction == English translation inserted in the form 1 is not correct ~~~~