Fixed post moderation flaky test (#16480)

This commit is contained in:
Nick Taylor 2022-02-08 14:06:55 -05:00 committed by GitHub
parent ed217bb100
commit 5409f5f024
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,9 +48,16 @@ describe('Moderation Tools for Posts', () => {
cy.findByRole('button', { name: 'Moderation' }).click();
cy.getIframeBody('[title="Moderation panel actions"]').within(() => {
cy.findByRole('button', { name: 'Open adjust tags section' }).click({
force: true,
});
cy.findByRole('button', { name: 'Open adjust tags section' })
.as('adjustTagsButton')
.click({
force: true,
});
cy.get('@adjustTagsButton').should(
'have.attr',
'aria-expanded',
'true',
);
cy.findByRole('button', { name: '#tag1 Remove tag' }).click();
cy.findByRole('button', { name: 'Submit' }).click();