shiloh_automatisch/packages/e2e-tests/fixtures/apps/mattermost/add-mattermost-connection-modal.js
Linden Crandall 5075f5c5d8
Some checks are pending
Automatisch Backend Tests / test (push) Waiting to run
Automatisch CI / linter (push) Waiting to run
Automatisch CI / start-backend-server (push) Waiting to run
Automatisch CI / start-backend-worker (push) Waiting to run
Automatisch CI / build-web (push) Waiting to run
Automatisch UI Tests / test (push) Waiting to run
commit upstream files
2025-02-06 04:14:18 +09:00

25 lines
751 B
JavaScript

const { BasePage } = require('../../base-page');
export class AddMattermostConnectionModal extends BasePage {
/**
* @param {import('@playwright/test').Page} page
*/
constructor (page) {
super(page);
this.clientIdInput = page.getByTestId('clientId-text');
this.clientIdSecretInput = page.getByTestId('clientSecret-text');
this.instanceUrlInput = page.getByTestId("instanceUrl-text");
this.submitButton = page.getByTestId('create-connection-button');
}
async fillConnectionForm() {
await this.instanceUrlInput.fill('https://mattermost.com');
await this.clientIdInput.fill('aaa');
await this.clientIdSecretInput.fill('bbb');
}
async submitConnectionForm() {
await this.submitButton.click();
}
}