comment out flaky specs and add comments for exploration/refactor (#20103)

* comment out flaky specs and add commments for exploration/refactor context

* comment out only the specs which call reload for now

* use it.skip rather than commenting out
This commit is contained in:
Duke Greene 2023-09-14 06:25:27 -04:00 committed by GitHub
parent 0db4c7e445
commit 7d1d0ff80b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 9 deletions

View file

@ -264,6 +264,8 @@ async function adjustTag(el, reasonElement) {
}.`,
addCloseButton: true,
});
// TODO: explore possible alternatives to reloading window, which seems to have the side effect
// of making deferred JS load-in times unpredictable in e2e tests
window.location.reload();
} else {
// eslint-disable-next-line no-restricted-globals

View file

@ -9,9 +9,6 @@ describe('Adjust post tags', () => {
});
});
// Helper function for pipe command
const click = ($el) => $el.click();
it('should add a tag to a post', () => {
cy.findByRole('heading', { name: 'Tag test article' }).click();
cy.getIframeBody('.article-iframe')
@ -56,7 +53,12 @@ describe('Adjust post tags', () => {
});
});
it('should show previous tag adjustments', () => {
// Helper function for pipe command
const click = ($el) => $el.click();
// Disabling for now as the flake rate from timeouts and missed elements is affecting
// the pace of reviewing and merging other work.
it.skip('should show previous tag adjustments', () => {
cy.intercept('/tag_adjustments').as('tagAdjustmentRequest');
cy.findByRole('heading', { name: 'Tag test article' }).click();
// cy.findByRole('main').as('main');
@ -93,6 +95,8 @@ describe('Adjust post tags', () => {
});
cy.wait('@tagAdjustmentRequest');
// these reloads 'make the test work for now' but inconsistently,
// which may be contributing to flaky timeouts and missed/uninteractive elements as cy runs
cy.reload();
cy.findByRole('heading', { name: 'Tag test article' }).click();
@ -130,9 +134,6 @@ describe('Adjust post tags', () => {
});
});
// Helper function for pipe command
const click = ($el) => $el.click();
it('should add a tag to a post', () => {
cy.findByRole('heading', { name: 'Tag test article' }).click();
cy.getIframeBody('.article-iframe')
@ -178,7 +179,12 @@ describe('Adjust post tags', () => {
});
});
it('should show previous tag adjustments', () => {
// Helper function for pipe command
const click = ($el) => $el.click();
// Disabling these for now as the flake rate from timeouts and missed elements is affecting
// the pace of reviewing and merging other work.
it.skip('should show previous tag adjustments', () => {
cy.intercept('/tag_adjustments').as('tagAdjustmentRequest');
cy.findByRole('heading', { name: 'Tag test article' }).click();
// cy.findByRole('main').as('main');
@ -311,7 +317,9 @@ describe('Adjust post tags', () => {
});
});
it('should show previous tag adjustments', () => {
// Disabling these for now as the flake rate from timeouts and missed elements is affecting
// the pace of reviewing and merging other work.
it.skip('should show previous tag adjustments', () => {
cy.intercept('/tag_adjustments').as('tagAdjustmentRequest');
cy.findByRole('heading', { name: 'Tag test article' });