Skip to content

Commit 13547e3

Browse files
Convert protractor tests to Cypress
LF-2331
1 parent a3a0445 commit 13547e3

19 files changed

+10515
-5448
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ build
88
Makefile
99
test/benchmark/prev-fhirpath
1010
test/benchmark/results
11+
test/cypress/screenshots
12+
test/cypress/videos
13+
test/cypress/downloads

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
This log documents significant changes for each release. This project follows
44
[Semantic Versioning](http://semver.org/).
55

6+
## [2.14.6] - 2022-07-05
7+
### Changed
8+
- Migrated e2e tests to Cypress.
9+
610
## [2.14.5] - 2022-06-07
711
### Added
812
- Version number to fhirpath.js demo page.

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ page](https://github.com/HL7/fhirpath.js/releases). It contains a JavaScript
3030
file, fhirpath.min.js, which defines a global "fhirpath" variable, which you can
3131
then use as shown below. Note that this file is UTF-8 encoded, and the script
3232
needs to be loaded as such. For an example, see the
33-
browser-build/test/protractor/index.html file, which sets the page to be UTF-8.
33+
browser-build/test/index.html file, which sets the page to be UTF-8.
3434

3535
For FHIR-specific features (e.g. handling of choice type fields), you will also
3636
want to include a second file with the desired FHIR version model data, e.g.

Diff for: browser-build/Gruntfile.js

-42
This file was deleted.

Diff for: browser-build/test/protractor/index.html renamed to browser-build/test/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
<input id="r4" name="model" type="radio" value="r4" onclick="evaluateFP()"> R4
2929
<input id="stu3" name="model" type="radio" value="stu3" onclick="evaluateFP()"> STU3
3030
<input id="dstu2" name="model" type="radio" value="dstu2" onclick="evaluateFP()"> DSTU2
31-
<script src="../../fhirpath.min.js"></script>
32-
<script src="../../fhirpath.r4.min.js"></script>
33-
<script src="../../fhirpath.stu3.min.js"></script>
34-
<script src="../../fhirpath.dstu2.min.js"></script>
31+
<script src="../fhirpath.min.js"></script>
32+
<script src="../fhirpath.r4.min.js"></script>
33+
<script src="../fhirpath.stu3.min.js"></script>
34+
<script src="../fhirpath.dstu2.min.js"></script>
3535
<script>
3636
function evaluateFP() {
3737
var expr = document.getElementById('expression').value;

Diff for: browser-build/test/protractor/conf.js

-31
This file was deleted.

Diff for: browser-build/test/protractor/spec/browser.spec.js

-26
This file was deleted.

Diff for: cypress.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const { defineConfig } = require("cypress");
2+
3+
module.exports = defineConfig({
4+
watchForFileChanges: false,
5+
downloadsFolder: 'test/cypress/downloads',
6+
fixturesFolder: 'test/cypress/fixtures',
7+
screenshotsFolder: 'test/cypress/screenshots',
8+
videosFolder: 'test/cypress/videos',
9+
e2e: {
10+
specPattern: 'test/cypress/e2e/**/*.cy.js',
11+
supportFile: 'test/cypress/support/e2e.js',
12+
},
13+
});

Diff for: demo/Gruntfile.js

-42
This file was deleted.

0 commit comments

Comments
 (0)