Skip to content

Commit

Permalink
test locally
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jan 6, 2024
1 parent 3ae0f27 commit 7131362
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/commandtests/actionTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ serial('Run through the action API', async t => {
});
t.deepEqual(
result[0].browserScripts[0].scripts.uri,
'https://selenium.dev/selenium/web/mouse_interaction.html'
'http://127.0.0.1:3000/simple/'
);
});
3 changes: 1 addition & 2 deletions test/data/commandscripts/actions.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = async function (context, commands) {

await commands.measure.start('https://selenium.dev/selenium/web/mouse_interaction.html');
await commands.measure.start('http://127.0.0.1:3000/simple/');
const clickable = await commands.element.getById('clickable');
return commands.action.getActions()
.move({ origin: clickable })
Expand Down
2 changes: 2 additions & 0 deletions test/data/html/simple/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
<h1>Welcome to the super simple and fast test page</h1>
<p>It will be hard to create a faster page than this page.</p>
<p><a href="/dimple/">Dimple</a></p>
<input type="text" id="clickable" placeholder="Clickable"/>

</body>
</html>

0 comments on commit 7131362

Please sign in to comment.