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 -3
View File
@@ -2,8 +2,6 @@ import { v4 as uuidv4 } from 'uuid';
import { e2e } from '../index';
import { DeleteDataSourceConfig } from './deleteDataSource';
export interface AddDataSourceConfig {
basicAuth: boolean;
basicAuthPassword: string;
@@ -96,7 +94,7 @@ export const addDataSource = (config?: Partial<AddDataSourceConfig>) => {
return cy.url().then(() => {
e2e.getScenarioContext().then(({ addedDataSources }) => {
e2e.setScenarioContext({
addedDataSources: [...addedDataSources, { name } as DeleteDataSourceConfig],
addedDataSources: [...addedDataSources, { name, id: '' }],
});
});