Selaa lähdekoodia

Modify get value test

Include output elements for testing.
master
TheoryOfNekomata 1 vuosi sitten
vanhempi
commit
d2cb12ea28
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. +3
    -0
      cypress/integration/core.test.ts

+ 3
- 0
cypress/integration/core.test.ts Näytä tiedosto

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


Ladataan…
Peruuta
Tallenna