diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-01-26 16:04:16 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-01-27 14:31:24 +0100 |
commit | 9052bc6ff429c7a4afb3d92e881cf68079ca3c7d (patch) | |
tree | 7366f9629515766dfed6020754273c258c047c23 /cypress | |
parent | 5e1c4f244ac2eb9a65d9df087e3e3e8ad1d80368 (diff) | |
download | nextcloud-server-9052bc6ff429c7a4afb3d92e881cf68079ca3c7d.tar.gz nextcloud-server-9052bc6ff429c7a4afb3d92e881cf68079ca3c7d.zip |
fix(cypress): Adjust files sorting tests
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/e2e/files/files_sorting.cy.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cypress/e2e/files/files_sorting.cy.ts b/cypress/e2e/files/files_sorting.cy.ts index b0ce1b6d723..3e46d868c1e 100644 --- a/cypress/e2e/files/files_sorting.cy.ts +++ b/cypress/e2e/files/files_sorting.cy.ts @@ -73,9 +73,9 @@ describe('Files: Sorting the file list', { testIsolation: true }, () => { // Files are sorted cy.get('[data-cy-files-list-row]').each(($row, index) => { switch (index) { - case 0: expect($row.attr('data-cy-files-list-row-name')).to.eq('1 tiny.txt') + case 0: expect($row.attr('data-cy-files-list-row-name')).to.eq('folder') break - case 1: expect($row.attr('data-cy-files-list-row-name')).to.eq('folder') + case 1: expect($row.attr('data-cy-files-list-row-name')).to.eq('1 tiny.txt') break case 2: expect($row.attr('data-cy-files-list-row-name')).to.eq('welcome.txt') break @@ -93,13 +93,13 @@ describe('Files: Sorting the file list', { testIsolation: true }, () => { // Files are sorted cy.get('[data-cy-files-list-row]').each(($row, index) => { switch (index) { - case 0: expect($row.attr('data-cy-files-list-row-name')).to.eq('z big.txt') + case 0: expect($row.attr('data-cy-files-list-row-name')).to.eq('folder') break - case 1: expect($row.attr('data-cy-files-list-row-name')).to.eq('a medium.txt') + case 1: expect($row.attr('data-cy-files-list-row-name')).to.eq('z big.txt') break - case 2: expect($row.attr('data-cy-files-list-row-name')).to.eq('welcome.txt') + case 2: expect($row.attr('data-cy-files-list-row-name')).to.eq('a medium.txt') break - case 3: expect($row.attr('data-cy-files-list-row-name')).to.eq('folder') + case 3: expect($row.attr('data-cy-files-list-row-name')).to.eq('welcome.txt') break case 4: expect($row.attr('data-cy-files-list-row-name')).to.eq('1 tiny.txt') break |