Skip to content

Commit 8a8086a

Browse files
author
Vadim Belov
committed
Update Android Tablet UA test to expect generic device name
Changed the expected result for the Android Tablet user agent test case to "Android Tablet" instead of "Android Tablet (rv:102.0)", reflecting a move to a more generic device identification without version details.
1 parent 9cc20e2 commit 8a8086a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/EasyExtensions.Tests/UserAgentHelpersTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void GetDevice_Identifies_iOS(string ua, string expected)
8585
[TestCase("Mozilla/5.0 (Linux; Android 13; SM-A556B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36", "Samsung SM-A556B")]
8686
[TestCase("Mozilla/5.0 (Linux; Android 13; SM-R960) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36", "Samsung Galaxy Watch6 Classic 47mm")]
8787
[TestCase("Mozilla/5.0 (Linux; Android 11; SM-T970 Build/RP1A.200720.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.93 Safari/537.36", "Samsung SM-T970")]
88-
[TestCase("Mozilla/5.0 (Linux; Android 13; Tablet; rv:102.0) Gecko/102.0 Firefox/102.0", "Android Tablet (rv:102.0)")]
88+
[TestCase("Mozilla/5.0 (Linux; Android 13; Tablet; rv:102.0) Gecko/102.0 Firefox/102.0", "Android Tablet")]
8989
public void GetDevice_Identifies_Android(string ua, string expected)
9090
{
9191
Assert.That(UserAgentHelpers.GetDevice(ua), Is.EqualTo(expected));

0 commit comments

Comments
 (0)