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();
- new SeleneseTest(selenese).runOn(orchestrator);
+ // Use the old runner because it fails with the new Selenium runner
+ orchestrator.executeSelenese(selenese);
}
}
}
if (pattern.startsWith("regexp:")) {
- String expectedRegEx = pattern.replaceFirst("regexp:", ".*") + ".*";
- find(selector).should().match(Pattern.compile(expectedRegEx, Pattern.DOTALL));
+ find(selector).should().match(Pattern.compile(pattern.substring(7)));
return;
}
}
if (pattern.startsWith("regexp:")) {
- String expectedRegEx = pattern.replaceFirst("regexp:", ".*") + ".*";
- find(selector).should().not().match(Pattern.compile(expectedRegEx, Pattern.DOTALL));
+ find(selector).should().not().match(Pattern.compile(pattern.substring(7)));
return;
}