mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #20436 from overleaf/ii-bs5-editor-toolbar
[web] BS5 editor toolbar GitOrigin-RevId: a517fd52d648d165e89231d6f5551c026a951c43
This commit is contained in:
@@ -28,9 +28,9 @@ describe('split test badge', function () {
|
||||
</EditorProviders>
|
||||
)
|
||||
|
||||
cy.get('a.badge.alpha-badge[href="/alpha/participate"]').contains(
|
||||
'This is an alpha feature'
|
||||
)
|
||||
cy.findByRole('link', { name: /this is an alpha feature/i })
|
||||
.should('have.attr', 'href', '/alpha/participate')
|
||||
.find('.badge.alpha-badge')
|
||||
})
|
||||
|
||||
it('does not render the alpha badge when user is not assigned to the variant', function () {
|
||||
@@ -86,9 +86,9 @@ describe('split test badge', function () {
|
||||
</EditorProviders>
|
||||
)
|
||||
|
||||
cy.get('a.badge.beta-badge[href="/beta/participate"]').contains(
|
||||
'This is a beta feature'
|
||||
)
|
||||
cy.findByRole('link', { name: /this is a beta feature/i })
|
||||
.should('have.attr', 'href', '/beta/participate')
|
||||
.find('.badge.beta-badge')
|
||||
})
|
||||
|
||||
it('does not render the beta badge when user is not assigned to the variant', function () {
|
||||
@@ -144,9 +144,9 @@ describe('split test badge', function () {
|
||||
</EditorProviders>
|
||||
)
|
||||
|
||||
cy.get('a.badge.info-badge[href="/feedback/form"]').contains(
|
||||
'This is a new feature'
|
||||
)
|
||||
cy.findByRole('link', { name: /this is a new feature/i })
|
||||
.should('have.attr', 'href', '/feedback/form')
|
||||
.find('.badge.info-badge')
|
||||
})
|
||||
|
||||
it('does not render the info badge when user is not assigned to the variant', function () {
|
||||
@@ -218,8 +218,10 @@ describe('split test badge', function () {
|
||||
</EditorProviders>
|
||||
)
|
||||
|
||||
cy.get('a.badge.info-badge[href="/beta/participate"]')
|
||||
.contains('We are testing this new feature.')
|
||||
.contains('Click to give feedback')
|
||||
cy.findByRole('link', {
|
||||
name: /we are testing this new feature.*click to give feedback/i,
|
||||
})
|
||||
.should('have.attr', 'href', '/beta/participate')
|
||||
.find('.badge.info-badge')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user