Replace UI module with Next.js
This commit is contained in:
parent
8aeff18162
commit
616205fe73
91 changed files with 3570 additions and 722 deletions
15
source/selenium/src/pages/HomePage.ts
Normal file
15
source/selenium/src/pages/HomePage.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { binding } from 'cucumber-tsflow';
|
||||
import { By } from 'selenium-webdriver';
|
||||
|
||||
import { BasePage } from '../common/BasePage';
|
||||
|
||||
@binding()
|
||||
export class HomePage extends BasePage {
|
||||
protected url = '/';
|
||||
|
||||
// initial div
|
||||
public root = By.xpath('//body');
|
||||
|
||||
// page buttons
|
||||
public buttons = {};
|
||||
}
|
6
source/selenium/src/pages/components/Navigation.ts
Normal file
6
source/selenium/src/pages/components/Navigation.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { By } from 'selenium-webdriver';
|
||||
|
||||
export class Navigation {
|
||||
public root = By.xpath('//div[@class="page-top"]');
|
||||
public logoutLink = By.xpath(`${this.root.value}//div[contains(text(), "Odhlásit se")]`);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue