aboutsummaryrefslogtreecommitdiff
path: root/tests/playwright
AgeCommit message (Collapse)Author
2023-11-13add tests for disabled image uploadsDaniel Schadt
2023-11-13make test app fixture module-scopedDaniel Schadt
Previously, we had it session-scoped, which meant that the app was created once for all tests. This doesn't allow us to play with different settings however, such as disabling account registration or image uploads and testing that. Now, the fixtures are module scoped, which means that we still save on prepare/teardown time a bit, but we're also a bit more flexible. By making new test modules, we can test different settings there.
2023-11-07update dependenciesDaniel Schadt
The most "painful" one was Pydantic V2, not because it didn't work, but because I wanted to do it right and not use the deprecated methods.
2023-09-14fix testsDaniel Schadt
2023-08-30add test for favourite on detail pageDaniel Schadt
2023-08-09include email in user fingerprintDaniel Schadt
2023-08-02make tileproxy test less flakyDaniel Schadt
2023-06-29tileproxy: use caplog in the testDaniel Schadt
See if it works, it might be handy for other tests in the future as well.
2023-06-22add preliminary tileproxy testDaniel Schadt
2023-05-13add a test for the new elevation jump transformerDaniel Schadt
2023-04-01remove import across toplevelDaniel Schadt
Python seems to do fine, but pylint complains (probably rightfully, since the tests do not represent packages). We lose type hinting for the playwright_helper, but there's probably a better way to do it in the future.
2023-04-01add some very basic tests for profilesDaniel Schadt
I'd like to have more, but this is a start (and already caught some errors, see the last two commits).
2023-03-07wait until accordion is expandedDaniel Schadt
Currently, the test seems flaky on CI due to playwright._impl._api_types.Error: Clicking the checkbox did not change its state Maybe this is the change that will fix it?
2023-03-07tests: use .check() instead of .click()Daniel Schadt
This gets the intent across clearer
2023-03-07disable cache for transformer testsDaniel Schadt
2023-03-07switch order of expect & assertDaniel Schadt
While it shouldn't change the outcome of the test, it might make the test less flaky, as the expect call will wait until the page is loaded - which also indicates that the data is updated. Without this, the test depends on the backend being "fast enough" with applying the transformation.
2023-03-07also test transformers when editing a trackDaniel Schadt
2023-03-04add tests for the new transformerDaniel Schadt
2023-02-08fix transformer handling when uploading a fileDaniel Schadt
2023-01-03add tests for adding/removing friendsDaniel Schadt
2022-12-29start to move out high-level actionsDaniel Schadt
This is code that needs to be repeated in possibly several places (website, API, tests), so it makes sense to have those "high level actions" a bit abstracted. edit.edit_images was already doing that to a certain degree, but the code shouldn't have stayed in the view.
2022-12-29add playwright tests for the sharing functionalityDaniel Schadt
2022-12-22add more tests for the home pageDaniel Schadt
2022-12-22reorder playwright helper structureDaniel Schadt
To add more playwright tests and to cut down on the duplicated code, the helper methods have been put into a small class. This way, we don't have to add 100 pytest fixtures.
2022-12-20fix track deletion permissionDaniel Schadt
2022-12-15fix integration & playwright testsDaniel Schadt
2022-12-14add test for track browsingDaniel Schadt
2022-12-13add a test for editing tracksDaniel Schadt
2022-12-10start with playwright testsDaniel Schadt