Skip to content

Commit 6903e74

Browse files
solracsfsusnux
authored andcommitted
fix(test): re-login after cy.uploadContent in conflict-picker
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
1 parent 288ed89 commit 6903e74

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cypress/e2e/files/drag-n-drop.cy.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,11 @@ describe('files: Drag and Drop onto a folder row', { testIsolation: true }, () =
206206

207207
it('opens the conflict picker when dropping a colliding name onto a subfolder row', () => {
208208
// Pre-populate the subfolder with a file the drop will collide with.
209+
// cy.uploadContent internally clears session cookies, so re-login
210+
// before revisiting so it matches the uploadContent > login > visit
211+
// pattern used elsewhere in the suite.
209212
cy.uploadContent(user, new Blob(['original']), 'text/plain', '/subfolder/collide.txt')
213+
cy.login(user)
210214

211215
// Reload so the pre-populated file lands in the store before the drop.
212216
// The drop handler reads filesStore.getNodesByPath first and only

0 commit comments

Comments
 (0)