Skip to content
Prev Previous commit
Next Next commit
test(tag): Ensure tag does not already exists in the server
Useful when retrying tests.

Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed May 26, 2025
commit fca2fa130ad4d817efa9fed1085a90a04160f641
5 changes: 3 additions & 2 deletions cypress/e2e/sidebar.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { createFolder, navigateToFolder, moveFile, renameFile } from './filesUtils'
import { addComment, addTag, addToFavorites, createPublicShare, removeFromFavorites, showActivityTab } from './sidebarUtils'
import { addComment, addTag, addToFavorites, createPublicShare, randHash, removeFromFavorites, showActivityTab } from './sidebarUtils'

describe('Check activity listing in the sidebar', { testIsolation: true }, () => {
beforeEach(function() {
Expand Down Expand Up @@ -56,7 +56,8 @@ describe('Check activity listing in the sidebar', { testIsolation: true }, () =>
})

it('Has tag activity', () => {
addTag('welcome.txt', 'my_tag')
addTag('welcome.txt', `my_tag_${randHash()}`)
cy.visit('/apps/files')

showActivityTab('welcome.txt')
cy.get('.activity-entry').first().should('contains.text', 'Added system tag')
Expand Down