Skip to content

Commit

Permalink
Tests e2e playwright lint requests metadata tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Jan 29, 2025
1 parent 389fd4a commit af8abd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/end2end/playwright/requests-metadata.spec.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// @ts-check
import { test, expect } from '@playwright/test';
import { test, expect, APIResponse } from '@playwright/test';

const url = 'index.php/view/app/metadata';

/**
* Check for a JSON response about the metadata
* @param {Response} response The response object
* @param {APIResponse} response The response object
*
* @return {JSON} The JSON response
* @return {Promise<Object>} The JSON response
*/
export async function checkJson(response) {
expect(response.ok()).toBeTruthy();
Expand Down

0 comments on commit af8abd8

Please sign in to comment.