From c851be7809497a13283a2c29d259fbfdb755043d Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Fri, 21 Jun 2024 17:10:05 +0200 Subject: [PATCH] Merge pull request #19061 from overleaf/jpa-fix-e2e-test [server-ce] update tests for new notifications style on project-dash GitOrigin-RevId: 7fe6aadfee348ad0513e49d601812b90ceb6aaa8 --- server-ce/test/create-and-compile-project.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server-ce/test/create-and-compile-project.spec.ts b/server-ce/test/create-and-compile-project.spec.ts index a1f70be0d8..ab91390f2f 100644 --- a/server-ce/test/create-and-compile-project.spec.ts +++ b/server-ce/test/create-and-compile-project.spec.ts @@ -109,12 +109,12 @@ describe('Project creation and compilation', function () { login('collaborator@example.com') cy.visit('/project') - // FIXME: Should have data-test-id cy.findByText(targetProjectName) .parent() .parent() - .find('button.btn-info') - .click() + .within(() => { + cy.findByText('Join Project').click() + }) cy.findByText('Open Project').click() cy.url().should('match', /\/project\/[a-fA-F0-9]{24}/) cy.get('@targetProjectId').then(targetProjectId => {