Skip to content

Commit

Permalink
fix: minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaltation committed Oct 9, 2024
1 parent fdf9e78 commit 9c9ccc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/client/ui/DocumentSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
Expand Down
4 changes: 3 additions & 1 deletion test/nbrowser/DocTypeConversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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/);
});
Expand Down

0 comments on commit 9c9ccc4

Please sign in to comment.