aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/components/customlayout/CustomLayoutWithMissingSlotTest.java
blob: 6b50e3f5fa494d45657c8bac476f57cb5de91fa5 (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
package com.vaadin.tests.components.customlayout;

import static org.junit.Assert.assertEquals;

import java.util.logging.Level;

import org.junit.Test;

import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.tests.tb3.SingleBrowserTest;

public class CustomLayoutWithMissingSlotTest extends SingleBrowserTest {

    @Test
    public void ensureRenderedWithoutErrors() {
        setDebug(true);
        openTestURL();
        assertEquals("", getLogRow(0).trim());
        $(ButtonElement.class).first().click();
        assertNoDebugMessage(Level.SEVERE);
        assertEquals("1. Button clicked", getLogRow(0));
    }

}