Chore: fix some more types (#76535)

* clean up some e2e/runtime types

* fix some stories

* some more fixes

* fix route props

* update unit tests

* update more unit tests

* don't throw here
This commit is contained in:
Ashley Harrison
2023-10-24 11:53:22 +01:00
committed by GitHub
parent 272a901e5e
commit ced065c7e9
24 changed files with 90 additions and 125 deletions
+1 -4
View File
@@ -9,7 +9,6 @@ export interface ScenarioContext {
lastAddedDataSource: string; // @todo rename to `lastAddedDataSourceName`
lastAddedDataSourceId: string;
hasChangedUserPreferences: boolean;
[key: string]: any;
}
const scenarioContext: ScenarioContext = {
@@ -50,9 +49,7 @@ export const setScenarioContext = (newContext: Partial<ScenarioContext>): Cypres
.wrap(
{
setScenarioContext: () => {
Object.entries(newContext).forEach(([key, value]) => {
scenarioContext[key] = value;
});
Object.assign(scenarioContext, newContext);
},
},
{ log: false }