| 123456789101112131415161718192021222324252627282930313233343536373839 |
- context('Open Page Delete Modal', () => {
- const ssPrefix = 'bootstrap4-open-delete-modal-';
- let connectSid: string | undefined;
- before(() => {
- // login
- cy.fixture("user-admin.json").then(user => {
- cy.login(user.username, user.password);
- });
- cy.getCookie('connect.sid').then(cookie => {
- connectSid = cookie?.value;
- });
- // collapse sidebar
- cy.collapseSidebar(true);
- });
- beforeEach(() => {
- if (connectSid != null) {
- cy.setCookie('connect.sid', connectSid);
- cy.visit('/');
- }
- });
- it('PageDeleteModal is shown successfully', () => {
- cy.visit('/Sandbox/Bootstrap4', { });
- cy.get('#grw-subnav-container').within(() => {
- cy.getByTestid('open-page-item-control-btn').click();
- cy.getByTestid('open-page-delete-modal-btn').click();
- });
- // eslint-disable-next-line cypress/no-unnecessary-waiting
- cy.wait(1500);
- cy.screenshot(`${ssPrefix}-bootstrap4`,{ capture: 'viewport' });
- });
- });
|