Improve landmarks on the Project dashboard and Editor pages (#27401)
* Improve landmarks for the Project Dasbhboard * Improve landmarks for the IDE page * Improve landmarks for the new redesigned IDE page * Sort locales * Fix typo OlButtonToolbar -> OLButtonToolbar * Update project navbar translation * Update labels * Redundant main landmark * Fix failing test * Descriptive name for the rails tab * Header should not be in a button * Update translation to Account and help * Update translation to Project categories and tags * Add explanations * Show landmark for the survey widget when it's rendered * Suggestions for nav stretch/scroll/borders * Source format --------- Co-authored-by: Antoine Clausse <antoine.clausse@overleaf.com> GitOrigin-RevId: d05a738e782d2edb229529aadf92b9004dfd973a
This commit is contained in:
committed by
Copybot
co-authored by
Antoine Clausse
parent
1abb98fac2
commit
7c97cbbfe4
@@ -144,7 +144,19 @@ describe('change list (Bootstrap 5)', function () {
|
||||
cy.findByRole('button', { name: /delete/i }).should('not.exist')
|
||||
})
|
||||
)
|
||||
cy.findByLabelText(/labels/i).click({ force: true })
|
||||
cy.findByRole('complementary', {
|
||||
name: /Project history and labels/i,
|
||||
}).within(() => {
|
||||
cy.findByRole('group', {
|
||||
name: /Show all of the project history/i,
|
||||
}).within(() => {
|
||||
cy.findByText(/Labels/i).click()
|
||||
})
|
||||
cy.findByRole('radio', { name: /Labels/i }).should('be.checked')
|
||||
cy.findByRole('radio', { name: /All history/i }).should(
|
||||
'not.be.checked'
|
||||
)
|
||||
})
|
||||
cy.findAllByTestId('history-version-details').as('details')
|
||||
// first details on labels is always "current version", start testing on second
|
||||
cy.get('@details').should('have.length', 3)
|
||||
@@ -337,7 +349,19 @@ describe('change list (Bootstrap 5)', function () {
|
||||
}
|
||||
)
|
||||
waitForData()
|
||||
cy.findByLabelText(/labels/i).click({ force: true })
|
||||
cy.findByRole('complementary', {
|
||||
name: /Project history and labels/i,
|
||||
}).within(() => {
|
||||
cy.findByRole('group', {
|
||||
name: /Show all of the project history/i,
|
||||
}).within(() => {
|
||||
cy.findByText(/Labels/i).click()
|
||||
})
|
||||
cy.findByRole('radio', { name: /Labels/i }).should('be.checked')
|
||||
cy.findByRole('radio', { name: /All history/i }).should(
|
||||
'not.be.checked'
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
it('shows the dropdown menu item for adding new labels', function () {
|
||||
@@ -688,7 +712,19 @@ describe('change list (Bootstrap 5)', function () {
|
||||
|
||||
waitForData()
|
||||
|
||||
cy.findByLabelText(/labels/i).click({ force: true })
|
||||
cy.findByRole('complementary', {
|
||||
name: /Project history and labels/i,
|
||||
}).within(() => {
|
||||
cy.findByRole('group', {
|
||||
name: /Show all of the project history/i,
|
||||
}).within(() => {
|
||||
cy.findByText(/Labels/i).click()
|
||||
})
|
||||
cy.findByRole('radio', { name: /Labels/i }).should('be.checked')
|
||||
cy.findByRole('radio', { name: /All history/i }).should(
|
||||
'not.be.checked'
|
||||
)
|
||||
})
|
||||
|
||||
// One pseudo-label for the current state, one for our label
|
||||
cy.get('.history-version-label').should('have.length', 2)
|
||||
|
||||
Reference in New Issue
Block a user