Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
Add ProductPrices page-object
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Jul 30, 2019
1 parent 20c9452 commit c777829
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions cypress/page_objects/product_prices.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* #%L
* metasfresh-e2e
* %%
* Copyright (C) 2019 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-2.0.html>.
* #L%
*/

import Metasfresh from './page';

class _ProductPrices extends Metasfresh {
constructor() {
super();

this.windowId = '540325';
this.tableRows = '.table-flex-wrapper-row';
this.rowSelector = 'tbody tr';
this.listHeader = '.document-list-header';
this.selectedRows = '.row-selected';
}

visit() {
cy.visitWindow(this.windowId);
}

getRows() {
return cy.get(this.tableRows).find(this.rowSelector);
}
}

export const ProductPrices = new _ProductPrices();

0 comments on commit c777829

Please sign in to comment.