Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T350879: Special Property: Item #513

Merged
merged 13 commits into from
Nov 29, 2023
21 changes: 21 additions & 0 deletions test/specs/repo/special-property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,25 @@ describe( 'Special:NewProperty', function () {

assert.strictEqual( numberOfPropertiesAfter, numberOfPropertiesBefore + 1 );
} );

it( 'Should be able to create a new property of datatype Item', async () => {
await SpecialNewProperty.open();

await SpecialNewProperty.labelInput.setValue( 'Cool Item label' );
await SpecialNewProperty.descriptionInput.setValue( 'Cool Item description' );
await SpecialNewProperty.aliasesInput.setValue(
'Great Item!|Greatest Item!'
);

await SpecialNewProperty.datatypeInput.click();
await browser.pause( 1 * 1000 );
await $( '.oo-ui-labelElement-label=Item' ).click();
RickiJay-WMDE marked this conversation as resolved.
Show resolved Hide resolved

await SpecialNewProperty.submit();

const dataTypeText = await $(
'.wikibase-propertyview-datatype-value'
).getText();
assert.strictEqual( dataTypeText, 'Item' );
} );
} );