package com.radiola.ui.stations

import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithText
import com.radiola.ui.theme.RadiolaTheme
import org.junit.Rule
import org.junit.Test

class StationsScreenTest {

    @get:Rule
    val composeTestRule = createComposeRule()

    @Test
    fun stationsScreen_showsTitle() {
        composeTestRule.setContent {
            RadiolaTheme {
                StationsScreen(onStationClick = {})
            }
        }

        composeTestRule.onNodeWithText("Радио").assertIsDisplayed()
    }
}
