Skip to content

Commit 88f551d

Browse files
authored
Merge pull request #53 from owncloud/code-syntax-&-style-improvements
some code syntax & style improvements
2 parents e528bd1 + fe19b65 commit 88f551d

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed
File renamed without changes.

tests/e2e/api/apiUpload.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'fs'
22
import { config } from '../config.js'
3-
import { sendRequest } from './APIHelper'
3+
import { sendRequest } from './apiHelper'
44

55
export const apiUpload = async function ({ filename }): Promise<void> {
66
const response = await sendRequest({

tests/e2e/features/dicomViewer.feature

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Feature: Preview dicom image
2-
As a user
3-
I want to preview a DICOM file
4-
so that I can preview DICOM image and its metadata
2+
As a user who has a DICOM file
3+
I want to preview the file
4+
so that I can assure myself that it contains the right image and check its metadata
55

66

77
Scenario: user previews dicom image
88
Given the dicom file "MRBRAIN.dcm" has been uploaded
9-
And the user "Admin" has logged in
9+
And the user "admin" has logged in
1010
When the user previews the dicom file "MRBRAIN.dcm"
1111
Then the user should see the dicom file "MRBRAIN.dcm"
1212
And the user should see patient name "MR/BRAIN/GRASE/1024" in the VIP metadata section

tests/e2e/hooks.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { chromium } from '@playwright/test'
33
import { xml2js } from 'xml-js'
44
import { _ } from 'lodash'
55
import { config } from './config.js'
6-
import { sendRequest } from './api/APIHelper'
6+
import { sendRequest } from './api/apiHelper'
77

88
setDefaultTimeout(config.timeout * 1000)
99

tests/e2e/pageObjects/DicomViewer.ts renamed to tests/e2e/pageObjects/dicomViewerPage.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import util from 'util'
22
import { getUser } from '../userStore'
33

4-
export class DicomViewer {
4+
export class dicomViewerPage {
55
elements: Readonly<Record<string, string>> = {
66
userNameSelector: '#oc-login-username',
77
passwordSelector: '#oc-login-password',

tests/e2e/steps/dicomViewerContext.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { expect } from '@playwright/test'
33
import util from 'util'
44
import { config } from '../config.js'
55

6-
import { DicomViewer } from '../pageObjects/DicomViewer'
6+
import { dicomViewerPage } from '../pageObjects/dicomViewerPage'
77

8-
const dicomViewer = new DicomViewer()
8+
const dicomViewer = new dicomViewerPage()
99
import { apiUpload } from '../api/apiUpload'
1010

1111
Given('the user {string} has logged in', async function (user: string): Promise<void> {

0 commit comments

Comments
 (0)