Feature/4 pilots add (#20)
* changing api url to env variable * updating env variables * updating env variables * updating env variables * updating env variables * updating env variables * updating env variables * feature/4-pilots---add * feature/4-pilots---add * feature/4-pilots---add * feature/4-pilots---add * ad pilot * add pilot * add pilot * add pilot * add pilot * add pilot * adding pilots * add pilot * add pilot * add pilots * add pilot * add pilot * adding pilots * adding pilots * adding pilots * adding pilots * adding pilots * adding pilots * adding pilots * adding pilots * adding pilots * adding pilots * adding pilots * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * Testing menu button * Testing menu button * Testing menu button * Testing menu button * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot * adding pilot --------- Co-authored-by: Noah Spannbauer <nspannbauer@sensonix.com>
This commit was merged in pull request #20.
This commit is contained in:
@@ -3,24 +3,28 @@ import { config } from '../support/config';
|
||||
|
||||
export class PilotsPage {
|
||||
page: Page;
|
||||
newButton: Locator;
|
||||
pilotDrawer: Locator;
|
||||
pilotDrawerCancelButton: Locator;
|
||||
pilotAddButton: Locator;
|
||||
pilotSaveButton: Locator;
|
||||
pilotCancelButton: Locator;
|
||||
|
||||
constructor(page: Page) {
|
||||
this.page = page;
|
||||
this.newButton = page.getByTestId('new-pilot-button');
|
||||
this.pilotDrawer = page.getByTestId('pilot-drawer');
|
||||
this.pilotDrawerCancelButton = page.getByTestId(
|
||||
'pilot-drawer-cancel-button'
|
||||
);
|
||||
this.pilotAddButton = page.getByTestId('add-pilot-button');
|
||||
this.pilotSaveButton = page.getByTestId('save-pilot-button');
|
||||
this.pilotCancelButton = page.getByTestId('pilot-form-cancel-button');
|
||||
}
|
||||
|
||||
public async clickNewButton() {
|
||||
await this.newButton.click();
|
||||
public async clickAddPilotButton() {
|
||||
await this.pilotAddButton.click();
|
||||
}
|
||||
|
||||
public async clickSaveButton() {
|
||||
await this.pilotSaveButton.click();
|
||||
}
|
||||
|
||||
public async clickPilotDrawerCancelButton() {
|
||||
await this.pilotDrawerCancelButton.click();
|
||||
await this.pilotCancelButton.click();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user