Improve landmarks on the Project dashboard and Editor pages (#26751)

* 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

GitOrigin-RevId: 96712b37bb1306b552de510d9fd8ae890f24309f
This commit is contained in:
Rebeka Dekany
2025-07-23 08:07:35 +00:00
committed by Copybot
parent 45c92b0e02
commit e1ba93db21
41 changed files with 331 additions and 166 deletions
+20 -4
View File
@@ -85,7 +85,11 @@ describe('git-bridge', function () {
it('should render the git-bridge UI in the editor', function () {
maybeClearAllTokens()
createProject('git').as('projectId')
cy.get('header').findByText('Menu').click()
cy.findByRole('navigation', {
name: /Project actions/i,
})
.findByRole('button', { name: /Menu/i })
.click()
cy.findByText('Sync')
cy.findByText('Git').click()
cy.findByTestId('git-bridge-modal').within(() => {
@@ -100,7 +104,11 @@ describe('git-bridge', function () {
// Re-open
cy.url().then(url => cy.visit(url))
cy.get('header').findByText('Menu').click()
cy.findByRole('navigation', {
name: /Project actions/i,
})
.findByRole('button', { name: /Menu/i })
.click()
cy.findByText('Git').click()
cy.findByTestId('git-bridge-modal').within(() => {
cy.get('@projectId').then(id => {
@@ -188,7 +196,11 @@ describe('git-bridge', function () {
function checkGitAccess(access: 'readOnly' | 'readAndWrite') {
const recompile = throttledRecompile()
cy.get('header').findByText('Menu').click()
cy.findByRole('navigation', {
name: /Project actions/i,
})
.findByRole('button', { name: /Menu/i })
.click()
cy.findByText('Sync')
cy.findByText('Git').click()
cy.get('@projectId').then(projectId => {
@@ -370,7 +382,11 @@ Hello world
it('should not render the git-bridge UI in the editor', function () {
login('user@example.com')
createProject('maybe git')
cy.get('header').findByText('Menu').click()
cy.findByRole('navigation', {
name: /Project actions/i,
})
.findByRole('button', { name: /Menu/i })
.click()
cy.findByText('Word Count') // wait for lazy loading
cy.findByText('Sync').should('not.exist')
cy.findByText('Git').should('not.exist')