Remove named argument as they are deprecated for composable functions
This commit is contained in:
parent
58de14b728
commit
32277205e5
2 changed files with 15 additions and 15 deletions
|
@ -46,8 +46,8 @@ class CommonTextFieldTest(
|
|||
fun `should be enabled by default`() = runComposeTest {
|
||||
setContent {
|
||||
testSubject(
|
||||
modifier = Modifier.testTag(testSubjectName),
|
||||
textFieldConfig = TextFieldConfig(
|
||||
Modifier.testTag(testSubjectName),
|
||||
TextFieldConfig(
|
||||
label = null,
|
||||
isEnabled = null,
|
||||
isReadOnly = false,
|
||||
|
@ -63,8 +63,8 @@ class CommonTextFieldTest(
|
|||
fun `should be disabled when enabled is false`() = runComposeTest {
|
||||
setContent {
|
||||
testSubject(
|
||||
modifier = Modifier.testTag(testSubjectName),
|
||||
textFieldConfig = TextFieldConfig(
|
||||
Modifier.testTag(testSubjectName),
|
||||
TextFieldConfig(
|
||||
label = null,
|
||||
isEnabled = false,
|
||||
isReadOnly = false,
|
||||
|
@ -80,8 +80,8 @@ class CommonTextFieldTest(
|
|||
fun `should show label when label is not null`() = runComposeTest {
|
||||
setContent {
|
||||
testSubject(
|
||||
modifier = Modifier.testTag(testSubjectName),
|
||||
textFieldConfig = TextFieldConfig(
|
||||
Modifier.testTag(testSubjectName),
|
||||
TextFieldConfig(
|
||||
label = LABEL,
|
||||
isEnabled = null,
|
||||
isReadOnly = false,
|
||||
|
@ -97,8 +97,8 @@ class CommonTextFieldTest(
|
|||
fun `should show asterisk when isRequired is true`() = runComposeTest {
|
||||
setContent {
|
||||
testSubject(
|
||||
modifier = Modifier.testTag(testSubjectName),
|
||||
textFieldConfig = TextFieldConfig(
|
||||
Modifier.testTag(testSubjectName),
|
||||
TextFieldConfig(
|
||||
label = LABEL,
|
||||
isEnabled = null,
|
||||
isReadOnly = false,
|
||||
|
@ -114,8 +114,8 @@ class CommonTextFieldTest(
|
|||
fun `should not show asterisk when isRequired is false`() = runComposeTest {
|
||||
setContent {
|
||||
testSubject(
|
||||
modifier = Modifier.testTag(testSubjectName),
|
||||
textFieldConfig = TextFieldConfig(
|
||||
Modifier.testTag(testSubjectName),
|
||||
TextFieldConfig(
|
||||
label = LABEL,
|
||||
isEnabled = null,
|
||||
isReadOnly = false,
|
||||
|
@ -131,8 +131,8 @@ class CommonTextFieldTest(
|
|||
fun `should not allow editing when isReadOnly is true`() = runComposeTest {
|
||||
setContent {
|
||||
testSubject(
|
||||
modifier = Modifier.testTag(testSubjectName),
|
||||
textFieldConfig = TextFieldConfig(
|
||||
Modifier.testTag(testSubjectName),
|
||||
TextFieldConfig(
|
||||
label = LABEL,
|
||||
isEnabled = null,
|
||||
isReadOnly = true,
|
||||
|
|
|
@ -37,9 +37,9 @@ class TextInputTextFieldTest(
|
|||
var value = testInput
|
||||
setContent {
|
||||
testSubject(
|
||||
value = value,
|
||||
onValueChange = { value = it },
|
||||
modifier = Modifier.testTag(testSubjectName),
|
||||
value,
|
||||
{ value = it },
|
||||
Modifier.testTag(testSubjectName),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue