Skip to content

Commit 658f698

Browse files
committed
try again
1 parent bc08423 commit 658f698

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

frontend/src/static/js/components/test/webstatus-saved-search-editor.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ describe('webstatus-saved-search-editor', () => {
4848
} as unknown as User;
4949

5050
async function setupComponent(
51-
_operation: 'save' | 'edit' | 'delete',
52-
_savedSearch?: UserSavedSearch,
53-
_overviewPageQueryInput?: WebstatusTypeahead,
51+
operation: 'save' | 'edit' | 'delete',
52+
savedSearch?: UserSavedSearch,
53+
overviewPageQueryInput?: WebstatusTypeahead,
5454
): Promise<WebstatusSavedSearchEditor> {
5555
apiClientStub = sinon.createStubInstance(APIClient);
5656
toastStub = sinon.stub(Toast.prototype, 'toast');
@@ -64,7 +64,7 @@ describe('webstatus-saved-search-editor', () => {
6464
`);
6565
console.log('Pre step 2');
6666
// Manually open the dialog after fixture creation
67-
// await component.open(operation, savedSearch, overviewPageQueryInput);
67+
void component.open(operation, savedSearch, overviewPageQueryInput);
6868
await component.updateComplete;
6969
return component;
7070
}
@@ -319,8 +319,6 @@ describe('webstatus-saved-search-editor', () => {
319319
describe('Cancel Button', () => {
320320
it('dispatches "saved-search-cancelled" event when cancel button is clicked', async () => {
321321
el = await setupComponent('edit', existingSearch);
322-
await el.open('edit', existingSearch);
323-
await el.updateComplete;
324322

325323
const cancelButton = el.shadowRoot?.querySelector<HTMLButtonElement>(
326324
'sl-button[variant="default"]',

0 commit comments

Comments
 (0)