Skip to content
This repository was archived by the owner on Mar 17, 2020. It is now read-only.
This repository was archived by the owner on Mar 17, 2020. It is now read-only.

Content and User steps gets mixed on execution #29

@javigomez

Description

@javigomez

See this video: http://www.youtube.com/watch?v=a9af6jOU_bg

Please provide a solution.

One possible option could be to switch this line: https://github.com/joomla-projects/gsoc16_browser-automated-tests/blob/staging/tests/_support/Step/Acceptance/Administrator/Content.php#L45

From:

    /**
     * @Then I should see the :arg1 message
     */
    public function iShouldSeeTheMessage($message)
    {
        $I = $this;
        $I->waitForPageTitle('Articles');
        $I->see($message, AdminPage::$systemMessageContainer);
    }

To:

    /**
     * @Then I should see the :arg1 message
     */
    public function iShouldSeeTheMessage($message)
    {
        $I = $this;
        $I->waitForText($message, AdminPage::$systemMessageContainer);
        $I->see($message, AdminPage::$systemMessageContainer);
    }

Also since this step is generic, it would not necessarily be defined in Content or User steps, maybe there can be a generic Administrator step?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions