Commit graph

15 commits

Author SHA1 Message Date
Victor Porof
f6db0ee557 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884

--HG--
extra : source : 60e4496cf9699dc59f2f4738cb60f87cbdb01e67
2019-07-05 11:24:38 +02:00
Julian Descottes
46a3720013 Bug 1531315 - Rename aboutdebugging test classnames from js-* to qa-* r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D28946

--HG--
extra : moz-landing-system : lando
2019-05-02 10:14:47 +00:00
Julian Descottes
7efda3d02e Bug 1487581 - Stop using hardcoded Firefox string in aboutdebugging;r=flod,ladybenko
Depends on D23879

Differential Revision: https://phabricator.services.mozilla.com/D23907

--HG--
extra : moz-landing-system : lando
2019-03-20 18:08:36 +00:00
Belén Albeza
1eda9bc5a1 Bug 1505124 - UX implementation for the Connect Page. r=daisuke,Ola
Differential Revision: https://phabricator.services.mozilla.com/D21542

--HG--
extra : moz-landing-system : lando
2019-03-18 14:52:15 +00:00
arthur.iakab
54d67a13d1 Backed out changeset 6af97458ab5d (bug 1505124) for causing Eslint failure on connect/ConnectPage.js CLOSED TREE 2019-03-15 11:10:38 +02:00
Belén Albeza
cf948bd6b9 Bug 1505124 - UX implementation for the Connect Page. r=daisuke,Ola
Differential Revision: https://phabricator.services.mozilla.com/D21542

--HG--
extra : moz-landing-system : lando
2019-03-15 08:50:03 +00:00
Daisuke Akatsuka
4f2f7acba6 Bug 1521442: Change starting page to connect page. r=jdescottes,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D19093

--HG--
extra : moz-landing-system : lando
2019-02-15 00:36:53 +00:00
Julian Descottes
a36a923325 Bug 1500383 - Rename test helpers to enable stronger linting;r=daisuke,Ola
Using head-*.js as the name of a test helper makes it automagically visible from all
tests in the suite thanks to the import-headjs-globals.js plugin.

Renaming them to helper-*.js forces to explicitly import them and get linting errors
if we forgot to do so.

All helpers have been consistently renamed to helper-*.js. One method from the
collapsibilities helper has been moved to the main head.js, because it doesn't
have any relation with collapsing target panes.

All ADB tests also now check that ADB is not running before starting. I tried forcing
ADB to stop in this case, but we can't kill it from the tests apparently, so the only
option is for the user to manually kill the process. At least now we get a somewhat
helpful error message, and no timeout.

Differential Revision: https://phabricator.services.mozilla.com/D15465

--HG--
rename : devtools/client/aboutdebugging-new/test/browser/head-addons-script.js => devtools/client/aboutdebugging-new/test/browser/helper-addons.js
rename : devtools/client/aboutdebugging-new/test/browser/debug-target-pane_collapsibilities_head.js => devtools/client/aboutdebugging-new/test/browser/helper-collapsibilities.js
rename : devtools/client/aboutdebugging-new/test/browser/head-mocks.js => devtools/client/aboutdebugging-new/test/browser/helper-mocks.js
rename : devtools/client/aboutdebugging-new/test/browser/head-serviceworker.js => devtools/client/aboutdebugging-new/test/browser/helper-serviceworker.js
rename : devtools/client/aboutdebugging-new/test/browser/mocks/head-client-wrapper-mock.js => devtools/client/aboutdebugging-new/test/browser/mocks/helper-client-wrapper-mock.js
rename : devtools/client/aboutdebugging-new/test/browser/mocks/head-runtime-client-factory-mock.js => devtools/client/aboutdebugging-new/test/browser/mocks/helper-runtime-client-factory-mock.js
rename : devtools/client/aboutdebugging-new/test/browser/mocks/head-usb-runtimes-mock.js => devtools/client/aboutdebugging-new/test/browser/mocks/helper-usb-runtimes-mock.js
extra : moz-landing-system : lando
2019-01-08 08:21:21 +00:00
Julian Descottes
700381caa2 Bug 1507125 - Stop destroying DebuggerServer when moving from This Firefox runtime page;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D13137

--HG--
extra : moz-landing-system : lando
2018-11-29 06:29:41 +00:00
Belén Albeza
aace8a36d8 Bug 1479746 - Add router-like feature to navigate via URL bar. r=jdescottes,daisuke
I'm sorry this is just one commit, I should have split it :( I will submit tests in another patch.

- Vendored [react-router-dom](https://www.npmjs.com/package/react-router-dom) library.
- Removed `getSelectedPageComponent` from `App` component and changed it to use React Router's `Route` components.
- Made the sidebar links to point to proper URL's. Thanks to this we don't need a lot of code/props we were passing to these items to select the proper page.

Some considerations over the implementation:

- React Router's `Switch` is used to wrap our routes, to ensure only one is rendered. Right now is not strictly necessary, but I think it helps to clarify that the routes are _not_ nested.
- We need to pass a `key` prop to the `RuntimePage` rendered in the route, so when we change the actual runtime shown, the page gets updated.
- The action `selectPage` gets called on `componentWillMount`, so it doesn't change state while rendering.
- When we reload the page and a device runtime is selected, we redirect to "This Firefox" page.

(Click on this GIF to see navigation 👇)
{F1100903}

I'm sorry this has taken this long, it has been a bit of a headache 🙏

Differential Revision: https://phabricator.services.mozilla.com/D12147

--HG--
extra : moz-landing-system : lando
2018-11-27 12:03:12 +00:00
Julian Descottes
b9883553c8 Bug 1493968 - Wait for requests to finish in aboutdebugging navigate test;r=ladybenko
Still not sure what is the root issue here, but none of the regular connect tests are failing so I think the issue occurs when we remove tabs in the second step.

Differential Revision: https://phabricator.services.mozilla.com/D12332

--HG--
extra : moz-landing-system : lando
2018-11-20 15:38:27 +00:00
Belén Albeza
41eda0ff97 Bug 1486787 - Use links in sidebar items. r=jdescottes,daisuke
Selectable items now are wrapped into a `<a>` tag. Also made `SidebarItem`'s `onSelect` prop non mandatory if `selectable` is `false`.

Differential Revision: https://phabricator.services.mozilla.com/D9910

--HG--
extra : moz-landing-system : lando
2018-10-31 13:35:47 +00:00
Daisuke Akatsuka
39993dba21 Bug 1497447: Add test for connection prompt preference setting. r=jdescottes
Depends on D9067

Differential Revision: https://phabricator.services.mozilla.com/D9068

--HG--
extra : moz-landing-system : lando
2018-10-23 01:13:44 +00:00
Julian Descottes
d03effab3f Bug 1493968 - Wait for initial targets in aboutdebugging navigate test to avoid race condition;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D6975

--HG--
extra : moz-landing-system : lando
2018-09-27 05:48:45 +00:00
Julian Descottes
917ff8695e Bug 1489222 - Add mochitest to check navigation from ThisFirefox to Connect;r=daisuke
Reviewers: daisuke

Subscribers: MarcoM

Bug #: 1489222

Differential Revision: https://phabricator.services.mozilla.com/D6485

--HG--
extra : rebase_source : ef5dc4a1e9b43261831e9a2197236f994e8af37a
2018-09-25 09:49:24 +02:00