Skip to content

Commit

Permalink
Fix failing Docker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
georgegevoian committed Nov 6, 2023
1 parent ded6772 commit 3ae68bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/nbrowser/ActionLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/nbrowser/ChoiceList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
3 changes: 2 additions & 1 deletion test/nbrowser/gristUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 3ae68bb

Please sign in to comment.