Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Adjust tests namespaces to match folder structure #859

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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