Questions about the Serenity/JS acceptance testing library, as well as the JavaScript and TypeScript implementation of the Screenplay Pattern.
Questions tagged [serenity-js]
73 questions
0
votes
1 answer
WebDriverError when running Protractor tests against Safari
First of all, thank you so much in advance for all the help. I have been trying to googling possible solutions, but couldn't find any lead.
I am trying to run some UI tests with the SerenityJS framework, which is a layer on top of Protractor.
I have…

sdevk4
- 11
- 2
0
votes
1 answer
How to access multiple id elements in serenity-js
I have 5 links with the same name and id and linktext. I am using serenity-js. how can I access the 4th link
page.ts has
static link = Target.the('click the 4th link').located(by.linktext('link'));

Stammer
- 1
0
votes
2 answers
Serenity/JS: Why assertion in See.if return empty string sometimes?
I am facing an issue with See.if() - it returns empty string sometimes.
Tech stack used:
Serenity/JS with cucumber and protractor
P-Growl - Primeng growl component
Chai as promised - expect method
Here is the error: Assertion error: expected '' to…

Jayaseelan
- 41
- 4
0
votes
1 answer
protractor.browser.refresh in --headless
running into a road block and for the life of me, cant find anything on google
I am using serenity-js, currently does not have refresh interaction, therefore created one locally.
here is my class :
import {browser, protractor} from…

kapperkp
- 199
- 1
- 3
- 14
0
votes
1 answer
How to deal with corner/edge/error cases with serenity
I like the idea of focusing on business scenarios. However, as a developper I also want error cases to have automated non-regression tests.
For example, in a e-commerce feature, there would be a scenario
James uses his credit card to pay
James…

lwouis
- 21
- 5
0
votes
1 answer
serenity-js / cucumber / chai Promise AssertionError need some assistance
Im losing it, I feel like im doing this right BUT cant figure out why this simple test fails
I got a feature file like so
Scenario: List all accounts in the tenant
Given that Keith has navigated to the tenant account list
When he views the…

kapperkp
- 199
- 1
- 3
- 14
0
votes
1 answer
cucumber function has 1 arguments, should have 2 (if synchronous or returning a promise)
I have a feature file with:
Scenario: List all accounts in the tenant
Given that Keith has navigated to the tenant account list
When he views the accounts in the table that includes name, name2, name3
Then he should also see 1,2,3,4 in…

kapperkp
- 199
- 1
- 3
- 14
0
votes
1 answer
serenity-js - Error: TypeError: _.chain(...).toPairs is not a function
I have a project with the following inside the package.json
I have seen this same error on this post and have taken the same steps to fix by Jan but it was to no avail. I have blew away my node_modules but still get this error. any ideas?
{
…

kapperkp
- 199
- 1
- 3
- 14
0
votes
2 answers
How to dynamize username and password
How can i use the data driven or dynamic username and password when i enter the actor name in the cucumber it should use the respective password maybe from a json file or something depending on the actor.
So when i enter this in the feature…

J Don
- 65
- 1
- 2
- 6
0
votes
1 answer
How to compare two locator value using chai assertion & serenity
I am new to Serenity and Protractor, so need your help for below query.
Using - Protractor, Chai assertion, Screenplay serenity, Cucumber, TypeScript
I have below 2 locators in my locator file:
static test1 =…

Upa A
- 3
- 3
0
votes
1 answer
Base questions with Serenity/JS?
I have just started looking into switching to Serenity/JS and wanted to know if it's best practice to have base Questions/Tasks?
There are many times I will want to check if a field is blank or has an error, so I created a 'base Question' to achieve…

Tom Hudson
- 75
- 1
- 9
0
votes
1 answer
Not able to read the step definitions files of Protractor cucumber e2e tests
i am new bee into Protractor.
i am using Protractor with typescript and Serenity js library for reporting purpose.
Project structure : Project Structure
Issue log :
PS R:\protractor\protractorcucumber_typescript> tsc
PS…

Swamy S
- 3
- 1
- 5
0
votes
1 answer
Unable to find any elements in the url
I am trying to automate the [https://www.predix-ui.com/#/home][1] using the Serenity-Js frame work.
My Given contains the step to open the URL
and When part contains the action items to click on the px-accordin inside Components in Left Menu.
Below…

Pringa
- 91
- 2
- 6
0
votes
1 answer
Report generated is empty, does not show the scenarios
I have been running npm test with the latest serenity-cli.jar and suddenly now the report is generated but it does not have any scenarios shown here.
Is this because of the latest jar file? does anyone else face this issue? also is there a way i can…
0
votes
1 answer
how to use Serenity/Js for protractor-Jasmine framework tests. Does serentiy support protractor jasmine framework
I want to integrate serenity reports for my tests built using protractor-jsamine framework. All the exploration done only shows results for serenity integration with protractor-cucmber framework. Below is my config file sample. What should i add to…