Commit ebdd701c authored by Ben Hayward's avatar Ben Hayward

Indentation fix that was causing within closure to be exited prematurely

1 merge request!765Fixed broken E2E tests. #2539
Pipeline #116021785 failed with stages
in 31 minutes and 48 seconds
......@@ -117,39 +117,39 @@ context.only('Comment Threads', () => {
// avoids clicking thumbs in activity feed.
cy.get('.m-comment__toolbar').within(($list) => {
// thumbs up and down
cy.get(thumbsUpButton)
.each((button) => {
cy.wrap(button)
.click()
// thumbs up and down
cy.get(thumbsUpButton)
.each((button) => {
cy.wrap(button)
.click()
.wait('@thumbsPut')
.then(xhr => {
expect(xhr.status).to.equal(200);
});
});
// thumbs up and down
cy.get(thumbsDownButton)
.each((button) => {
cy.wrap(button).click()
.wait('@thumbsPut')
.then(xhr => {
expect(xhr.status).to.equal(200);
});
});
// thumbs up and down
cy.get(thumbsDownButton)
.each((button) => {
cy.wrap(button).click()
.wait('@thumbsPut')
.then(xhr => {
expect(xhr.status).to.equal(200);
});
});
// check counters
cy.get(thumbsUpCounters)
.each((counter) => {
expect(counter[0].innerHTML).to.eql('1');
});
// check counters
cy.get(thumbsUpCounters)
cy.get(thumbsDownCounters)
.each((counter) => {
expect(counter[0].innerHTML).to.eql('1');
});
});
cy.get(thumbsDownCounters)
.each((counter) => {
expect(counter[0].innerHTML).to.eql('1');
});
});
it('should allow the user to make a mature comment', () => {
......
Please register or to comment