Browse Source

Modify get value test

Include output elements for testing.
master
TheoryOfNekomata 1 year ago
parent
commit
d2cb12ea28
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      cypress/integration/core.test.ts

+ 3
- 0
cypress/integration/core.test.ts View File

@@ -251,6 +251,7 @@ describe('misc', () => {
<input id="notField" type="text" />
<input id="disabled" disabled type="text" name="disabled" />
<meter id="meter" min="1" max="10" value="5" />
<output id="output" name="random">5</output>
<button type="submit">Submit</button>
</form>
</body>
@@ -263,6 +264,8 @@ describe('misc', () => {
onSubmitted: (form: HTMLFormElement, submitter: any, search: any) => {
const meter = document.getElementById('meter');
expect(getValue(meter)).toBe(5);
const output = document.getElementById('output');
expect(getValue(output)).toBe('5');
},
});
});


Loading…
Cancel
Save