Skip to content

Commit 17adc28

Browse files
authored
Merge pull request #3261 from nextcloud/fix/format
Chore: fix formatting
2 parents 8d4f677 + f177267 commit 17adc28

13 files changed

Lines changed: 79 additions & 60 deletions

playwright/e2e/a11y-question-inputs.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
*/
55

66
import { expect, mergeTests } from '@playwright/test'
7-
import { test as formTest } from '../support/fixtures/form'
8-
import { test as appNavigationTest } from '../support/fixtures/navigation'
9-
import { test as randomUserTest } from '../support/fixtures/random-user'
10-
import { test as topBarTest } from '../support/fixtures/topBar'
11-
import { QuestionType } from '../support/sections/QuestionType'
12-
import { FormsView } from '../support/sections/TopBarSection'
7+
import { test as formTest } from '../support/fixtures/form.ts'
8+
import { test as appNavigationTest } from '../support/fixtures/navigation.ts'
9+
import { test as randomUserTest } from '../support/fixtures/random-user.ts'
10+
import { test as topBarTest } from '../support/fixtures/topBar.ts'
11+
import { QuestionType } from '../support/sections/QuestionType.ts'
12+
import { FormsView } from '../support/sections/TopBarSection.ts'
1313

1414
const test = mergeTests(randomUserTest, appNavigationTest, formTest, topBarTest)
1515

playwright/e2e/form-settings.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
*/
55

66
import { expect, mergeTests } from '@playwright/test'
7-
import { test as formTest } from '../support/fixtures/form'
8-
import { test as appNavigationTest } from '../support/fixtures/navigation'
9-
import { test as randomUserTest } from '../support/fixtures/random-user'
10-
import { test as submitTest } from '../support/fixtures/submit'
11-
import { test as topBarTest } from '../support/fixtures/topBar'
12-
import { waitForApiResponse } from '../support/helpers'
13-
import { QuestionType } from '../support/sections/QuestionType'
14-
import { FormsView } from '../support/sections/TopBarSection'
7+
import { test as formTest } from '../support/fixtures/form.ts'
8+
import { test as appNavigationTest } from '../support/fixtures/navigation.ts'
9+
import { test as randomUserTest } from '../support/fixtures/random-user.ts'
10+
import { test as submitTest } from '../support/fixtures/submit.ts'
11+
import { test as topBarTest } from '../support/fixtures/topBar.ts'
12+
import { waitForApiResponse } from '../support/helpers.ts'
13+
import { QuestionType } from '../support/sections/QuestionType.ts'
14+
import { FormsView } from '../support/sections/TopBarSection.ts'
1515

1616
const test = mergeTests(
1717
randomUserTest,

playwright/e2e/form-sharing.spec.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@
44
*/
55

66
import { expect, mergeTests } from '@playwright/test'
7-
import { test as randomUserTest } from '../support/fixtures/random-user'
8-
import { test as appNavigationTest } from '../support/fixtures/navigation'
9-
import { test as formTest } from '../support/fixtures/form'
10-
import { QuestionType } from '../support/sections/QuestionType'
11-
import { waitForApiResponse } from '../support/helpers'
7+
import { test as formTest } from '../support/fixtures/form.ts'
8+
import { test as appNavigationTest } from '../support/fixtures/navigation.ts'
9+
import { test as randomUserTest } from '../support/fixtures/random-user.ts'
10+
import { waitForApiResponse } from '../support/helpers.ts'
11+
import { QuestionType } from '../support/sections/QuestionType.ts'
1212

13-
const test = mergeTests(
14-
randomUserTest,
15-
appNavigationTest,
16-
formTest,
17-
)
13+
const test = mergeTests(randomUserTest, appNavigationTest, formTest)
1814

1915
test.describe('Form sharing', () => {
2016
test.beforeEach(async ({ page, appNavigation, form }) => {

playwright/e2e/question-editing.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
*/
55

66
import { expect, mergeTests } from '@playwright/test'
7-
import { test as randomUserTest } from '../support/fixtures/random-user'
8-
import { test as appNavigationTest } from '../support/fixtures/navigation'
9-
import { test as formTest } from '../support/fixtures/form'
10-
import { QuestionType } from '../support/sections/QuestionType'
7+
import { test as formTest } from '../support/fixtures/form.ts'
8+
import { test as appNavigationTest } from '../support/fixtures/navigation.ts'
9+
import { test as randomUserTest } from '../support/fixtures/random-user.ts'
10+
import { QuestionType } from '../support/sections/QuestionType.ts'
1111

1212
const test = mergeTests(randomUserTest, appNavigationTest, formTest)
1313

playwright/e2e/required-fields.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
*/
55

66
import { expect, mergeTests } from '@playwright/test'
7-
import { test as formTest } from '../support/fixtures/form'
8-
import { test as appNavigationTest } from '../support/fixtures/navigation'
9-
import { test as randomUserTest } from '../support/fixtures/random-user'
10-
import { test as submitTest } from '../support/fixtures/submit'
11-
import { test as topBarTest } from '../support/fixtures/topBar'
12-
import { QuestionType } from '../support/sections/QuestionType'
13-
import { FormsView } from '../support/sections/TopBarSection'
7+
import { test as formTest } from '../support/fixtures/form.ts'
8+
import { test as appNavigationTest } from '../support/fixtures/navigation.ts'
9+
import { test as randomUserTest } from '../support/fixtures/random-user.ts'
10+
import { test as submitTest } from '../support/fixtures/submit.ts'
11+
import { test as topBarTest } from '../support/fixtures/topBar.ts'
12+
import { QuestionType } from '../support/sections/QuestionType.ts'
13+
import { FormsView } from '../support/sections/TopBarSection.ts'
1414

1515
const test = mergeTests(
1616
randomUserTest,

playwright/e2e/results-view.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
*/
55

66
import { expect, mergeTests } from '@playwright/test'
7-
import { test as formTest } from '../support/fixtures/form'
8-
import { test as appNavigationTest } from '../support/fixtures/navigation'
9-
import { test as randomUserTest } from '../support/fixtures/random-user'
10-
import { test as resultsTest } from '../support/fixtures/results'
11-
import { test as submitTest } from '../support/fixtures/submit'
12-
import { test as topBarTest } from '../support/fixtures/topBar'
13-
import { QuestionType } from '../support/sections/QuestionType'
14-
import { FormsView } from '../support/sections/TopBarSection'
7+
import { test as formTest } from '../support/fixtures/form.ts'
8+
import { test as appNavigationTest } from '../support/fixtures/navigation.ts'
9+
import { test as randomUserTest } from '../support/fixtures/random-user.ts'
10+
import { test as resultsTest } from '../support/fixtures/results.ts'
11+
import { test as submitTest } from '../support/fixtures/submit.ts'
12+
import { test as topBarTest } from '../support/fixtures/topBar.ts'
13+
import { QuestionType } from '../support/sections/QuestionType.ts'
14+
import { FormsView } from '../support/sections/TopBarSection.ts'
1515

1616
const test = mergeTests(
1717
randomUserTest,

playwright/e2e/submit-form.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
*/
55

66
import { expect, mergeTests } from '@playwright/test'
7-
import { test as randomUserTest } from '../support/fixtures/random-user'
8-
import { test as appNavigationTest } from '../support/fixtures/navigation'
9-
import { test as formTest } from '../support/fixtures/form'
10-
import { test as topBarTest } from '../support/fixtures/topBar'
11-
import { test as submitTest } from '../support/fixtures/submit'
12-
import { QuestionType } from '../support/sections/QuestionType'
13-
import { FormsView } from '../support/sections/TopBarSection'
7+
import { test as formTest } from '../support/fixtures/form.ts'
8+
import { test as appNavigationTest } from '../support/fixtures/navigation.ts'
9+
import { test as randomUserTest } from '../support/fixtures/random-user.ts'
10+
import { test as submitTest } from '../support/fixtures/submit.ts'
11+
import { test as topBarTest } from '../support/fixtures/topBar.ts'
12+
import { QuestionType } from '../support/sections/QuestionType.ts'
13+
import { FormsView } from '../support/sections/TopBarSection.ts'
1414

1515
const test = mergeTests(
1616
randomUserTest,

playwright/support/fixtures/results.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import { test as baseTest } from '@playwright/test'
7-
import { ResultsSection } from '../sections/ResultsSection'
7+
import { ResultsSection } from '../sections/ResultsSection.ts'
88

99
interface ResultsFixture {
1010
resultsView: ResultsSection

playwright/support/fixtures/submit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import { test as baseTest } from '@playwright/test'
7-
import { SubmitSection } from '../sections/SubmitSection'
7+
import { SubmitSection } from '../sections/SubmitSection.ts'
88

99
interface SubmitFixture {
1010
submitView: SubmitSection

playwright/support/helpers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ const FORMS_API_PATH = '/api/v3/forms/'
1010
/**
1111
* Wait for a Forms API response matching the given HTTP method.
1212
* Must be called BEFORE the action that triggers the request.
13+
*
14+
* @param page the current page
15+
* @param method the request method
1316
*/
14-
export function waitForApiResponse(
15-
page: Page,
16-
method: string,
17-
): Promise<Response> {
17+
export function waitForApiResponse(page: Page, method: string): Promise<Response> {
1818
return page.waitForResponse(
1919
(response) =>
2020
response.request().method() === method

0 commit comments

Comments
 (0)