mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix(test): re-login after cy.uploadContent in conflict-picker
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
5f894afb22
commit
d0d29965e7
1 changed files with 4 additions and 0 deletions
|
|
@ -214,7 +214,11 @@ describe('files: Drag and Drop onto a folder row', { testIsolation: true }, () =
|
|||
|
||||
it('opens the conflict picker when dropping a colliding name onto a subfolder row', () => {
|
||||
// Pre-populate the subfolder with a file the drop will collide with.
|
||||
// cy.uploadContent internally clears session cookies, so re-login
|
||||
// before revisiting so it matches the uploadContent > login > visit
|
||||
// pattern used elsewhere in the suite.
|
||||
cy.uploadContent(user, new Blob(['original']), 'text/plain', '/subfolder/collide.txt')
|
||||
cy.login(user)
|
||||
|
||||
// Reload so the pre-populated file lands in the store before the drop.
|
||||
// The drop handler reads filesStore.getNodesByPath first and only
|
||||
|
|
|
|||
Loading…
Reference in a new issue