Skip to content

Commit

Permalink
test: checking if the link is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
guidari committed Sep 15, 2023
1 parent 04bed1c commit 9b55acd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions e2e/components/breadcrumb/breadcrumb-test.avt.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,8 @@ test.describe('breadcrumb @avt', () => {
await expect(page.getByText('Breadcrumb 1')).toBeVisible();
await page.keyboard.press('Tab');
await expect(page.getByText('Breadcrumb 1')).toBeFocused();

// Testing link. For this test pass the href must be like that: href="#"
await page.keyboard.press('Enter');
//Navigates to the welcome page
await expect(page.getByText('@carbon/reasct')).toBeVisible();
// Checking if the link is enabled to be clicked on
await expect(page.getByText('Breadcrumb 1')).toBeEnabled();
});

test('@avt-keyboard-nav - item without href prop', async ({ page }) => {
Expand Down

0 comments on commit 9b55acd

Please sign in to comment.