Skip to content

Commit 5955070

Browse files
committed
fix(cypress): Adjust files sorting tests
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 202651d commit 5955070

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

cypress/e2e/files/files_sorting.cy.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ describe('Files: Sorting the file list', { testIsolation: true }, () => {
7373
// Files are sorted
7474
cy.get('[data-cy-files-list-row]').each(($row, index) => {
7575
switch (index) {
76-
case 0: expect($row.attr('data-cy-files-list-row-name')).to.eq('1 tiny.txt')
76+
case 0: expect($row.attr('data-cy-files-list-row-name')).to.eq('folder')
7777
break
78-
case 1: expect($row.attr('data-cy-files-list-row-name')).to.eq('folder')
78+
case 1: expect($row.attr('data-cy-files-list-row-name')).to.eq('1 tiny.txt')
7979
break
8080
case 2: expect($row.attr('data-cy-files-list-row-name')).to.eq('welcome.txt')
8181
break
@@ -93,13 +93,13 @@ describe('Files: Sorting the file list', { testIsolation: true }, () => {
9393
// Files are sorted
9494
cy.get('[data-cy-files-list-row]').each(($row, index) => {
9595
switch (index) {
96-
case 0: expect($row.attr('data-cy-files-list-row-name')).to.eq('z big.txt')
96+
case 0: expect($row.attr('data-cy-files-list-row-name')).to.eq('folder')
9797
break
98-
case 1: expect($row.attr('data-cy-files-list-row-name')).to.eq('a medium.txt')
98+
case 1: expect($row.attr('data-cy-files-list-row-name')).to.eq('z big.txt')
9999
break
100-
case 2: expect($row.attr('data-cy-files-list-row-name')).to.eq('welcome.txt')
100+
case 2: expect($row.attr('data-cy-files-list-row-name')).to.eq('a medium.txt')
101101
break
102-
case 3: expect($row.attr('data-cy-files-list-row-name')).to.eq('folder')
102+
case 3: expect($row.attr('data-cy-files-list-row-name')).to.eq('welcome.txt')
103103
break
104104
case 4: expect($row.attr('data-cy-files-list-row-name')).to.eq('1 tiny.txt')
105105
break

0 commit comments

Comments
 (0)