Skip to content

Commit

Permalink
Test cases are updated
Browse files Browse the repository at this point in the history
 as per the parser's capabilities
  • Loading branch information
RahulARanger committed Jun 4, 2023
1 parent d7d1bb7 commit c8cbc32
Show file tree
Hide file tree
Showing 4 changed files with 226 additions and 225 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const pageClass = new Locators();

async function validating_the_search_bar_with_invalid_url() {
await browser.url("https://yticks.vercel.app/video");
await pageClass.youtube_search_bar.waitForEnabled({ reverse: false, timeout: 1000 });
await pageClass.youtube_search_bar.setValue("https://www.youtube.com/watch?v=sAuEeM_6zpk");
await expect(pageClass.youtube_search_bar).toHaveValue("https://www.youtube.com/watch?v=sAuEeM_6zpk");
await expect(pageClass.search_bar_location).toHaveText("You can now search");
Expand Down
2 changes: 1 addition & 1 deletion __tests__/expectation/scrollScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function simple_scroll_test() {
await pageClass.searchBar.click();
await pageClass.searchBar.setValue("Rem Chan");
await browser.keys([Key.Enter]);
await browser.execute("window.scrollTo(0,900)");
await browser.execute("window.scrollTo(0,1801.3333740234375)");
await pageClass._2rdPage.waitForDisplayed({ reverse: false, timeout: 3000 });

Check failure on line 41 in __tests__/expectation/scrollScript.js

View workflow job for this annotation

GitHub Actions / test

Running the ensured tests in order to check if the results generated are correct › File Generated: $file

Command failed: node "/home/runner/work/WTicks/WTicks/__tests__/expectation/scrollScript.js" file:///home/runner/work/WTicks/WTicks/node_modules/webdriverio/build/commands/browser/waitUntil.js:39 throw new Error(timeoutMsg); ^ Error: element ("=2") still not displayed after 3000ms at file:/home/runner/work/WTicks/WTicks/node_modules/webdriverio/build/commands/browser/waitUntil.js:39:23 at async Element.wrapCommandFn (file:/home/runner/work/WTicks/WTicks/node_modules/@wdio/utils/build/shim.js:72:29) at async Element.elementErrorHandlerCallbackFn (file:/home/runner/work/WTicks/WTicks/node_modules/webdriverio/build/middlewares.js:18:32) at async Element.wrapCommandFn (file:/home/runner/work/WTicks/WTicks/node_modules/@wdio/utils/build/shim.js:72:29) at async Element.wrapCommandFn (file:/home/runner/work/WTicks/WTicks/node_modules/@wdio/utils/build/shim.js:72:29) at async Element.elementErrorHandlerCallbackFn (file:/home/runner/work/WTicks/WTicks/node_modules/webdriverio/build/middlewares.js:18:32) at async Element.wrapCommandFn (file:/home/runner/work/WTicks/WTicks/node_modules/@wdio/utils/build/shim.js:72:29) at async simple_scroll_test (file:/home/runner/work/WTicks/WTicks/__tests__/expectation/scrollScript.js:41:2) at async file:/home/runner/work/WTicks/WTicks/__tests__/expectation/scrollScript.js:48:2 Node.js v18.16.0 at __tests__/testPraticalResults.test.ts:11:24
await pageClass._2rdPage.click();
await browser.execute("window.scrollTo(0,1801.3333740234375)");
Expand Down
Loading

1 comment on commit c8cbc32

@vercel
Copy link

@vercel vercel bot commented on c8cbc32 Jun 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wticks – ./

wticks.vercel.app
wticks-rahularanger.vercel.app
wticks-git-main-rahularanger.vercel.app

Please sign in to comment.