Merge pull request #392 from gristlabs/fix-language-test

ignore order of languages in test
This commit is contained in:
Paul Fitzpatrick 2023-01-04 22:38:36 -05:00 committed by GitHub
commit 8ca3f127e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ describe("Localization", function() {
await driver.navigate().refresh(); await driver.navigate().refresh();
assert.equal(await driver.findWait('.test-welcome-title', 3000).getText(), 'TestMessage'); assert.equal(await driver.findWait('.test-welcome-title', 3000).getText(), 'TestMessage');
const gristConfig: any = await driver.executeScript("return window.gristConfig"); const gristConfig: any = await driver.executeScript("return window.gristConfig");
assert.deepEqual(gristConfig.supportedLngs, [...existingLocales, 'pl']); assert.sameDeepMembers(gristConfig.supportedLngs, [...existingLocales, 'pl']);
}); });
}); });