Commit d5421861 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon
Browse files

Bug 1657565: New nav behat test - fixing last details

Change-Id: I0fb0b3fee750d1953f1dc00aefa50dcd07f87f76
behatnotneeded: not adding functionality
parent e4b63976
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -42,10 +42,15 @@ $string['maritalstatus'] = 'Marital status';
$string['resumesaved'] = 'Résumé saved';
$string['resumesavefailed'] = 'Failed to update your résumé';
$string['educationhistory'] = 'Education history';
$string['addeducationhistory'] = 'Add education history';
$string['employmenthistory'] = 'Employment history';
$string['addemploymenthistory'] = 'Add employment history';
$string['certification'] = 'Certifications, accreditations and awards';
$string['addcertification'] = 'Add certifications, accreditations and awards';
$string['book'] = 'Books and publications';
$string['addbook'] = 'Add books and publications';
$string['membership'] = 'Professional memberships';
$string['addmembership'] = 'Add professional membership';
$string['startdate'] = 'Start date';
$string['enddate'] = 'End date';
$string['date'] = 'Date';
+19 −0
Original line number Diff line number Diff line
@@ -1228,6 +1228,25 @@ class BehatGeneral extends BehatBase {
        $this->i_accept_confirm_popup();
        $this->wait_until_the_page_is_ready();
    }
/**
 * Scroll to top of page
 *
 * @When I scroll to the top
 *
 */
    public function i_scroll_to_top() {
        $function = <<<JS
          (function(){
              window.scrollTo(0,0);
          })()
JS;
        try {
            $this->getSession()->executeScript($function);
        }
        catch(Exception $e) {
            throw new \Exception("scrollToTop failed");
        }
    }

/**
 * Scroll element into view and align top of element with the top of the visible area.
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
            <span class="show-form">
                {str tag='add'}
                <span class="icon icon-chevron-down right" role="presentation" aria-hidden="true"></span>
                <span class="accessible-hidden sr-only">{str tag='addbook' section='artefact.resume'}</span>
            </span>
            <span class="hide-form">
                {str tag='cancel'}
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@
            <span class="show-form">
                {str tag='add'}
                <span class="icon icon-chevron-down right" role="presentation" aria-hidden="true"></span>
                <span class="accessible-hidden sr-only">{str tag='addcertification' section='artefact.resume'}</span>
            </span>
            <span class="hide-form">
                {str tag='cancel'}
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
            <span class="show-form">
                {str tag='add'}
                <span class="icon icon-chevron-down right" role="presentation" aria-hidden="true"></span>
                <span class="accessible-hidden sr-only">{str tag='addeducationhistory' section='artefact.resume'}</span>
            </span>
            <span class="hide-form">
                {str tag='cancel'}
Loading