Update spellcheck test to be less flaky
This commit is contained in:
parent
a7ad48f34b
commit
5b656e75ed
|
|
@ -2,6 +2,8 @@ import module from '../../fixtures/module.minimal';
|
|||
|
||||
const spellCheck = require('../../fixtures/spell-check.json');
|
||||
|
||||
const userText = 'Hir ist ein Feler gewesen';
|
||||
|
||||
const operations = {
|
||||
MeQuery: {
|
||||
me: {
|
||||
|
|
@ -42,7 +44,7 @@ const operations = {
|
|||
'solution': null,
|
||||
'submission': {
|
||||
'id': 'U3R1ZGVudFN1Ym1pc3Npb25Ob2RlOjE=',
|
||||
'text': 'Hir ist ein Feler gewesen',
|
||||
'text': userText,
|
||||
'final': false,
|
||||
'document': '',
|
||||
'submissionFeedback': {
|
||||
|
|
@ -144,6 +146,7 @@ describe('Spellcheck', () => {
|
|||
it('should highlight three errors', () => {
|
||||
cy.visit('/module/lohn-und-budget/');
|
||||
|
||||
cy.getByDataCy('submission-textarea').should('have.value', userText);
|
||||
cy.getByDataCy('spellcheck-correction').should('have.length', 0);
|
||||
cy.getByDataCy('spellcheck-button').click();
|
||||
cy.getByDataCy('spellcheck-correction').should('have.length', 3);
|
||||
|
|
|
|||
Loading…
Reference in New Issue