Skip to content

Commit

Permalink
Fix test when not running it in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- committed Nov 4, 2021
1 parent f391fe1 commit ec830aa
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@

package com.vaadin.flow;

import org.junit.Assert;
import org.junit.Test;

import com.vaadin.flow.testutil.ChromeBrowserTest;

import org.junit.Test;

public class InvalidLocationIT extends ChromeBrowserTest {

// #9443
@Test
public void invalidCharactersOnPath_UiNotServed() {
open();

Assert.assertTrue("Faulty URL didn't return 400 error page.",
getDriver().getPageSource().contains("400"));
checkLogsForErrors(msg -> msg.contains("the server responded with a status of 400"));
}

@Override
Expand Down

0 comments on commit ec830aa

Please sign in to comment.