Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export default function RadioButtons(props: RadioButtonsProps) {
inline,
displayMode,
hideLabel,
fieldMetadata
fieldMetadata,
disabled
} = props;
const [theSelectedButton, setSelectedButton] = useState(value);

Expand Down Expand Up @@ -102,7 +103,7 @@ export default function RadioButtons(props: RadioButtonsProps) {
localePath,
thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName)
)}
control={<Radio key={theOption.key} color='primary' disabled={readOnly} />}
control={<Radio key={theOption.key} color='primary' disabled={readOnly || disabled} />}
/>
);
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,9 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
})}
</TableBody>
</Table>
{((readOnlyMode && (!rowData || rowData?.length === 0)) || (editableMode && (!referenceList || referenceList?.length === 0))) && (
{((readOnlyMode && (!rowData || rowData?.length === 0)) ||
(editableMode && (!referenceList || referenceList?.length === 0)) ||
(allowEditingInModal && (!rowData || rowData?.length === 0))) && (
<div className='no-records' id='no-records'>
{getGenericFieldsLocalizedValue('CosmosFields.fields.lists', 'No records found.')}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ test.describe('E2E test', () => {

selectedTestName = page.locator('div[data-test-id="6f64b45d01d11d8efd1693dfcb63b735"]');
await selectedTestName.click();
await page.locator('li:has-text("Table")').click();
await page.getByRole('option', { name: 'Table', exact: true }).click();

selectedProduct = page.locator('tr:has-text("Basic Product")');
const selectedProductRow = selectedProduct.locator('input[type="radio"]');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ test.describe('E2E test', () => {

/** Delete attachment */
await menuSelector.locator('li >> text="Delete"').click();
await expect(page.locator('div >> text="cableinfo.jpg"')).toBeVisible();
await expect(page.locator('div >> text="cablechat.jpg"')).toBeHidden();
await expect(page.locator('div >> text="cableinfo.jpg"')).toBeHidden();
await expect(page.locator('div >> text="cablechat.jpg"')).toBeVisible();
}, 10000);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ test.describe('E2E test', () => {
await expect(attributes.includes('readonly')).toBeFalsy();

/** Validation tests */
const validationMsg = 'Please enter a valid URL including the protocol (http://, https://, ftp://, etc.)';
const validationMsg = 'Please enter a valid URL including the protocol (http://, https:// etc.)';
await editableURL.fill('InvalidUrl');
await editableURL.blur();
await expect(page.locator(`p:has-text("${validationMsg}")`)).toBeVisible();
Expand Down
Loading