Skip to content

Commit 392ff77

Browse files
authored
fix: several bugs (#236)
* fix: cannot get scenario by id * fix: mask value when using secret * fix: padding * fix: typo * fix(accessibility): Colorblind mode for UI * feat: support PO view * fix: Get error after closing the code editor warning and refreshing the page * fix: add missing import
1 parent 8bd6d3f commit 392ff77

10 files changed

+36335
-265
lines changed

lib/api/get-page-objects.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const pageObjects = {};
1010

1111
Object.getOwnPropertyNames(supportObjects).map(async pageObject => {
1212
pageObjects[pageObject] = {
13+
name: pageObjects[pageObject],
1314
path: files[pageObject],
1415
source: await fs.readFile(files[pageObject], 'utf-8'),
1516
methods: Object.keys(supportObjects[pageObject]),

lib/model/scenario-repository.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,15 @@ const getFeatures = (searchQuery, opts = {}) => {
135135

136136
feature.scenarios.push({
137137
uid: test.uid,
138+
id: test.uid,
138139
pending: test.pending,
139140
file: test.file,
140141
title: stripTags(test.title),
141142
data: extractData(test.title),
142143
tags: extractTags(test.title),
143144
fullTitle: test.fullTitle(),
144145
orgTitle: test.title,
145-
body: opts.full && test.body,
146+
body: opts.full && (test.body).replace(/secret(.*)/i, '*****);'),
146147
matchesQuery: true
147148
});
148149
}
@@ -222,4 +223,4 @@ module.exports = {
222223
getScenario,
223224
reloadSuites,
224225
groupFeaturesByCapability
225-
};
226+
};

0 commit comments

Comments
 (0)