Skip to content

Commit

Permalink
Merge pull request json-editor#1357 from germanbisurgi/dev/tests-sche…
Browse files Browse the repository at this point in the history
…maloader

Dev/tests schemaloader
  • Loading branch information
germanbisurgi authored Jun 23, 2023
2 parents 8e80897 26d9d61 commit 668643b
Show file tree
Hide file tree
Showing 4 changed files with 1,110 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/codeceptjs/issues/issue-gh-1211_test.js
Original file line number Diff line number Diff line change
@@ -0,0 1,17 @@
/* global Feature Scenario */

Feature('issues')

Scenario('GitHub issue 1211 should remain fixed @issue-1211 @schemaloader', async ({ I }) => {
I.amOnPage('issues/issue-gh-1211.html')
I.waitForText('Rule collection')
I.waitForText('SSID & MAC Groups')
I.waitForText('Certificate Extensions')
I.click('Rule')
I.waitForText('Generic Allow Rule')
I.click('Group')
I.waitForText('Group 1')
I.click('Extension')
I.waitForText('OID')
I.waitForValue('#value', '{"rules":[{"type":"any","name":"","description":"","enabled":false}],"groups":[{"type":"ssid-group","ssid-group":[],"name":"","description":""}],"certificate-extensions":[{"name":"","oid":""}],"trustedroots":[],"intuneids":[]}')
})
13 changes: 13 additions & 0 deletions tests/codeceptjs/issues/issue-gh-795_test.js
Original file line number Diff line number Diff line change
@@ -0,0 1,13 @@
/* global Feature Scenario */

Feature('issues')

Scenario('GitHub issue 795 should remain fixed @issue-795 @schemaloader', async ({ I }) => {
I.amOnPage('issues/issue-gh-795.html')
I.waitForText('Add item')
I.click('Add item')
I.waitForText('box')
I.fillField('#value', JSON.stringify([[{}], {}]))
I.click('Set Value')
I.waitForValue('#value', '[[{}],{}]')
})
Loading

0 comments on commit 668643b

Please sign in to comment.