DEV Community

Cover image for Webship-js: Click and See 'operation' in "text" row
webship.co
webship.co

Posted on

Webship-js: Click and See 'operation' in "text" row

In the world of website and system management, tables are always at the core: user names, records, operations, all stored there. And sometimes, simply checking that options like Edit or Delete appear in the right row makes a huge difference. It ensures the system works as expected and gives you the flexibility to modify or remove data with ease.

The problem? Testing these details manually can be boring and time-consuming. That’s where Webship-js comes in: a tool built to make the process simpler and faster. With just two steps, Click and See, you can confirm the options appear exactly where they should, with no headaches and no unnecessary complexity.

The basic steps used are:

When I click "operation" in "text" row

This step finds a table, locates a row containing the identifier text, and then clicks on the target text within that row.

Clicks on specific text within a table row that contains a specified identifier text.

*Example: *

When I click "Edit" in the "John Smith" row
When I click "Delete" in the "Product A" row  
When we click "View Details" in the "Order #12345" row
And I click "Download" in the "Report 2024" row
Enter fullscreen mode Exit fullscreen mode

*Then I should see "operation" in "text" row *

This step finds a table, locates a row containing the identifier text, and then verifies that the target text is visible within that row.

Asserts that specific text is visible within a table row that contains a specified identifier text.

Example:

Then I should see "Active" in the "John Smith" row
Then I should see "In Stock" in the "Product A" row  
Then we should see "Processing" in the "Order #12345" row
And I should see "Admin" in the "john.smith@example.com" row
Enter fullscreen mode Exit fullscreen mode

See the full article: https://webship.co/blog/webship-js-click-and-see-operation-text-row

Manual testing is like washing dishes by hand: tedious, slow, and never-ending.
Automated testing, on the other hand, is like using a dishwasher: fast, automatic, and a real time-saver.
So the next time you think about browsing through rows one by one... just remember: machines love repetitive work, humans don’t!

Top comments (0)