diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 5289963d65..f304b21554 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -93,7 +93,7 @@ jobs: strategy: fail-fast: false matrix: - containers: [1, 2, 3, 4] + containers: [1, 2, 3, 4, 5] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 79aa48b280..d145c5a1cf 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -10,7 +10,7 @@ on: # To guarantee Maintained check is occasionally updated. See # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained schedule: - - cron: '18 21 * * 4' + - cron: '36 23 * * 1' push: branches: [ "master" ] diff --git a/cypress/component/Breadcrumbs.spec.tsx b/cypress/component/Breadcrumbs.spec.tsx index ce9d3ad57b..1566eadf9c 100644 --- a/cypress/component/Breadcrumbs.spec.tsx +++ b/cypress/component/Breadcrumbs.spec.tsx @@ -2,36 +2,10 @@ import * as React from 'react'; import {Basic} from '../../modules/react/breadcrumbs/stories/examples/Basic'; import {OverflowBreadcrumbs} from '../../modules/react/breadcrumbs/stories/examples/Overflow'; -function getBreadcrumbsNav() { - return cy.findByRole('navigation'); -} - -function getBreadcrumbsList() { - return cy.findByRole('list'); -} - function getAllBreadcrumbsLink(number?: number) { return number ? cy.findAllByRole('link').eq(number) : cy.findAllByRole('link'); } -function getDropdownButton() { - return cy.findByLabelText('More links'); -} - -function getDropdownMenu() { - return cy.findByRole('menu'); -} - -function getDropdownMenuItem(number?: number) { - return number ? cy.findAllByRole('menuitem').eq(number) : cy.findAllByRole('menuitem'); -} - -function openDropdownMenu() { - const dropdownButton = getDropdownButton(); - dropdownButton.focus(); - dropdownButton.realType('{enter}'); -} - describe('Breadcrumbs', () => { context('given the [Components/Navigation/Breadcrumbs, Basic] example is rendered', () => { beforeEach(() => { @@ -43,7 +17,7 @@ describe('Breadcrumbs', () => { }); it('should have an element with a role of "navigation"', () => { - getBreadcrumbsNav().should('be.visible'); + cy.findByRole('navigation').should('be.visible'); }); it('should have an element with a label of "Breadcrumbs"', () => { @@ -51,15 +25,15 @@ describe('Breadcrumbs', () => { }); it('should have a role of "list" on the