mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user