diff --git a/app/test/processing/app/ui/WelcomeSurveyTest.kt b/app/test/processing/app/ui/WelcomeSurveyTest.kt new file mode 100644 index 000000000..199047295 --- /dev/null +++ b/app/test/processing/app/ui/WelcomeSurveyTest.kt @@ -0,0 +1,42 @@ +package processing.app.ui + +import androidx.compose.ui.test.* +import processing.app.ui.theme.PDETheme +import kotlin.test.Test + +@OptIn(ExperimentalTestApi::class) +class WelcomeSurveyTest { + + @Test + fun `survey card title is displayed`() = runDesktopComposeUiTest { + setContent { + PDETheme { + SurveyInvitation() + } + } + + onNodeWithText("Take the Community Survey").assertIsDisplayed() + } + + @Test + fun `survey card description is displayed`() = runDesktopComposeUiTest { + setContent { + PDETheme { + SurveyInvitation() + } + } + + onNodeWithText("Processing is free, open-source, and shaped by its community. Your answers help us focus on what matters most.").assertIsDisplayed() + } + + @Test + fun `survey card is clickable`() = runDesktopComposeUiTest { + setContent { + PDETheme { + SurveyInvitation() + } + } + + onNodeWithText("Take the Community Survey").performClick() + } +} \ No newline at end of file