2026-08-12 14:02:25 +03:00
|
|
|
import { describe, it, expect } from 'vitest';
|
|
|
|
|
import { freshPlayer } from './_setup/harness.js';
|
|
|
|
|
|
|
|
|
|
describe('e2e-prod: player', () => {
|
2026-09-24 14:24:45 +03:00
|
|
|
it('device login yields a profile with a player id and balances and items arrays', async () => {
|
2026-08-12 14:02:25 +03:00
|
|
|
const client = await freshPlayer();
|
|
|
|
|
const profile = await client.player.reload();
|
|
|
|
|
expect(profile.player?.id).toBeTruthy();
|
2026-09-24 14:24:45 +03:00
|
|
|
expect(Array.isArray(profile.balances)).toBe(true);
|
|
|
|
|
expect(Array.isArray(profile.items)).toBe(true);
|
2026-08-12 14:02:25 +03:00
|
|
|
});
|
|
|
|
|
});
|