Remove named argument as they are deprecated for composable functions

This commit is contained in:
Wolf-Martell Montwé 2024-02-08 18:03:29 +01:00
parent 58de14b728
commit 32277205e5
No known key found for this signature in database
GPG key ID: 6D45B21512ACBF72
2 changed files with 15 additions and 15 deletions

View file

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

View file

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