File tree 6 files changed +9
-9
lines changed
6 files changed +9
-9
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import fs from 'fs'
2
2
import { config } from '../config.js'
3
- import { sendRequest } from './APIHelper '
3
+ import { sendRequest } from './apiHelper '
4
4
5
5
export const apiUpload = async function ( { filename } ) : Promise < void > {
6
6
const response = await sendRequest ( {
Original file line number Diff line number Diff line change 1
1
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
5
5
6
6
7
7
Scenario : user previews dicom image
8
8
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
10
10
When the user previews the dicom file "MRBRAIN.dcm"
11
11
Then the user should see the dicom file "MRBRAIN.dcm"
12
12
And the user should see patient name "MR/BRAIN/GRASE/1024" in the VIP metadata section
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { chromium } from '@playwright/test'
3
3
import { xml2js } from 'xml-js'
4
4
import { _ } from 'lodash'
5
5
import { config } from './config.js'
6
- import { sendRequest } from './api/APIHelper '
6
+ import { sendRequest } from './api/apiHelper '
7
7
8
8
setDefaultTimeout ( config . timeout * 1000 )
9
9
Original file line number Diff line number Diff line change 1
1
import util from 'util'
2
2
import { getUser } from '../userStore'
3
3
4
- export class DicomViewer {
4
+ export class dicomViewerPage {
5
5
elements : Readonly < Record < string , string > > = {
6
6
userNameSelector : '#oc-login-username' ,
7
7
passwordSelector : '#oc-login-password' ,
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import { expect } from '@playwright/test'
3
3
import util from 'util'
4
4
import { config } from '../config.js'
5
5
6
- import { DicomViewer } from '../pageObjects/DicomViewer '
6
+ import { dicomViewerPage } from '../pageObjects/dicomViewerPage '
7
7
8
- const dicomViewer = new DicomViewer ( )
8
+ const dicomViewer = new dicomViewerPage ( )
9
9
import { apiUpload } from '../api/apiUpload'
10
10
11
11
Given ( 'the user {string} has logged in' , async function ( user : string ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments