Changing choice test for a buggy chrome version (#490)

This commit is contained in:
jarek 2023-04-13 20:42:41 +02:00 committed by GitHub
parent 449265803b
commit 5959db9584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -831,24 +831,23 @@ describe('ChoiceList', function() {
await gu.sendKeys(await gu.pasteKey()); await gu.sendKeys(await gu.pasteKey());
await gu.sendKeys(await gu.pasteKey()); await gu.sendKeys(await gu.pasteKey());
await gu.sendKeys(Key.ENTER); await gu.sendKeys(Key.ENTER);
await clickEntry('three');
await gu.sendKeys(await gu.copyKey());
await clickEntry('two'); await clickEntry('two');
await gu.sendKeys(await gu.copyKey());
await gu.sendKeys(Key.ARROW_RIGHT); await gu.sendKeys(Key.ARROW_RIGHT);
await gu.sendKeys(await gu.pasteKey()); await gu.sendKeys(await gu.pasteKey());
await gu.sendKeys(Key.ENTER); await gu.sendKeys(Key.ENTER);
assert.deepEqual(await getEditModeChoiceLabels(), ["foofoo", "three", "twothree"]); assert.deepEqual(await getEditModeChoiceLabels(), ["foofoo", "three", "twotwo"]);
await saveChoiceEntries(); await saveChoiceEntries();
assert.deepEqual(await gu.getVisibleGridCells({ rowNums: [1, 2, 3], cols: [columnName] }), [ assert.deepEqual(await gu.getVisibleGridCells({ rowNums: [1, 2, 3], cols: [columnName] }), [
"foofoo", "foofoo",
"three", "three",
"twothree", "twotwo",
]); ]);
// Rename to bar, four and eight and do the change. // Rename to bar, four and eight and do the change.
await editChoiceEntries(); await editChoiceEntries();
await renameEntry("foofoo", "bar"); await renameEntry("foofoo", "bar");
await renameEntry("twothree", "four"); await renameEntry("twotwo", "four");
await renameEntry("three", "eight"); await renameEntry("three", "eight");
await saveChoiceEntries(); await saveChoiceEntries();
assert.deepEqual(await gu.getVisibleGridCells({ rowNums: [1, 2, 3], cols: [columnName] }), [ assert.deepEqual(await gu.getVisibleGridCells({ rowNums: [1, 2, 3], cols: [columnName] }), [