aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/themes/chameleon/ChameleonNotificationTest.java
blob: a8654eb6bbc5bf2da640eb0f8a82f83c35b70d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.vaadin.tests.themes.chameleon;

import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat;

import java.io.IOException;

import org.junit.Test;

import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.NotificationElement;
import com.vaadin.tests.tb3.MultiBrowserTest;

public class ChameleonNotificationTest extends MultiBrowserTest {
    @Test
    public void gradientPathIsCorrect() throws IOException {
        openTestURL();
        $(ButtonElement.class).first().click();

        NotificationElement notificationElement = $(NotificationElement.class)
                .first();

        assertThat(notificationElement.getCssValue("background-image"),
                containsString("chameleon/img/grad"));
    }
}