Skip to content

Commit

Permalink
fix: several bugs (#236)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
kobenguyent authored Sep 15, 2023
1 parent 8bd6d3f commit 392ff77
Show file tree
Hide file tree
Showing 10 changed files with 36,335 additions and 265 deletions.
1 change: 1 addition & 0 deletions lib/api/get-page-objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const pageObjects = {};

Object.getOwnPropertyNames(supportObjects).map(async pageObject => {
pageObjects[pageObject] = {
name: pageObjects[pageObject],
path: files[pageObject],
source: await fs.readFile(files[pageObject], 'utf-8'),
methods: Object.keys(supportObjects[pageObject]),
Expand Down
5 changes: 3 additions & 2 deletions lib/model/scenario-repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,15 @@ const getFeatures = (searchQuery, opts = {}) => {

feature.scenarios.push({
uid: test.uid,
id: test.uid,
pending: test.pending,
file: test.file,
title: stripTags(test.title),
data: extractData(test.title),
tags: extractTags(test.title),
fullTitle: test.fullTitle(),
orgTitle: test.title,
body: opts.full && test.body,
body: opts.full && (test.body).replace(/secret(.*)/i, '*****);'),
matchesQuery: true
});
}
Expand Down Expand Up @@ -222,4 +223,4 @@ module.exports = {
getScenario,
reloadSuites,
groupFeaturesByCapability
};
};
Loading

0 comments on commit 392ff77

Please sign in to comment.