fix: minor typos

This commit is contained in:
Grégoire Cutzach 2024-10-09 20:13:01 +02:00
parent fdf9e782fa
commit 9c9ccc4c15
No known key found for this signature in database
GPG Key ID: AA4155BE23C375E6
2 changed files with 4 additions and 2 deletions

View File

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

View File

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