Charters: tests follow the popup, the tutorial waits only for a picker on screen
The tutorial waited for a charter whenever one was due, also where the picker is not shown (seeded tests); it now waits only while the picker is open. Two tests still read the old wording for own subsea cables (level 9 or Tier 1 now), and the route fuzz signs the classic charter on both pages when a normal game starts, so neither shows charter buttons the other has not.
This commit is contained in:
parent
934a83588a
commit
50e0119497
3 changed files with 6 additions and 3 deletions
|
|
@ -95,6 +95,9 @@ function playGame(pages, seed, opts = {}) {
|
|||
const [s0, s1] = both('start', st);
|
||||
same('start', s0, s1);
|
||||
note('start ' + JSON.stringify(st));
|
||||
// A normal game signs its charter first: a popup on newer pages (which seeded pages skip), a card on older ones. Both
|
||||
// sign the classic one at once, so neither shows charter buttons the other has not, and the game plays as it did.
|
||||
if (kind === 'normal') { const [c0, c1] = both('press', { act: 'charter', args: { k: 'global' } }); same('charter', c0, c1); }
|
||||
if (!div) compare('start');
|
||||
|
||||
// A screen's buttons on both pages; the same list or a divergence.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue