コード例 #1
0
ファイル: P1Languages.cs プロジェクト: rrsc/Dnn.Platform
		public void Test004_DisableContentLocalization()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Disable Content Localization'");

			var adminLanguagesPage = new AdminLanguagesPage(_driver);
			adminLanguagesPage.OpenUsingButtons(_baseUrl);

			adminLanguagesPage.DisableLocalization();

			Trace.WriteLine(BasePage.TraceLevelPage + "The localization table should NOT be present");
			Assert.IsFalse(adminLanguagesPage.ElementPresent(By.XPath(AdminLanguagesPage.LocalizationTable)),
						"The Localization table is still present");
		}
コード例 #2
0
ファイル: P1Languages.cs プロジェクト: rrsc/Dnn.Platform
		public void Test003_EnableContentLocalization()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Enable Content Localization'");

			var hostSettingsPage = new HostSettingsPage(_driver);
			hostSettingsPage.OpenUsingButtons(_baseUrl);

			hostSettingsPage.EnableContentLocalization();

			var adminLanguagesPage = new AdminLanguagesPage(_driver);
			adminLanguagesPage.OpenUsingButtons(_baseUrl);

			adminLanguagesPage.EnableLocalization();

			Trace.WriteLine(BasePage.TraceLevelPage + "The localization table should be present");
			Assert.IsTrue(adminLanguagesPage.ElementPresent(By.XPath(AdminLanguagesPage.LocalizationTable)),
						"The Localization table is not present");
		}