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

Add MTE-2449 TestRail links for TrackingProtection tests #19345

Merged
merged 14 commits into from
Mar 25, 2024

Conversation

clarmso
Copy link
Collaborator

@clarmso clarmso commented Mar 22, 2024

📜 Tickets

Jira ticket

💡 Description

Add TestRail tests and attach their links to the corresponding tests.
https://docs.google.com/document/d/1Rj8s9sjNBT_71Cws4arL3M5nwIQaMgci3uyuzzqf5Cg/edit

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@clarmso clarmso requested review from isabelrios and dragosb01 March 22, 2024 05:45
@clarmso clarmso requested a review from a team as a code owner March 22, 2024 05:45
@isabelrios
Copy link
Contributor

@clarmso please see my comments in the doc. It is not only about adding the links in here but having a proper matching between the tests. We should have Autoamted and test rail manual tests parity and structured as much similar as possible

@clarmso clarmso requested a review from a team as a code owner March 22, 2024 22:13
@@ -4,7 +4,8 @@

import XCTest

class TrackingProtectionSettings: BaseTestCase {
class TrackingProtection: BaseTestCase {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I rename this file?

@@ -35,18 +36,8 @@ class BasicBrowsing: BaseTestCase {
XCTAssertTrue(app.buttons["Add"].exists)
}

// Smoke test
func testAdBlocking() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is moved to TrackingProtectionTest.

@@ -49,7 +49,6 @@
45E8FFE72828DE4A0027A8F5 /* FocusAppServices in Frameworks */ = {isa = PBXBuildFile; productRef = 45E8FFE62828DE4A0027A8F5 /* FocusAppServices */; };
4F1284861FC5E242001A775B /* TPSettingsTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F1284851FC5E242001A775B /* TPSettingsTest.swift */; };
4F582F7B1F44A10F006C744B /* OpenInFocusTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F582F7A1F44A10F006C744B /* OpenInFocusTest.swift */; };
4FE4E6F61FBB5E2C001BB779 /* TPSidebarBadge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FE4E6F51FBB5E2C001BB779 /* TPSidebarBadge.swift */; };
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consolidate both tracking protection tests files into one.

@@ -15,7 +15,6 @@
{
"skippedTests" : [
"AsianLocaleTest",
"BasicBrowsing\/testLaunchExternalApp()",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testLaunchExternalApp is supposed to be a smoke test.

let shareButton: XCUIElement
if #available(iOS 14, *) {
shareButton = app.cells.buttons["Share Page With..."]
shareButton = app.cells.buttons["Share Page With"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, the "..." are "…" (just one character) on my end.

@@ -4,7 +4,8 @@

import XCTest

class TrackingProtectionSettings: BaseTestCase {
class TrackingProtectionTest: BaseTestCase {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test suite has the new name but not the Test file, it is still named TPSettingsTest.swift, it would be nice to have the same name

}

// https://testrail.stage.mozaws.net/index.php?/cases/view/1569869
func testShieldMenuSetting() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the "Automation" Status of the TestRail test.
https://testrail.stage.mozaws.net/index.php?/cases/view/1569869

Copy link
Contributor

mergify bot commented Mar 25, 2024

This pull request has conflicts when rebasing. Could you fix it @clarmso? 🙏

@clarmso clarmso merged commit c971a34 into main Mar 25, 2024
7 of 8 checks passed
@clarmso clarmso deleted the cs/MTE-2449-TrackingProtection-TestRail branch March 25, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants