Explorar el Código

Modify get value test

Include output elements for testing.
master
TheoryOfNekomata hace 1 año
padre
commit
d2cb12ea28
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      cypress/integration/core.test.ts

+ 3
- 0
cypress/integration/core.test.ts Ver fichero

@@ -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');
},
});
});


Cargando…
Cancelar
Guardar