Skip to content

Commit

Permalink
Fix namespaces to match folder (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dor-bl authored Oct 25, 2024
1 parent 1042a28 commit 05e2e2b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Appium.Net/Appium/Android/Enums/AndroidKeyCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//See the License for the specific language governing permissions and
//limitations under the License.
namespace OpenQA.Selenium.Appium.Android
namespace OpenQA.Selenium.Appium.Android.Enums
{
/// <summary>
/// Some common key codes for Android Key Events.
Expand Down
7 changes: 4 additions & 3 deletions test/integration/Android/ActivityTest.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
using Appium.Net.Integration.Tests.helpers;
using NUnit.Framework;
using OpenQA.Selenium.Appium.Android;
using OpenQA.Selenium.Appium.Android.Enums;

namespace Appium.Net.Integration.Tests.Android
{
[TestFixture]
public class ActivityTest
{
private AndroidDriver _driver;
private const string ContactsActivity = ".activities.PeopleActivity";
private const string ContactsActivity = "com.android.contacts.activities.PeopleActivity";
private const string AppId = "io.appium.android.apis";

[OneTimeSetUp]
Expand Down Expand Up @@ -68,7 +69,7 @@ public void StartActivityInNewAppTestCase()

Assert.That(_driver.CurrentActivity, Is.EqualTo(".ApiDemos"));

_driver.StartActivity("com.android.contacts", ContactsActivity);
_driver.StartActivity("com.google.android.contacts", ContactsActivity);

Assert.That(_driver.CurrentActivity, Is.EqualTo(ContactsActivity));
_driver.PressKeyCode(AndroidKeyCode.Back);
Expand All @@ -82,7 +83,7 @@ public void StartActivityInNewAppTestCaseWithoutClosingApp()

Assert.That(_driver.CurrentActivity, Is.EqualTo(".accessibility.AccessibilityNodeProviderActivity"));

_driver.StartActivity("com.android.contacts", ContactsActivity, "com.android.contacts",
_driver.StartActivity("com.google.android.contacts", ContactsActivity, "com.google.android.contacts",
ContactsActivity, false);

Assert.That(_driver.CurrentActivity, Is.EqualTo(ContactsActivity));
Expand Down
2 changes: 1 addition & 1 deletion test/integration/Android/Device/BrowserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using OpenQA.Selenium.Appium.Android;
using System;

namespace Appium.Net.Integration.Tests.Android.Device.App
namespace Appium.Net.Integration.Tests.Android.Device
{
internal class BrowserTests
{
Expand Down
2 changes: 1 addition & 1 deletion test/integration/Options/OptionsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using OpenQA.Selenium.Appium;
using OpenQA.Selenium.Appium.Enums;

namespace Appium.Net.Integration.Tests.ServerTests
namespace Appium.Net.Integration.Tests.Options
{
public class OptionsTest
{
Expand Down

0 comments on commit 05e2e2b

Please sign in to comment.