Fix failing Docker tests (#724)

This commit is contained in:
George Gevoian 2023-11-06 12:49:32 -05:00 committed by GitHub
parent 1a8e432d5d
commit 2f485c5435
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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();
});

View File

@ -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}`);