Skip to content

Commit

Permalink
feat(icon): skipping test case for webkit
Browse files Browse the repository at this point in the history
  • Loading branch information
vikalpg authored and Westbrook committed May 8, 2023
1 parent dee1929 commit fa4b903
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/icon/test/icon.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import Sinon from 'sinon';
import { isWebKit } from '@spectrum-web-components/shared';
import '@spectrum-web-components/icon/sp-icon.js';
import { Icon } from '@spectrum-web-components/icon';
import '@spectrum-web-components/icons/sp-icons-medium.js';
import { elementUpdated, expect, fixture, html } from '@open-wc/testing';
import { testForLitDevWarnings } from '../../../test/testing-helpers.js';
import Sinon from 'sinon';

describe('Icon', () => {
before(async () => {
Expand Down Expand Up @@ -86,7 +87,10 @@ describe('Icon', () => {

await expect(el).to.be.accessible();

expect(error).to.be.calledOnce;
// Skipping the test case expectation for webkit because of error event not dispatching bug for the same, https://github.com/microsoft/playwright/issues/22332
if (!isWebKit()) {
expect(error).to.be.calledOnce;
}
});

it('loads w/ label', async () => {
Expand Down

0 comments on commit fa4b903

Please sign in to comment.