Repository navigation
Stop support for old acceptance tests #10259
Description
2 years ago, we stopped implement old acceptance tests and started using e2e with playwright.
Now we want to:
- delete all unworkable, repetitive, irrelevant tests
- rewrite useful tests
- close all issues related acceptance tests
Steps:
-
delete all tests labeled @skipOnOCIS
-
Remove repetitive test scenarios (compare with e2e)
-
check the expected-failures-with-ocis-server-ocis-storage.md file and remove the string and irrelevant tests (@saw-jan @PrajwolAmatya)
- [tests-only] remove share access details tests and add e2e coverage #10427
- [tests-only] move upload file exceeding quota test to e2e #10428
- [tests-only][full-ci] added e2e test to delete multiple resources from trashbin #10449
- [tests-only] Removed scenario related to folder upload from old web UI test #10480
- [tests-only] added e2e test to receive two shares with same name #10488
- [test-only][full-ci] added e2e test to delete and restore file inside a shared folder #10550
- [tests-only][full-ci] removed webUI test and added e2e test to upload folder containing empty sub-folder #10574
- [tests-only][full-ci] remove webUI test related to user redirection to login page after the logged in user is deleted #10575
-
find and close all the related issues in GH @ScharfViktor
-
rewrite existing acceptance tests
- api tests
- [tests-only] add API tests to search user/group with special chars ocis#9015
- [tests-only] add API tests for file download and rename edge cases ocis#9018
- [tests-only] extend group sharing and MOVE api tests ocis#9083
- [tests-only] extend delete API tests ocis#9121
- [tests-only] extend trashbin restore API tests ocis#9126
- [tests-only] add file/folder creation and list sharedByMe of link shares ocis#9150
- e2e tests (Updated from comment Stop support for old acceptance tests #10259 (comment))
- breadcrumb navigation on normal folders [tests-only][full-ci]add e2e test for breadcrumb navigation #10664
- preview different files (.png file) @Salipa-Gurung ([tests-only] [full-ci] Remove acceptance test related to image preview #10670)
- pubilc user preview files: [test-only]check that image is open #10565
- edit password of public link and public user refresh the public link page @grgprarup [full-ci] [tests-only] Remove old acceptance/add e2e test to edit password of public link #10826
- update content of file (Assigned to pradip) [tests-only][full-ci]add test for updating content of file #10838
- unit tests
- api tests
-
delete acceptance tests suite
- [tests-only][full-ci] remove user/group search webUI acceptance test suite #10858
- [tests-only][full-ui] remove download and rename folder acceptance suite #10861
- [tests-only] remove webUI acceptance test suites #10878
- [tests-only][full-ci] remove share, delete, trashbin and login accpetance suties #10889
- [tests-only][full-ci] add batch restore e2e test and remove acceptance counterparts #10890
- [tests-only][full-ci] extend link share e2e test and remove acceptance suites #10898
- [test-only] Replace UI tests. link indication #10905
- [test-only] replace UI link test #10919
-
clean up web CI and ocis CI [full-ci] remove old acceptance tests #10921
-
delete changes in the middleware delete share permission owncloud-test-middleware#143
-
port to stable-8.0 [full-ci] Port#10921 #10932 [full-ci] remove old acceptance tests #10921
-
clean up ocis CI [full-ci] delete UItest from ocis CI ocis#9209 [full-ci] Port#9209 ocis#9211
Activity
v-scharf commentedon Jan 4, 2024
CC @saw-jan
amrita-shrestha commentedon Mar 4, 2024
cc @PrajwolAmatya @Salipa-Gurung @saw-jan currently facing problems while running keycloak tests in drone ci. IMO it will be nice to check locally whether keycloak-related tests pass or not #10481. Otherwise, my PR will be stuck for a long time.
v-scharf commentedon Mar 4, 2024
Sorry, how this task is related to #10481 ?
saw-jan commentedon Mar 5, 2024
Let's run
/journeys/kindergarten.featurewith the keycloak for now, then we can go on to include more tests.CC @amrita-shrestha @ScharfViktor
amrita-shrestha commentedon Mar 6, 2024
If we add some scenario/step on
space.featureandjourneythen maybe that step needs refactoring to work onocis-keycloak. I am not saying to check all scenario/step. Just step/scenario which falls under keycloak tests(currently journey/space.feature).PrajwolAmatya commentedon Mar 19, 2024
I have listed the tests that has been already covered in E2E and tests that needs to be added in E2E.
Tests that has been covered
E2E tests that needs to be added
- [x] breadcrumb navigation on normal folders @PrajwolAmatya [tests-only][full-ci]add e2e test for breadcrumb navigation #10664- breadbrumb navigation on folders with quotes and special characters- Files details- view different areas in app-sidebar for file and folder- [ ] Preview- [ ] preview different files (.png file) @Salipa-Gurung (#10670)- [x] pubilc user preview files: #10565- sorting resources- share autocompletion of recipient user/group- check for sharing details of items inside a shared folder- check for sharing indicator- check for public link indicator- [ ] edit password of public link and public user refresh the public link page- [ ] update content of fileCC. @ScharfViktor @saw-jan
Updated according to comment: #10259 (comment)
Note:- All TODOs tasks have been added to the main description of this issue.
saw-jan commentedon Mar 19, 2024
the PR is just a port. we already have the tests in master
kulmann commentedon Mar 20, 2024
I'd like to continue to only have happy path tests in e2e. That being said, some of the test scenarios you mentioned are not needed for e2e and I'd like to not have them anymore.
Yes, good one.
Not needed.
What exactly do you have in mind? I'd expect this mostly to be tested via unit tests. Some e2e test coverage makes sense of course, but please be more specific in what you want to test.
One .png file is sufficient.
Yes 👍
Sorting resources is not something I would test at all in e2e. Only in unit tests.
I believe we have that somewhat covered in sharing related tests. no additional test needed.
sufficient as a unit test, no e2e needed.
sufficient as a unit test, no e2e needed.
sufficient as a unit test, no e2e needed.
Yes, good one.
Yes, good one.
PrajwolAmatya commentedon Mar 21, 2024
@kulmann Thank you for the suggestion. 👍 I will update the E2E test list and work accordingly.
kulmann commentedon Mar 21, 2024
I'd like to come back to this one again. I'd love to have a "navigation"-scenario in the e2e tests:
That would bring certainty especially for representation and handling of weird chars in the URL.
Do we have something like this? Or something that could be extended into this behaviour? I don't want all these cases tested individually (file list with simple folder names, file list with complex folder names, breadcrumb with simple folder names, breadcrumb with complex folder names), but really in one scenario.
I know that the common pattern for acceptance tests is to write short scenarios. For our e2e test suite I see much more value in chains of actions and test patterns that semantically belong together, so that the test setup time doesn't kill us.
What do you think @PrajwolAmatya ?
PrajwolAmatya commentedon Mar 21, 2024
@kulmann Yes, I think we can check for navigation through breadcrumb for variety of folder names within a single scenario.
amrita-shrestha commentedon Apr 9, 2024
@saw-jan @Salipa-Gurung @PrajwolAmatya can we close this issue #7264 or we going to let it open?
saw-jan commentedon May 17, 2024
@ScharfViktor Let's close this one.
The only thing remaining is to cleanup in ocis drone config but that should be done along with the web bump to ocis
v-scharf commentedon May 17, 2024
Yes, I close it, but before I wanted to clean up ocis CI
v-scharf commentedon May 19, 2024
closed as completed