mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-08 03:02:03 +01:00
fast test
This commit is contained in:
parent
b50b7ca72e
commit
07155868c0
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
const srcFolder = "../../../src/node_modules/";
|
const srcFolder = "../../../src/node_modules/";
|
||||||
const { Builder }= require(srcFolder + "selenium-webdriver");
|
const { Builder, By }= require(srcFolder + "selenium-webdriver");
|
||||||
const baseUrl = "http://localhost:9001/tests/frontend";
|
const baseUrl = "http://localhost:9001/tests/frontend";
|
||||||
let driver;
|
let driver;
|
||||||
let getStatusInterval;
|
let getStatusInterval;
|
||||||
|
@ -36,6 +36,7 @@ async function runTest(testSettings){
|
||||||
console.log(`https://saucelabs.com/jobs/${session}`);
|
console.log(`https://saucelabs.com/jobs/${session}`);
|
||||||
|
|
||||||
driver.get(baseUrl).then(function(){
|
driver.get(baseUrl).then(function(){
|
||||||
|
await driver.find_elements_by_class_name('ace-line').first().sendkeys("test");
|
||||||
getStatusInterval = setInterval(function(){
|
getStatusInterval = setInterval(function(){
|
||||||
driver.executeScript("return $('#console').text()")
|
driver.executeScript("return $('#console').text()")
|
||||||
.then(function(knownConsoleText){
|
.then(function(knownConsoleText){
|
||||||
|
|
Loading…
Reference in a new issue