+ translatorConfig);
assertThat(client.isPushSuccessful(output)).isTrue();
new LoginWorkFlow().signIn("admin", "admin");
VersionLanguagesPage versionPage =
new BasicWorkFlow().goToPage(String.format(
PROJECT_VERSION_TEMPLATE, "plurals", "master"),
VersionLanguagesPage.class);
assertThat(versionPage.getStatisticsForLocale("pl"))
.contains("0.0%");
// push trans
client.callWithTimeout(
projectRootPath,
"mvn -B zanata:push -Dzanata.pushType=trans -Dzanata.copyTrans=false -Dzanata.userConfig="
+ translatorConfig);
versionPage.reload();
assertThat(versionPage.getStatisticsForLocale("pl")).contains("6.0%");
// create new version
restCaller.createProjectAndVersion("plurals", "beta", "podir");
File updatedZanataXml = new File(Files.createTempDir(), "zanata.xml");
generateZanataXml(updatedZanataXml, "plurals", "beta", "podir",
Lists.newArrayList("pl"));
// push source and run copyTrans
client.callWithTimeout(
projectRootPath,
"mvn -B zanata:push -Dzanata.pushType=source -Dzanata.copyTrans=true -Dzanata.userConfig="
+ translatorConfig
+ " -Dzanata.projectConfig="
+ updatedZanataXml.getAbsolutePath());
VersionLanguagesPage betaVersionPage =
new BasicWorkFlow().goToPage(String.format(
PROJECT_VERSION_TEMPLATE, "plurals", "beta"),
VersionLanguagesPage.class);
assertThat(betaVersionPage.getStatisticsForLocale("pl")).contains("6.0%");
}