-
Notifications
You must be signed in to change notification settings - Fork 0
[MTE-5149] - delete auto tests #30
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
base: coderabbit_full_base_mte-5149_-_delete_auto_tests_pr4
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -43,14 +43,14 @@ class DisplaySettingTests: BaseTestCase { | |||||||||||||||||||||||||||||||||||||||
| XCTAssertEqual(darkThemeValue as? String, "0") | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| // https://mozilla.testrail.io/index.php?/cases/view/2337487 | ||||||||||||||||||||||||||||||||||||||||
| // https://mozilla.testrail.io/index.php?/cases/view/3298823 | ||||||||||||||||||||||||||||||||||||||||
| func testCheckSystemThemeChanges() { | ||||||||||||||||||||||||||||||||||||||||
| navigator.nowAt(NewTabScreen) | ||||||||||||||||||||||||||||||||||||||||
| navigator.goto(DisplaySettings) | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| // Select Light mode | ||||||||||||||||||||||||||||||||||||||||
| navigator.performAction(Action.SelectLightTheme) | ||||||||||||||||||||||||||||||||||||||||
| let lightIsSelected = app.buttons[AccessibilityIdentifiers.Settings.Appearance.lightThemeView].value | ||||||||||||||||||||||||||||||||||||||||
| let lightIsSelected = app.buttons[AccessibilityIdentifiers.Settings.Appearance.darkThemeView].value | ||||||||||||||||||||||||||||||||||||||||
| XCTAssertEqual(lightIsSelected as? String, "1") | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+46
to
54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the light-theme assertion target. After selecting Light mode, the assertion checks 🛠️ Suggested fix- let lightIsSelected = app.buttons[AccessibilityIdentifiers.Settings.Appearance.darkThemeView].value
+ let lightIsSelected = app.buttons[AccessibilityIdentifiers.Settings.Appearance.lightThemeView].value📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| // Select Dark mode | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: qodo-benchmark/firefox-ios-combined-coderabbit
Length of output: 213
Remove
publicvisibility from helper methods—they are not used outside this class.These three methods (
checkUrl(),copyUrl(),checkCopiedUrl()) should remain internal. They are only used withinClipBoardTestsand have no external usages across the codebase. Making thempublicunnecessarily exposes internal test helpers and violates encapsulation. Revert them to the default internal visibility.🤖 Prompt for AI Agents