microsoft / accessibility-insights-web

Accessibility Insights for Web
https://accessibilityinsights.io
MIT License
835 stars 150 forks source link

chore: Typescript Cleanup- Part 3 for Test Files #7291

Closed JeevaniChinthala closed 6 months ago

JeevaniChinthala commented 6 months ago

Details

As part of Typescript migration added/removed the error causing fields.

Motivation

TypeScript 5.0 has marked some options as deprecated. We can temporarily override these deprecations, but the documented plan is for the ability to override the flag to go away in TypeScript 5.5

Context
  1. featureFlagStoreData
  1. avatarUrl: 'avatarUrl'
  1. status: ManualTestStatus.FAIL
  1. supportLinkHandler: null
  1. browserAdapter: browserAdapterMock.object
  1. targetAppInfo
  1. outcomeType: outcomeType,
  1. pageTitle
  1. deps:null
  1. { name: 'Any', key: 'any' }
  1. cardSelectionMessageCreator

Pull request checklist

v-viyada commented 6 months ago

Some of the items that were removed (like the featureFlagStoreData accessor) were likely used for features that were at one point still under development. I like removing them now, even though it means potentially re-adding them (with correct support in the types) at some future time.

There's always the risk that we've broken something, but since we need to a full accessibility test pass before releasing with the FluentUI update, this seems like the right time to make this sort of extensive change.

Hi @DaveTryon, This will go with axe-core update release if merged before #7274 . Should we hold this PR and merge after axe-core update PR?

madalynrose commented 6 months ago

Some of the items that were removed (like the featureFlagStoreData accessor) were likely used for features that were at one point still under development. I like removing them now, even though it means potentially re-adding them (with correct support in the types) at some future time.

There's always the risk that we've broken something, but since we need to a full accessibility test pass before releasing with the FluentUI update, this seems like the right time to make this sort of extensive change.

I looked and this instance of featureFlagStoreData was added in #5736 and should have been removed in #5971. Looks like this particular instance was just missed.