Fixed post moderation flaky test (#16480)
This commit is contained in:
parent
ed217bb100
commit
5409f5f024
1 changed files with 10 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue