Skip to content

Commit

Permalink
Update wording in classic tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Dec 15, 2023
1 parent b7dfd61 commit ca6796b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cypress/e2e/classic-editor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Test Autopost for X with Classic Editor.', () => {

// Post-publish.
cy.get('#autoshare_for_twitter_metabox').should('be.visible');
cy.get('#autoshare_for_twitter_metabox').contains('This post was not posted to X/Twitter');
cy.get('#autoshare_for_twitter_metabox').contains('This post has not been posted to X/Twitter');
});


Expand Down Expand Up @@ -74,7 +74,7 @@ describe('Test Autopost for X with Classic Editor.', () => {

// Post-publish.
cy.get('#autoshare_for_twitter_metabox').should('be.visible');
cy.get('#autoshare_for_twitter_metabox').contains('This post was not posted to X/Twitter');
cy.get('#autoshare_for_twitter_metabox').contains('This post has not been posted to X/Twitter');
});


Expand Down Expand Up @@ -109,7 +109,7 @@ describe('Test Autopost for X with Classic Editor.', () => {

// Post-publish.
cy.get('#autoshare_for_twitter_metabox').should('be.visible');
cy.get('#autoshare_for_twitter_metabox').contains('This post was not posted to X/Twitter');
cy.get('#autoshare_for_twitter_metabox').contains('This post has not been posted to X/Twitter');
});

it('Tests that new post is tweeted when tweet accounts are checked', () => {
Expand Down Expand Up @@ -146,7 +146,7 @@ describe('Test Autopost for X with Classic Editor.', () => {

// Post-publish.
cy.get('#autoshare_for_twitter_metabox').should('be.visible');
cy.get('#autoshare_for_twitter_metabox').contains('This post was not posted to X/Twitter');
cy.get('#autoshare_for_twitter_metabox').contains('This post has not been posted to X/Twitter');

cy.get('#autoshare_for_twitter_metabox button.tweet-now-button').contains('Post to X/Twitter now').click();
cy.get('#autoshare-for-twitter-override-body textarea').should('be.visible')
Expand Down

0 comments on commit ca6796b

Please sign in to comment.