Use different Pokemon in tests to avoid failures

I would prefer if the test would still test if a mega gets an item,
which is why Charizard-Mega-Y was picked. It's unlikely to be banned,
but is powerful enough to stay in OU.

A safer choice would be an Arceus, but there is no code yet that
automatically gives a correct item to formes (may be worth fixing).
This commit is contained in:
Konrad Borowski 2017-08-07 22:53:54 +02:00
parent 6d41edf277
commit ccf4621c7d

View File

@ -17,15 +17,15 @@ fixture('Pokemon Showdown')
const expectedTeam = `=== [gen7] Untitled 1 ===
Abomasnow-Mega @ Abomasite\x20\x20
Ability: Snow Warning`;
Charizard-Mega-Y @ Charizardite Y\x20\x20
Ability: Drought`;
test('Teambuilder works', async t => {
await t.click('[name="close"]')
.click('[value="teambuilder"]')
.click('[name="newTop"]')
.click('[name="addPokemon"]')
.click('[data-entry="pokemon|Abomasnow-Mega"]')
.click('[data-entry="pokemon|Charizard-Mega-Y"]')
.click('[name="back"]')
.click('[name="back"]')
.click('[name="backup"]');