From 3419e0e1fe8e48a08b63ca0ded31087f913eb2b6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 30 Aug 2021 16:24:25 +0200 Subject: Migrate to webdriverio --- client/e2e/src/po/video-update.po.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'client/e2e/src/po/video-update.po.ts') diff --git a/client/e2e/src/po/video-update.po.ts b/client/e2e/src/po/video-update.po.ts index 752741378..3ffb7ba57 100644 --- a/client/e2e/src/po/video-update.po.ts +++ b/client/e2e/src/po/video-update.po.ts @@ -1,11 +1,11 @@ -import { by, element } from 'protractor' - export class VideoUpdatePage { async updateName (videoName: string) { - const nameInput = element(by.css('input#name')) - await nameInput.clear() - await nameInput.sendKeys(videoName) + const nameInput = $('input#name') + + await nameInput.waitForDisplayed() + await nameInput.clearValue() + await nameInput.setValue(videoName) } async validUpdate () { @@ -15,6 +15,6 @@ export class VideoUpdatePage { } private getSubmitButton () { - return element(by.css('.submit-container .action-button')) + return $('.submit-container .action-button') } } -- cgit v1.2.3