import { expect } from "chai"; import { runGQL } from "../e2e_helper"; let headers = { 'x-device-id': '123testDeviceId', } describe('Locale', function () { it('Check change locale', async () => { const query = ` {telemetry { i18n locale }}`; const result = await runGQL(query, headers); expect(result.data.telemetry.i18n).to.equal("Status here"); expect(result.data.telemetry.locale).to.equal("en"); expect(result.errors).to.be.undefined; // Español headers['accept-language'] = 'es'; const result_es = await runGQL(query, headers); expect(result_es.data.telemetry.i18n).to.equal("Estado aquí"); expect(result_es.data.telemetry.locale).to.equal("es"); expect(result_es.errors).to.be.undefined; }); });