Skip to content

Commit

Permalink
fix: E2E test image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed May 27, 2024
1 parent 6834e53 commit 1daf2ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/default/import_feed_free.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('Test Free - Import Feed', function() {

cy.get('[name="feedzy_meta_data[import_post_title]"]').clear({force: true}).invoke('val', PREFIX + feed.title).blur({force: true});
cy.get('[name="feedzy_meta_data[import_post_content]"]').clear({force: true}).invoke('val', PREFIX + feed.fullcontent.content + feed.content).blur({force: true});
cy.get('[name="feedzy_meta_data[import_post_featured_img]"]').clear({force: true}).invoke('val', feed.image.url).blur({force: true});
cy.get('[name="feedzy_meta_data[import_post_featured_img]"]').clear({force: true}).invoke('val', feed.image.tag).blur({force: true});

// check disallowd magic tags
const tags = feed.tags.disallowed;
Expand Down Expand Up @@ -122,7 +122,7 @@ describe('Test Free - Import Feed', function() {
cy.get('[name="feedzy_meta_data[import_post_content]"]').should('have.value', PREFIX + feed.fullcontent.content + feed.content + '\n');

// image from URL
cy.get('[name="feedzy_meta_data[import_post_featured_img]"]').should('have.value', feed.image.url);
cy.get('[name="feedzy_meta_data[import_post_featured_img]"]').should('have.value', feed.image.tag);

// publish
cy.get('button[type="submit"][name="publish"]').scrollIntoView().click({force:true});
Expand Down

0 comments on commit 1daf2ed

Please sign in to comment.