Merge pull request #23131 from overleaf/kh-teardown-link-sharing-split-tests

[web] tear down link sharing split tests

GitOrigin-RevId: 449e9f368405aea1500035269428e7ae0c37d8fb
This commit is contained in:
Kristina
2025-02-04 09:04:25 +00:00
committed by Copybot
parent 8831fb9a18
commit e3fdcdd601
24 changed files with 806 additions and 2264 deletions
@@ -29,13 +29,11 @@ describe('<TokenAccessPage/>', function () {
expect(interception.request.body.confirmedByUser).to.be.false
})
cy.get('h1').should(
cy.get('.link-sharing-invite-header').should(
'have.text',
['You have been invited to join', 'Test Project'].join('')
['You’re joining', 'Test Project', 'as test@example.com'].join('')
)
cy.contains('You are accepting this invite as test@example.com')
cy.intercept(
{ method: 'post', url, times: 1 },
{
@@ -47,7 +45,7 @@ describe('<TokenAccessPage/>', function () {
cy.stub(location, 'replace').as('replaceLocation')
cy.findByRole('button', { name: 'Join Project' }).click()
cy.findByRole('button', { name: 'OK, join project' }).click()
cy.wait('@confirmedGrantRequest').then(interception => {
expect(interception.request.body.confirmedByUser).to.be.true