Update usages of test utilities preferring RTL (#10203)
This commit is contained in:
parent
17bbd4eaac
commit
c29e5f18ff
37 changed files with 341 additions and 424 deletions
|
@ -399,7 +399,7 @@ export default class AliasSettings extends React.Component<IProps, IState> {
|
|||
return (
|
||||
<div className="mx_AliasSettings">
|
||||
<SettingsFieldset
|
||||
data-test-id="published-address-fieldset"
|
||||
data-testid="published-address-fieldset"
|
||||
legend={_t("Published Addresses")}
|
||||
description={
|
||||
<>
|
||||
|
@ -450,7 +450,7 @@ export default class AliasSettings extends React.Component<IProps, IState> {
|
|||
/>
|
||||
</SettingsFieldset>
|
||||
<SettingsFieldset
|
||||
data-test-id="local-address-fieldset"
|
||||
data-testid="local-address-fieldset"
|
||||
legend={_t("Local Addresses")}
|
||||
description={
|
||||
isSpaceRoom
|
||||
|
|
|
@ -93,7 +93,7 @@ const SpaceSettingsVisibilityTab: React.FC<IProps> = ({ matrixClient: cli, space
|
|||
advancedSection = (
|
||||
<div>
|
||||
<AccessibleButton
|
||||
data-test-id="toggle-guest-access-btn"
|
||||
data-testid="toggle-guest-access-btn"
|
||||
onClick={toggleAdvancedSection}
|
||||
kind="link"
|
||||
className="mx_SettingsTab_showAdvanced"
|
||||
|
@ -141,13 +141,13 @@ const SpaceSettingsVisibilityTab: React.FC<IProps> = ({ matrixClient: cli, space
|
|||
<div className="mx_SettingsTab_heading">{_t("Visibility")}</div>
|
||||
|
||||
{error && (
|
||||
<div data-test-id="space-settings-error" className="mx_SpaceRoomView_errorText">
|
||||
<div data-testid="space-settings-error" className="mx_SpaceRoomView_errorText">
|
||||
{error}
|
||||
</div>
|
||||
)}
|
||||
|
||||
<SettingsFieldset
|
||||
data-test-id="access-fieldset"
|
||||
data-testid="access-fieldset"
|
||||
legend={_t("Access")}
|
||||
description={_t("Decide who can view and join %(spaceName)s.", { spaceName: space.name })}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue