From 9052bc6ff429c7a4afb3d92e881cf68079ca3c7d Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 26 Jan 2024 16:04:16 +0100 Subject: [PATCH] fix(cypress): Adjust files sorting tests Signed-off-by: Ferdinand Thiessen --- cypress/e2e/files/files_sorting.cy.ts | 12 ++++++------ 1 file 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