How to use the superdesk-core/spec/helpers/utils.nav function in superdesk-core

To help you get started, we’ve selected a few superdesk-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github superdesk / superdesk-planning / client / spec / event / event_contacts_spec.js View on Github external
it('can create a contact from the event form', () => {
        addContacts();
        nav('/planning');

        // Create the Event with base values
        event = {
            name: 'Test',
            dates: {
                start: {date: '12/12/2045', time: '00:00'},
                end: {time: '00:59'},
            },
        };
        subNavBar.createEvent();
        editor.inputValues(event);

        const contactInput = new ContactInput(editor.editor);

        // Search for Foo Bar
        contactInput.searchContacts('foo');
github superdesk / superdesk-planning / client / spec / planning / planning_autosave_spec.js View on Github external
30000,
            'Timeout while waiting for the Workqueue item title to be "Plan*"'
        );

        // Minimize then open the item
        editor.minimizeButton.click();
        item1.openItem();

        editor.openAllToggleBoxes();
        expect(editor.editors.count()).toBe(1);
        expect(editor.planningType.count()).toBe(1);
        editor.expectValues(plan);

        // Navigate to Workspace, then back to Planning
        nav('/workspace');
        nav('/planning');

        editor.openAllToggleBoxes();
        expect(editor.editors.count()).toBe(1);
        expect(editor.planningType.count()).toBe(1);
        editor.expectValues(plan);

        // Refresh the page while the Event is open in the Editor
        browser.navigate().refresh();

        editor.openAllToggleBoxes();
        expect(editor.editors.count()).toBe(1);
        expect(editor.planningType.count()).toBe(1);
        editor.expectValues(plan);

        // Now minimize the item and reload the page (so the editor is not open when the page opens)
        editor.minimizeButton.click();
github superdesk / superdesk-planning / client / spec / planning / planning_autosave_spec.js View on Github external
() => item1.isTitle('Plan*'),
            30000,
            'Timeout while waiting for the Workqueue item title to be "Plan*"'
        );

        // Minimize then open the item
        editor.minimizeButton.click();
        item1.openItem();

        editor.openAllToggleBoxes();
        expect(editor.editors.count()).toBe(1);
        expect(editor.planningType.count()).toBe(1);
        editor.expectValues(plan);

        // Navigate to Workspace, then back to Planning
        nav('/workspace');
        nav('/planning');

        editor.openAllToggleBoxes();
        expect(editor.editors.count()).toBe(1);
        expect(editor.planningType.count()).toBe(1);
        editor.expectValues(plan);

        // Refresh the page while the Event is open in the Editor
        browser.navigate().refresh();

        editor.openAllToggleBoxes();
        expect(editor.editors.count()).toBe(1);
        expect(editor.planningType.count()).toBe(1);
        editor.expectValues(plan);

        // Now minimize the item and reload the page (so the editor is not open when the page opens)
github superdesk / superdesk-planning / client / spec / event / event_autosave_spec.js View on Github external
7500,
            'Timeout while waiting for the Workqueue item title to be "Event*"'
        );

        // Minimize then open the item
        editor.minimizeButton.click();

        item1.openItem();

        editor.openAllToggleBoxes();
        expect(editor.editors.count()).toBe(1);
        expect(editor.eventType.count()).toBe(1);
        editor.expectValues(expectedEvent);

        // Navigate to Workspace, then back to Planning
        nav('/workspace');
        nav('/planning');

        editor.openAllToggleBoxes();
        expect(editor.editors.count()).toBe(1);
        expect(editor.eventType.count()).toBe(1);
        editor.expectValues(expectedEvent);

        // Refresh the page while the Event is open in the Editor
        browser.navigate().refresh();

        editor.openAllToggleBoxes();
        expect(editor.editors.count()).toBe(1);
        expect(editor.eventType.count()).toBe(1);
        editor.expectValues(expectedEvent);

        // Now minimize the item and reload the page (so the editor is not open when the page opens)
github superdesk / superdesk-planning / client / spec / event / event_autosave_spec.js View on Github external
'Timeout while waiting for the Workqueue item title to be "Event*"'
        );

        // Minimize then open the item
        editor.minimizeButton.click();

        item1.openItem();

        editor.openAllToggleBoxes();
        expect(editor.editors.count()).toBe(1);
        expect(editor.eventType.count()).toBe(1);
        editor.expectValues(expectedEvent);

        // Navigate to Workspace, then back to Planning
        nav('/workspace');
        nav('/planning');

        editor.openAllToggleBoxes();
        expect(editor.editors.count()).toBe(1);
        expect(editor.eventType.count()).toBe(1);
        editor.expectValues(expectedEvent);

        // Refresh the page while the Event is open in the Editor
        browser.navigate().refresh();

        editor.openAllToggleBoxes();
        expect(editor.editors.count()).toBe(1);
        expect(editor.eventType.count()).toBe(1);
        editor.expectValues(expectedEvent);

        // Now minimize the item and reload the page (so the editor is not open when the page opens)
        editor.minimizeButton.click();
github superdesk / superdesk-planning / client / spec / event / event_contacts_spec.js View on Github external
const addContacts = () => {
        nav('/contacts');

        const mgr = new ContactManager();
        const inputs = {
            first_name: mgr.editor.getFormInput('first_name'),
            last_name: mgr.editor.getFormInput('last_name'),
            email: mgr.editor.getFormInput('contact_email[0]'),
        };

        mgr.addButton.click();

        inputs.first_name.setValue('Foo');
        inputs.last_name.setValue('Bar');
        mgr.editor.addEmail('foo@bar.com');
        mgr.editor.saveButton.click();

        browser.wait(

superdesk-core

![CI](https://github.com/superdesk/superdesk-client-core/workflows/CI/badge.svg) [![Code Climate](https://codeclimate.com/github/superdesk/superdesk-client-core/badges/gpa.svg)](https://codeclimate.com/github/superdesk/superdesk-client-core)

AGPL-3.0
Latest version published 3 years ago

Package Health Score

55 / 100
Full package analysis

Similar packages