mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Fix failing Docker tests (#724)
This commit is contained in:
parent
1a8e432d5d
commit
2f485c5435
@ -133,7 +133,7 @@ describe('ActionLog', function() {
|
||||
assert.equal(await gu.getActiveCell().getText(), 'f');
|
||||
|
||||
// Delete Table1Renamed.
|
||||
await gu.removeTable('Table1Renamed');
|
||||
await gu.removeTable('Table1Renamed', {dismissTips: true});
|
||||
await driver.findContent('.action_log label', /All tables/).find('input').click();
|
||||
|
||||
const item4 = await getActionLogItem(4);
|
||||
|
@ -454,7 +454,7 @@ describe('ChoiceList', function() {
|
||||
|
||||
it('should allow ChoiceList conversions for column used in summary', async function() {
|
||||
// Add a widget with a summary on column A.
|
||||
await gu.addNewSection(/Table/, /Table1/, {summarize: [/^A$/]});
|
||||
await gu.addNewSection(/Table/, /Table1/, {dismissTips: true, summarize: [/^A$/]});
|
||||
await testTextChoiceListConversions();
|
||||
await gu.undo();
|
||||
});
|
||||
|
@ -1237,8 +1237,9 @@ export async function renameColumn(col: IColHeader|string, newName: string) {
|
||||
/**
|
||||
* Removes a table using RAW data view.
|
||||
*/
|
||||
export async function removeTable(tableId: string) {
|
||||
export async function removeTable(tableId: string, options: {dismissTips?: boolean} = {}) {
|
||||
await driver.find(".test-tools-raw").click();
|
||||
if (options.dismissTips) { await dismissBehavioralPrompts(); }
|
||||
const tableIdList = await driver.findAll('.test-raw-data-table-id', e => e.getText());
|
||||
const tableIndex = tableIdList.indexOf(tableId);
|
||||
assert.isTrue(tableIndex >= 0, `No raw table with id ${tableId}`);
|
||||
|
Loading…
Reference in New Issue
Block a user