Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielamormocea committed Dec 28, 2021
1 parent 37116ce commit bb6d6bc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cypress/integration/block-basics.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { setupBeforeEach, tearDownAfterEach } from '../support';
import 'cypress-file-upload';

describe('Blocks Tests', () => {
beforeEach(setupBeforeEach);
Expand Down Expand Up @@ -31,6 +32,16 @@ describe('Blocks Tests', () => {
cy.contains('My Page');
cy.get('.block.image');

cy.visit('/default_header_image/contents');
const imageFile = 'cat.jpg';
cy.get('.top-menu-menu button').first().click();
cy.get('.modal .content .table').attachFile(imageFile, { subjectType: 'drag-n-drop' });
cy.get('.actions .arrow.right.icon').click();

cy.get('.navigation').contains('Cypress').click();
cy.get('.menu.transition.Cypress--section').contains('My Add-on', {force:true}).click({force:true});
cy.scrollTo(0, 100);

// header
cy.get('.header-wrapper');
cy.get('.header-image-wrapper').contains('My Add-on Page');
Expand Down

0 comments on commit bb6d6bc

Please sign in to comment.