Skip to content

Commit

Permalink
Merge branch 'main' into combobox7998
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rajat19 authored Oct 19, 2023
2 parents 19ff172 + e41a4db commit 11e0107
Show file tree
Hide file tree
Showing 148 changed files with 1,247 additions and 1,700 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
dedupe:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
Expand All @@ -28,7 +28,7 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
Expand All @@ -41,7 +41,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
Expand All @@ -56,7 +56,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
Expand All @@ -82,7 +82,7 @@ jobs:
name: 'test:e2e'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
shard: [1, 2, 3, 4]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:
avt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
repository: carbon-design-system/design-language-website
ref: master
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
repository: carbon-design-system/gatsby-theme-carbon
ref: main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
id-token: write
contents: write
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1

- name: Use Node.js 20.x
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-generated-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/v10-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
dedupe:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1

- name: Use Node.js 20.x
uses: actions/setup-node@v3
Expand All @@ -25,7 +25,7 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
ref: v10
- name: Use Node.js 20.x
Expand All @@ -40,7 +40,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
ref: v10
- name: Use Node.js 20.x
Expand All @@ -57,7 +57,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
ref: v10
- name: Use Node.js 20.x
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
name: 'test:e2e'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
ref: v10
- name: Use Node.js 20.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/v10-deploy-react-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
build-ibmcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1

- name: Use Node.js 20.x
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/v10-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
id-token: write
contents: write
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1

- name: Use Node.js 20.x
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
if: github.repository == 'carbon-design-system/carbon'
timeout-minutes: 60
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
fetch-depth: '0'
- name: Use Node.js 20.x
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion actions/add-review-labels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
],
"dependencies": {
"@actions/core": "^1.2.3",
"@actions/github": "^2.1.1"
"@actions/github": "^6.0.0"
}
}
2 changes: 1 addition & 1 deletion actions/issues/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
],
"dependencies": {
"@actions/core": "^1.2.3",
"@actions/github": "^2.1.1"
"@actions/github": "^6.0.0"
}
}
2 changes: 1 addition & 1 deletion actions/release-notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"@actions/github": "^6.0.0",
"@octokit/auth-action": "^2.0.1",
"@octokit/request": "^6.2.1"
}
Expand Down
5 changes: 1 addition & 4 deletions e2e/components/CodeSnippet/CodeSnippet-test.avt.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ test.describe('CodeSnippet @avt', () => {
await expect(page).toHaveNoACViolations('CodeSnippet inline focused');
});

// Skipping due to a11y violation issue #14237
test.skip('accessibility-checker CodeSnippet multiline @avt', async ({
page,
}) => {
test('accessibility-checker CodeSnippet multiline @avt', async ({ page }) => {
await visitStory(page, {
component: 'CodeSnippet',
id: 'components-codesnippet--multiline',
Expand Down
1 change: 1 addition & 0 deletions e2e/components/ComposedModal/ComposedModal-test.avt.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ test.describe('ComposedModal @avt', () => {
await expect(page).toHaveNoACViolations('ComposedModal-full-width');
});

// Skipping now due to AVT violation, possible false positive
test.skip('@avt-advanced-states ComposedModal Passive Modal', async ({
page,
}) => {
Expand Down
72 changes: 72 additions & 0 deletions e2e/components/FormLabel/FormLabel-test.avt.e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/**
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const { expect, test } = require('@playwright/test');
const { visitStory } = require('../../test-utils/storybook');

test.describe('FormLabel @avt', () => {
test('@avt-default-state FormLabel', async ({ page }) => {
await visitStory(page, {
component: 'FormLabel',
id: 'components-formlabel--default',
globals: {
theme: 'white',
},
});
await expect(page).toHaveNoACViolations('FormLabel');
});

test('@avt-advanced-states FormLabel with tooltip', async ({ page }) => {
await visitStory(page, {
component: 'FormLabel',
id: 'components-formlabel--with-tooltip',
globals: {
theme: 'white',
},
});
await expect(page).toHaveNoACViolations('FormLabel-with-tooltip');
});

test('@avt-keyboard-nav FormLabel with tooltip', async ({ page }) => {
await visitStory(page, {
component: 'FormLabel',
id: 'components-formlabel--with-tooltip',
globals: {
theme: 'white',
},
});

await expect(page.getByText('Form label with Tooltip')).toBeVisible();
await page.keyboard.press('Tab');
await expect(
page
.getByText(
'This can be used to provide more information about a field.'
)
.first()
).toBeVisible();
await page.keyboard.press('Tab');
await page.keyboard.press('Enter');
await expect(
page
.getByText(
'This can be used to provide more information about a field.'
)
.last()
).toBeVisible();
await page.keyboard.press('Escape');
await expect(
page
.getByText(
'This can be used to provide more information about a field.'
)
.last()
).not.toBeVisible();
});
});
15 changes: 2 additions & 13 deletions e2e/components/FormLabel/FormLabel-test.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

'use strict';

const { expect, test } = require('@playwright/test');
const { test } = require('@playwright/test');
const { themes } = require('../../test-utils/env');
const { snapshotStory, visitStory } = require('../../test-utils/storybook');
const { snapshotStory } = require('../../test-utils/storybook');

test.describe('FormLabel', () => {
themes.forEach((theme) => {
Expand All @@ -31,15 +31,4 @@ test.describe('FormLabel', () => {
});
});
});

test('accessibility-checker @avt', async ({ page }) => {
await visitStory(page, {
component: 'FormLabel',
id: 'components-formlabel--default',
globals: {
theme: 'white',
},
});
await expect(page).toHaveNoACViolations('FormLabel');
});
});
54 changes: 54 additions & 0 deletions e2e/components/Tag/Tag-test.avt.e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/**
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

import { expect, test } from '@playwright/test';
import { visitStory } from '../../test-utils/storybook';

test.describe('Tag @avt', () => {
test('@avt-default-state Tag', async ({ page }) => {
await visitStory(page, {
component: 'Tag',
id: 'components-tag--default',
globals: {
theme: 'white',
},
});
await expect(page).toHaveNoACViolations('Tag');
});

test('@avt-advanced-states Tag skeleton', async ({ page }) => {
await visitStory(page, {
component: 'Tag',
id: 'components-tag--skeleton',
globals: {
theme: 'white',
},
});
await expect(page).toHaveNoACViolations('Tag-skeleton');
});

test('@avt-keyboard-nav Tag', async ({ page }) => {
await visitStory(page, {
component: 'Tag',
id: 'components-tag--playground',
globals: {
theme: 'white',
},
args: {
filter: true,
},
});

await expect(page.getByText('Tag content')).toBeVisible();
await page.keyboard.press('Tab');
await expect(
page.getByRole('button', { name: 'Clear filter' })
).toBeFocused();
});
});
Loading

0 comments on commit 11e0107

Please sign in to comment.