Граф коммитов

122 Коммитов

Автор SHA1 Сообщение Дата
Andrew Williamson 80f526e840
run pyupgrade (#17603)
* let pyupgrade work as command line tool

* run_pyupgrade and black on src/ tests/ services/

* delete the comment as absolute_import is gone
2021-08-05 15:00:44 +01:00
renovate[bot] 4ec1a2d7a1
Lock file maintenance (#17155)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: William Durand <will+git@drnd.me>
2021-05-26 11:28:06 +02:00
William Durand e61d8b0de7
"Black" all the things! (#16123) 2020-12-09 19:24:56 +01:00
William Durand 85cb8010cb
Fix wrong date on stats overview page (#15604) 2020-10-01 16:19:06 +02:00
William Durand c2e92e7482
Introduce Prettier (#15131) 2020-08-03 14:55:07 +02:00
William Durand 1d37fe4122
Fix dates in stats export links (csv/json) (#15086) 2020-07-30 14:00:07 +02:00
William Durand 9a129eb7a4
Update logging config (#14310) 2020-05-19 16:54:15 +02:00
William Durand 13a828e338
Use log.warning instead of log.warn (#14102) 2020-04-29 18:34:32 +02:00
dbxnr 0c845636a9 Remove code for ui tests 2020-01-13 23:15:17 +00:00
jrbenny35 bde4aaf1f9 Add a fixture override for integration tests. 2019-11-25 14:56:31 -06:00
jrbenny35 4bbb377b12 Fix formatting. 2019-11-25 11:48:44 -06:00
jrbenny35 3ff3cfc8e2 Remove baseurl command line flag from integration tests. 2019-11-25 11:27:04 -06:00
William Durand 31bc14b5bf
Bump docker-compose version to 2.4 (#12689) 2019-10-22 18:07:01 +02:00
jrbenny35 91313be0e3 Update addon creation for new heros. 2019-10-01 18:01:47 -05:00
Benjamin Forehand Jr 0fd505395f Updated upload UI steps. 2019-08-22 12:30:56 -05:00
Benjamin Forehand Jr 64d342624f Changed try/except logic. 2019-08-21 19:27:27 -05:00
Benjamin Forehand Jr 5efbf88655 Small logic change. 2019-08-21 17:18:20 -05:00
Benjamin Forehand Jr 7f2a9dc8a5
Updated logic and potential permissions fix. (#12153) 2019-08-20 13:30:48 -05:00
Benjamin Forehand Jr 8de22454c5
Update blank search test. (#12089) 2019-08-09 14:55:09 -05:00
Benjamin Forehand Jr fa6aed7253
Add python script for fxa email gen. (#11954)
* Add python script for fxa email gen.
2019-07-30 09:38:50 -05:00
Benjamin Forehand Jr 5c7c263d8d
Fix linter error for uitests. (#11923) 2019-07-24 13:08:41 -05:00
Benjamin Forehand Jr 62a0781769
Fix special char search test. (#11854)
* Fix special char search test.

* Fixed test logic.

* More fixes.

* flake8 fixes

* Updates.

* Fix flake9.
2019-07-18 14:51:16 -05:00
Benjamin Forehand Jr 17d4886b14
Move some config to env variable for integration tests. (#11836) 2019-07-15 13:47:47 -05:00
Benjamin Forehand Jr 1532cb6059
Disable frontend related tests. (#11831) 2019-07-13 18:20:20 -05:00
Benjamin Forehand Jr 71e85599d2
Initial attempt at fixing integration-tests. (#11811)
* Initial attempt at fixing integration-tests.

* Updates.

* Update logic for devhub install test.

* Updates for codestyle.

* More flake8 fixes.

* Added comment.
2019-07-12 10:09:13 -05:00
Benjamin Forehand Jr dcf5e891db
Fix for 'Server Error' with integration-tests on CI. (#11169)
* Fix for 'Server Error' with integration-tests on CI.

* Fix for codestyle.
2019-04-08 13:35:15 -04:00
Benjamin Forehand Jr 187b7c2a89
Remove pytest reruns from integration-tests. (#11139)
* Remove pytest reruns from integration-tests.

* Updated submission logic.

* Fixes for codestyle.
2019-04-04 14:09:00 -04:00
Benjamin Forehand Jr 241c59e2d5
Update docs for new procedures regarding integration testing. (#11076)
* Update docs for new procedures regarding integration testing.

* Add section for setup.

* Add setup command to makefile-os.
2019-04-01 20:45:40 -04:00
Benjamin Forehand Jr 901ad6a5f8
Update docker-compose file to use latest addons-frontend image. Added new homepage test. (#11050) 2019-04-01 10:12:28 -04:00
Benjamin Forehand Jr 9f8f44dfe6
Add devhub upload, approve, install (#11021)
* Add devhub upload, approve, install integration-test
2019-03-28 09:05:41 -04:00
Benjamin Forehand Jr d1504e4ee3
Try using newer circleci image for integration-test job. (#11007)
* Try using newer circleci image for integration-test job.
2019-03-25 19:35:50 -04:00
Benjamin Forehand Jr a5e921077c
[UI-Tests] Add preference that prints console logs to geckodriver log. (#10958) 2019-03-18 22:42:04 -04:00
Benjamin Forehand Jr 2d99d6f3da
Fix ui tests for new nginx config (#10888)
* Fixes for Ui-tests using new nginx config.
2019-03-11 19:20:06 -04:00
Christopher Grebs 7b34c1b7d1
Fix addons-frontend running as default frontend. (#10692)
The frontend runs quite nicely with the changes from addons-nginx container but the initial page load runs into some wacky connection errors.

https://www.irccloud.com/pastebin/gTMteTUf/

This change fixes this.

Fixes https://github.com/mozilla/addons-server/issues/10855
2019-03-05 13:23:56 +01:00
Christopher Grebs f26a150086
Remove amo-validator, remove support for uploading legacy-addons. (#10553)
* Remove amo-validator, remove more support for uploading legacy-addons.

This is dropping most of our compatibility checks for legacy add-ons and
completely blocks them from being uploaded.

We workaround this block for mozilla-signed add-ons by issuing the same
error, just as a warning instead of an actual error.

This affected *loads* of our tests so the PR contains more test-changes
then I'd like.

In addition to that this PR adds file extension validation for uploads,
we only did that in our JavaScript and never in our code. So from now
on, we have a hard limit to only allow whatever is in
`VALID_EXTENSIONS`.

Further...

* drop amo-validator and related dependencies
* remove `dump_apps` management command
* removed unused fixture files from the repo

Fixes #10502

Future improvement idea for our test-suite: Unify add-on file fixtures
under one single folder to avoid any duplication.

There is most certainly some more improvements that could be made to
code and test structure but I went for the least changes, it's way too
huge already :-/

* Fix syntax error in JavaScript, thus ui tests

* Switch back to passing 'channel' around

* Move valid addon file extensions to constants/base

* Fix validate() call

* Fix more tests

* Update src/olympia/devhub/tests/test_views_validation.py

Co-Authored-By: EnTeQuAk <cg@webshox.org>

* Remove old comment

* Issue description specific only to Thunderbird and Seamonkey if targeting thunderbird or seamonkey
2019-02-01 08:52:04 +01:00
Christopher Grebs 9e8468f8cd
Replace pytest-responses with our own custom implementation. (#10410)
Fixes #10399

Closes #10378
Closes #10317

This also updates pytest to 4.1.1
2019-01-16 12:26:45 +01:00
Benjamin Forehand Jr 16a485421c
Add additional search tests (#10206)
### Add additional search tests

* Check that search suggestion list exact matches higher than other suggestions
* Check that long terms searching don't break results page
* Verify blank search functionality
* Check that selecting an item from search suggestions can be made by clicking on it
* Check that ESC dismisses the suggestion search results
* Check that suggestions change if chars are added or deleted
* Check that special chars don't break search
* Check that caps and lowercases have same search suggestions
2018-12-19 10:50:49 -05:00
Christopher Grebs 4fcf788bd0
Proposal: Reverse 'Continue' and 'Cancel and Disable...' buttons. (#10142)
Personally, the current order adds a lot of stress to the user to click
the correct button.

When you upload your file (very first screen) the Continue button is on
the very left side, all continuous screens switch it to be on the right
hand site. Even though the 'Cancel' button is red, it takes a bit of
time to parse which button you're going to press and ending up in a
disabled/incomplete state isn't really nice.

This changes that behaviour and fixes #7556 along the way.

![screenshot from 2018-12-03 13-07-10](https://user-images.githubusercontent.com/139033/49372994-c6111580-f6fc-11e8-9b41-d3cebc69771a.png)

cc @jvillalobos or @wagnerand for opinions on that.
2018-12-05 10:20:50 +01:00
Benjamin Forehand Jr 7b322c8ec0
Xfail filter search tests. (#10152)
Fixes #10150
2018-12-03 13:51:19 -05:00
Christopher Grebs 4a207aeed2
Split selenium based docker-config into tests/ui/docker-compose.selenium.yml (#10143)
Unfortunately, we'll have to duplicate the environment config but I added
a comment so that should be fine. It's very rarely being used anyway.

Fixes #9288
2018-12-03 17:40:00 +01:00
Benjamin Forehand Jr 042931ec39
Added footer link tests. (#10017) 2018-11-20 09:04:47 -05:00
Benjamin Forehand Jr ceee0474e7
Add type incompatibility test. (#9769)
* Add type incompatibility test.
2018-10-23 13:00:52 -04:00
Benjamin Forehand Jr 66573f6da7
Allow for running flake8 on integration tests directory. (#9772) 2018-10-22 18:29:57 -04:00
Benjamin Forehand Jr f64b8bfa0b
Added new ui tests (#9748)
Added new UI Tests.
* test_devhub_logout, tests logging out from the developer hub.
* test_devhub_register, tests the register links navigates to the fxa signup page.
* test_title_routes_to_home, tests Firefox Addons title routes to home page.
* test_more_dropdown_navigates_correctly, tests the more drop down navigates to the correct links.
2018-10-19 11:19:53 -04:00
Benjamin Forehand Jr 1cbaf538b0
Change addon title locator. (#9694)
* Change addon title locator.
2018-10-15 10:56:10 -04:00
Benjamin Forehand Jr 80bbc69dfd
Added configuration to run multiple ui tests in parallel. (#9266)
* Changed fxa account generation to allow assigning an fxa ID to a created user.
* Moved pytest execution to makefile to access variables.
* Removed second login tests as the devhub tests also log in.
2018-08-28 14:48:35 -04:00
Benjamin Forehand Jr cafc5d0519
Add UI devhub login and upload tests (#8559)
* Added devhub login and upload tests.
* Add ui-test webext.
* Remove management commands.
2018-07-13 08:55:40 -04:00
Christopher Grebs 6c6c3578ec
Try to fix ui-tests (#8808)
Fix our ui-tests.

* Update list of add-ons that are required for the July content update 
* Mark `test_browse_all_themes_button_loads_correct_page` as xfail for now as the latest content update removed static theme listings from the home page
2018-07-10 13:40:50 +02:00
Benjamin Forehand Jr 7eaf3bff8a Fixed test for personas URL check. 2018-06-26 18:54:20 -04:00
Christopher Grebs 086d3da8a1
Fix how our load-tests pick a random language and app.
This makes sure we actually hit the legacy pages no matter
how many clients are configured during a locust run.
2018-06-01 14:47:04 +02:00