diff --git a/e2e/cypress/integration/06-0-feedback/db-progress.spec.js b/e2e/cypress/integration/06-0-feedback/db-progress.spec.js index 3b5d6a944..67cf94c34 100644 --- a/e2e/cypress/integration/06-0-feedback/db-progress.spec.js +++ b/e2e/cypress/integration/06-0-feedback/db-progress.spec.js @@ -9,7 +9,7 @@ context('db-progress', () => { it('Progress should exist and be configurable', function () { const simpleProgress = [0, 1]; simpleProgress.forEach((num) => { - cy.get('db-progress').eq(num).find('output').contains('60%'); + cy.get('db-progress').eq(num).find('label').contains('60%'); cy.get('db-progress') .eq(num) .find('progress') @@ -23,6 +23,6 @@ context('db-progress', () => { .invoke('attr', 'indeterminate') .should('exist'); - cy.get('db-progress').eq(3).find('output').contains('60 ❤️'); + cy.get('db-progress').eq(3).find('label').contains('60 ❤️'); }); }); diff --git a/e2e/cypress/integration/99-1-showcases/showcases-other-elements.spec.js b/e2e/cypress/integration/99-1-showcases/showcases-other-elements.spec.js index af41eb77f..6a1c4a329 100644 --- a/e2e/cypress/integration/99-1-showcases/showcases-other-elements.spec.js +++ b/e2e/cypress/integration/99-1-showcases/showcases-other-elements.spec.js @@ -14,7 +14,7 @@ context('showcase', () => { .should('eq', 'account'); // 2. DbProgress - cy.get('db-progress').eq(0).find('output').contains('60%'); + cy.get('db-progress').eq(0).find('label').contains('60%'); cy.get('db-progress') .eq(0) .find('progress') diff --git a/packages/db-ui-elements-stencil/src/components/db-progress/__tests__/db-progress.spec.tsx b/packages/db-ui-elements-stencil/src/components/db-progress/__tests__/db-progress.spec.tsx index df45038fd..721bb6d01 100644 --- a/packages/db-ui-elements-stencil/src/components/db-progress/__tests__/db-progress.spec.tsx +++ b/packages/db-ui-elements-stencil/src/components/db-progress/__tests__/db-progress.spec.tsx @@ -10,8 +10,10 @@ describe('db-progress', () => { expect(page.root).toEqualHtml(`
- - % + +
`); diff --git a/packages/db-ui-elements-stencil/src/components/db-progress/db-progress.tsx b/packages/db-ui-elements-stencil/src/components/db-progress/db-progress.tsx index f7aef9727..19360ada5 100644 --- a/packages/db-ui-elements-stencil/src/components/db-progress/db-progress.tsx +++ b/packages/db-ui-elements-stencil/src/components/db-progress/db-progress.tsx @@ -48,12 +48,17 @@ export class DbProgress { ? { ['--progress-conic']: `${this.value}` } : { ['']: '' } } + aria-describedby={this.htmlid + '-label'} /> {!this.indeterminate && ( - + + )} );