Skip to content

Commit ef5b0ea

Browse files
authored
Merge branch 'develop' into fix/properly-pass-abort-signal
2 parents c53acd1 + 68d2d81 commit ef5b0ea

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

cypress/e2e/Link.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ context('Link', () => {
1414
cy.get('.tenup-block-components-link__label').first().click();
1515
cy.wait(50);
1616
cy.get('.tenup-block-components-link__label').first().scrollIntoView({offset: {top: 100}}).type('First Link Label', { delay: 50, waitForAnimations: true });
17-
cy.get('.block-editor-url-input__input').first().type('https://10up.com/{enter}', { delay: 50, waitForAnimations: true });
17+
cy.get('.components-input-control__input').first().type('https://10up.com/{enter}', { delay: 50, waitForAnimations: true });
1818

1919
// create the second link
2020
cy.get('.tenup-block-components-link__label').eq(1).click();
2121
cy.wait(50);
2222
cy.get('.tenup-block-components-link__label').eq(1).type('Second Link Label', { delay: 50, waitForAnimations: true });
23-
cy.get('.block-editor-url-input__input').first().type('https://10up.com/our-work/{enter}', { delay: 50, waitForAnimations: true });
23+
cy.get('.components-input-control__input').first().type('https://10up.com/our-work/{enter}', { delay: 50, waitForAnimations: true });
2424

2525
cy.savePost();
2626

cypress/e2e/PostFeaturedImage.spec.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,8 @@ context('PostFeaturedImage', () => {
4444

4545
cy.get('[data-tab-id="edit-post/document"]').click();
4646

47-
cy.get('.components-button.components-panel__body-toggle').contains('Featured image').then($button => {
48-
if ($button.attr('aria-expanded') === 'false') {
49-
cy.get('.components-button.components-panel__body-toggle').contains('Featured image').click();
50-
}
51-
})
5247

53-
cy.get('.editor-post-featured-image img').should('exist').then(($a) => {
48+
cy.get('.editor-post-featured-image__preview-image').should('exist').then(($a) => {
5449
const src1 = $a.attr('src');
5550
const cleanedSrc1 = src1.replace(/-\d+x\d+(?=\.\w+$)/, '');
5651

@@ -65,7 +60,7 @@ context('PostFeaturedImage', () => {
6560
});
6661
});
6762

68-
cy.get('.components-button.editor-post-featured-image__action').contains('Remove').click();
63+
cy.get('.editor-post-featured-image__action').contains('Remove').click({force: true});
6964
cy.get('.wp-block-example-custom-post-featured-image__image').should('not.exist');
7065
})
7166
})

0 commit comments

Comments
 (0)