Skip to content

Commit

Permalink
Merge pull request #53 from owncloud/code-syntax-&-style-improvements
Browse files Browse the repository at this point in the history
some code syntax & style improvements
  • Loading branch information
koebel authored Aug 20, 2024
2 parents e528bd1 + fe19b65 commit 88f551d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/e2e/api/apiUpload.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs'
import { config } from '../config.js'
import { sendRequest } from './APIHelper'
import { sendRequest } from './apiHelper'

export const apiUpload = async function ({ filename }): Promise<void> {
const response = await sendRequest({
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/features/dicomViewer.feature
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Feature: Preview dicom image
As a user
I want to preview a DICOM file
so that I can preview DICOM image and its metadata
As a user who has a DICOM file
I want to preview the file
so that I can assure myself that it contains the right image and check its metadata


Scenario: user previews dicom image
Given the dicom file "MRBRAIN.dcm" has been uploaded
And the user "Admin" has logged in
And the user "admin" has logged in
When the user previews the dicom file "MRBRAIN.dcm"
Then the user should see the dicom file "MRBRAIN.dcm"
And the user should see patient name "MR/BRAIN/GRASE/1024" in the VIP metadata section
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { chromium } from '@playwright/test'
import { xml2js } from 'xml-js'
import { _ } from 'lodash'
import { config } from './config.js'
import { sendRequest } from './api/APIHelper'
import { sendRequest } from './api/apiHelper'

setDefaultTimeout(config.timeout * 1000)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import util from 'util'
import { getUser } from '../userStore'

export class DicomViewer {
export class dicomViewerPage {
elements: Readonly<Record<string, string>> = {
userNameSelector: '#oc-login-username',
passwordSelector: '#oc-login-password',
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/steps/dicomViewerContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { expect } from '@playwright/test'
import util from 'util'
import { config } from '../config.js'

import { DicomViewer } from '../pageObjects/DicomViewer'
import { dicomViewerPage } from '../pageObjects/dicomViewerPage'

const dicomViewer = new DicomViewer()
const dicomViewer = new dicomViewerPage()
import { apiUpload } from '../api/apiUpload'

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

0 comments on commit 88f551d

Please sign in to comment.