import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
+import selenium.SeleneseTest;
import static util.ItUtils.projectDir;
"/ui/i18n/french-pack.html",
"/ui/i18n/locale-with-france-country.html",
"/ui/i18n/locale-with-swiss-country.html").build();
- // Use the old runner because it fails with the new Selenium runner
- orchestrator.executeSelenese(selenese);
+ new SeleneseTest(selenese).runOn(orchestrator);
}
}
}
if (pattern.startsWith("regexp:")) {
- find(selector).should().match(Pattern.compile(pattern.substring(7)));
+ String expectedRegEx = pattern.replaceFirst("regexp:", ".*") + ".*";
+ find(selector).should().match(Pattern.compile(expectedRegEx, Pattern.DOTALL));
return;
}
}
if (pattern.startsWith("regexp:")) {
- find(selector).should().not().match(Pattern.compile(pattern.substring(7)));
+ String expectedRegEx = pattern.replaceFirst("regexp:", ".*") + ".*";
+ find(selector).should().not().match(Pattern.compile(expectedRegEx, Pattern.DOTALL));
return;
}