diff --git a/app/client/ui/DocumentSettings.ts b/app/client/ui/DocumentSettings.ts index dc8b533c..c619591f 100644 --- a/app/client/ui/DocumentSettings.ts +++ b/app/client/ui/DocumentSettings.ts @@ -363,7 +363,7 @@ export class DocSettingsPage extends Disposable { description: string, itemTestId: DomElementMethod | null }) => { - return radioCheckboxOption(selected, type, dom('div', + return radioCheckboxOption(selected, type, dom('div', dom('div', dom('strong', label), ), diff --git a/test/nbrowser/DocTypeConversion.ts b/test/nbrowser/DocTypeConversion.ts index 62d426e9..7522e088 100644 --- a/test/nbrowser/DocTypeConversion.ts +++ b/test/nbrowser/DocTypeConversion.ts @@ -28,7 +28,7 @@ describe("Document Type Conversion", function () { assert.isTrue(await button.visible()); } - async function convert(from: String, to: TypeLabels) { + async function convert(from: TypeLabels, to: TypeLabels) { await gu.openDocumentSettings(); // Ensure that initial document type is the expected one. @@ -145,6 +145,8 @@ describe("Document Type Conversion", function () { // Check that we have an informative tooltip. await start.mouseMove(); + // Note that .test-tooltip may appear blank a first time, + // hence the necessity to use waitToPass instead of findWait. await gu.waitToPass(async () => { assert.match(await driver.find('.test-tooltip').getText(), /Only available to document owners/); });