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

Show on App Launch: Add additional tests #5000

Conversation

mikescamell
Copy link
Contributor

Task/Issue URL: https://app.asana.com/0/1207908166761516/1208156273709083/f

Description

Adds some additional tests for the BrowserViewModel and the ShowOnAppLaunch store

Steps to test this PR

N/A

UI changes

N/A

Copy link
Contributor

@anikiki anikiki left a comment

Choose a reason for hiding this comment

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

Changes look good. Make sure the formatting is right.

@anikiki anikiki self-assigned this Sep 11, 2024
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/open-launch-option-when-set branch from 7959fa4 to b7df6fb Compare September 12, 2024 08:16
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/add-more-tests branch from 040c51b to 48daa7f Compare September 12, 2024 08:17
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/open-launch-option-when-set branch from b7df6fb to 8a4f4c6 Compare September 12, 2024 09:12
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/add-more-tests branch from ccc2541 to b595ff5 Compare September 12, 2024 09:12
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/open-launch-option-when-set branch from 8a4f4c6 to fd687fc Compare September 12, 2024 09:47
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/add-more-tests branch from b595ff5 to 2ece0f5 Compare September 12, 2024 09:47
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/open-launch-option-when-set branch from fd687fc to 9e45cbc Compare September 12, 2024 13:14
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/add-more-tests branch 2 times, most recently from a9c2dc8 to 5999f49 Compare September 12, 2024 13:39
@mikescamell mikescamell requested a review from anikiki September 12, 2024 13:46
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/open-launch-option-when-set branch from 9e45cbc to 39ba200 Compare September 16, 2024 13:36
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/add-more-tests branch from 5999f49 to abf5f3d Compare September 16, 2024 13:36
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/open-launch-option-when-set branch from 39ba200 to bf33919 Compare September 19, 2024 14:31
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/add-more-tests branch from 509da97 to 4c6b0e2 Compare September 19, 2024 14:31
@mikescamell mikescamell mentioned this pull request Sep 19, 2024
12 tasks
technically this can obviously be anything but I'd rather use the default we agreed on in the tests too. The ShowOnAppLaunchPrefsDataStoreTest covers whether the default url is correct or not
we updated the default url to "https://duckduckgo.com/" so the test needs updating
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/open-launch-option-when-set branch from bf33919 to 606fe1c Compare September 19, 2024 14:48
@mikescamell mikescamell force-pushed the feature/mike/show-on-app-launch/add-more-tests branch from 4c6b0e2 to 466de55 Compare September 19, 2024 14:48
Task/Issue URL:
https://app.asana.com/0/1207908166761516/1208156273709090/f

### Description

Adds three pixels to the Show on App Launch feature:

- When the Show on App Launch screen is opened from General settings
(temporary pixel)
- When selecting a new Show on App Launch option (temporary pixel)
- When the daily pixel is fired (permanent pixel)

### Steps to test this PR

_App launch pressed pixel_
- [x] Go to general settings screen
- [x] Click “Show on App Launch"
- [x] Checks logs to if `m_settings_general_app_launch_pressed` is sent 

_New option selected pixel_
- [x] Go to Show on App Launch screen
- [x] Click “New Tab Page”
- [x] Check logs for
`m_settings_general_app_launch_new_tab_page_selected` pixel
- [x] Click “Specific Page"
- [x] Check logs for
`m_settings_general_app_launch_specific_page_selected` pixel
- [x] Click “Last Opened Tab”
- [x] Check logs for
`m_settings_general_app_launch_last_opened_tab_selected` pixel

_Daily pixel_
- [x] Launch app
- [x] Check daily pixel for “launch_screen” and check it’s the same as
what you have selected for “Show on App Launch"

### UI changes

N/A
@mikescamell mikescamell merged commit 621d02e into feature/mike/show-on-app-launch/open-launch-option-when-set Sep 20, 2024
4 of 5 checks passed
@mikescamell mikescamell deleted the feature/mike/show-on-app-launch/add-more-tests branch September 20, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants