Skip to content

Commit c301419

Browse files
solracsfbackportbot[bot]
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 77928c8 commit c301419

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
@@ -214,7 +214,11 @@ describe('files: Drag and Drop onto a folder row', { testIsolation: true }, () =
214214

215215
it('opens the conflict picker when dropping a colliding name onto a subfolder row', () => {
216216
// Pre-populate the subfolder with a file the drop will collide with.
217+
// cy.uploadContent internally clears session cookies, so re-login
218+
// before revisiting so it matches the uploadContent > login > visit
219+
// pattern used elsewhere in the suite.
217220
cy.uploadContent(user, new Blob(['original']), 'text/plain', '/subfolder/collide.txt')
221+
cy.login(user)
218222

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

0 commit comments

Comments
 (0)