Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

FrontendInitialResourceUITest.java 851B

12345678910111213141516171819202122232425262728293031
  1. package com.vaadin.tests.resources;
  2. import static org.junit.Assert.assertEquals;
  3. import org.junit.Test;
  4. import org.openqa.selenium.By;
  5. import com.vaadin.testbench.parallel.BrowserUtil;
  6. import com.vaadin.tests.tb3.MultiBrowserTest;
  7. public class FrontendInitialResourceUITest extends MultiBrowserTest {
  8. @Test
  9. public void correctEs5Es6FileImportedThroughFrontend() {
  10. openTestURL();
  11. String es;
  12. if (BrowserUtil.isIE(getDesiredCapabilities())) {
  13. es = "es5";
  14. } else {
  15. es = "es6";
  16. }
  17. if (BrowserUtil.isIE(getDesiredCapabilities())) {
  18. // For some reason needed by IE11
  19. testBench().disableWaitForVaadin();
  20. }
  21. assertEquals("/VAADIN/frontend/" + es + "/logFilename.js",
  22. findElement(By.tagName("body")).getText());
  23. }
  24. }