Add fleet action dialog with server selection
This commit is contained in:
@@ -59,7 +59,7 @@ describe('lifecycle impact copy', () => {
|
||||
|
||||
it('does not confuse unknown or invalid player counts with an empty lobby', () => {
|
||||
for (const players of [null, -1, NaN, 1.5]) expect(lifecycleImpact('destroy', players, 30))
|
||||
.toBe('Player count is unknown. Removal waits for a live check confirming the lobby is empty.');
|
||||
.toBe('Player count is unknown. Destruction waits for a live check confirming the lobby is empty.');
|
||||
expect(lifecycleImpact('rebuild', 0, 30)).toBe('The lobby is currently empty. A live check will confirm this before rebuild begins.');
|
||||
});
|
||||
|
||||
@@ -89,14 +89,14 @@ describe('contextual lifecycle confirmation', () => {
|
||||
expect(body).not.toContain('Start the existing container');
|
||||
});
|
||||
|
||||
it('uses Remove server consistently and preserves recorded history in the explanation', () => {
|
||||
it('uses Destroy server consistently and preserves recorded history in the explanation', () => {
|
||||
const body = render(DestroyServerModal, { props: { open: true, name: server.name, players: 4, round: 30 } }).body;
|
||||
expect(body).toContain('Remove Kino Der Toten · Lobby 1?');
|
||||
expect(body).toContain('Destroy Kino Der Toten · Lobby 1?');
|
||||
expect(body).toContain('4 players are in round 30.');
|
||||
expect(body).toContain('Remove server when empty');
|
||||
expect(body).toContain('Destroy server when empty');
|
||||
expect(body).toContain('recorded history');
|
||||
expect(body).not.toContain('campaign details');
|
||||
expect(actionLabels.destroy).toBe('Remove');
|
||||
expect(actionCompleted.destroy).toBe('Server removed');
|
||||
expect(actionLabels.destroy).toBe('Destroy');
|
||||
expect(actionCompleted.destroy).toBe('Server destroyed');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user