Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 11:29
    renovate[bot] edited #812
  • 09:31
    renovate[bot] opened #812
  • 09:31

    renovate[bot] on chalk-4.x

    fix(deps): update dependency ch… (compare)

  • 01:42

    jan-molak on gh-pages

    Updates (compare)

  • 01:38

    github-actions[bot] on master

    chore(release): v2.26.1 [ci ski… (compare)

  • 01:38

    github-actions[bot] on v2.26.1

    (compare)

  • 01:25
    renovate[bot] edited #798
  • 01:25
    renovate[bot] edited #798
  • 01:25
    renovate[bot] synchronize #798
  • 01:25

    renovate[bot] on cucumber-cucumber-7.x

    chore(deps): update dependency … (compare)

  • 01:18

    jan-molak on master

    fix(cucumber): upgraded Cucumbe… (compare)

  • Apr 20 22:59
    jan-molak edited #805
  • Apr 20 22:57

    jan-molak on webdriverio

    test(webdriverio): extracted St… test(webdriverio): integration … test(mocha): adjusted timeouts … and 1 more (compare)

  • Apr 20 17:29
    renovate[bot] edited #798
  • Apr 20 17:29
    renovate[bot] edited #798
  • Apr 20 17:29
    renovate[bot] synchronize #798
  • Apr 20 17:29

    renovate[bot] on cucumber-cucumber-7.x

    chore(deps): update dependency … (compare)

  • Apr 20 13:22
    renovate[bot] edited #811
  • Apr 20 11:51
    renovate[bot] opened #811
  • Apr 20 11:51

    renovate[bot] on babel-monorepo

    fix(deps): update dependency @b… (compare)

Thimmaraju G
@thimmaraju418_twitter
Hi All
Hope you are all doing great ..
how to wait until value of target element refresh in serenity js
Can u plz help me with the above scenario
Jan Molak
@jan-molak
Hi there! Exactly the way you said it :-)
Wait.until(Text.of(...), equals('some expected value')),
Thimmaraju G
@thimmaraju418_twitter
Thank you Jan.
Thimmaraju G
@thimmaraju418_twitter
How press ESC key with out target element (case : i have dailog to close).
Andreas Worm
@globalworming
@thimmaraju418_twitter just use the 'body' as target element
Thimmaraju G
@thimmaraju418_twitter
I used it . However  after this step  i'm verifying some target element(on dailog) is not visible . At that time is is throwing error
9 replies
Jan Molak
@jan-molak
🎉 Hey everyone, 2.17.3 is now available on NPM - https://serenity-js.org/changelog.html
Jan Molak
@jan-molak
🎉 2.17.4 introduces proxy support to serenity-bdd downloader, as well as improved error messages. Check out the docs at https://serenity-js.org/modules/serenity-bdd/
Thimmaraju G
@thimmaraju418_twitter
Do we have some thing like this in serenity Js
Ensure.that("red").hasSizeGreaterThan(2)
Jan Molak
@jan-molak
That depends what you mean by "size"? The length of a string? The size of a web element?
Thimmaraju G
@thimmaraju418_twitter
length of string
Jan Molak
@jan-molak
got it, you're looking for property
Ensure.that("red", property('length', isGreaterThan(2)))
property changes the context of the assertion to any property of the object being investigated
you could use that to assert on properties of an object too:
Ensure.that({ name: 'Jan' }, property('name', startsWith('J')))
Thimmaraju G
@thimmaraju418_twitter
Thank you Jan
Can any one tell me how implement MouseMove and Mousedown or any other actions in serenity js Scripts
Like browser.actions()
.mouseMove(card, {x: 100, y: 100})
.mouseDown()
.mouseMove({x: 0, y: -400})
.perform();
Jan Molak
@jan-molak
Sure, for custom things like that you'll need to write a custom interaction
It's very easy
const MyInteraction = () =>
    Interaction.where(`#actor does something`, actor =>
        BrowseTheWeb.as(actor).actions().mouseMove(card, {x: 100, y: 100}).mouseDown().mouseMove({x: 0, y: -400}).perform()
    )
Thimmaraju G
@thimmaraju418_twitter
Hi Jan ..how to upload file . Im getting invalid argument error
eyesopen
@eyesopen

Hi, can you help me to make a post request having basic auth and a post body using rest package? I did

PostRequest.to(url).with(body)

but i had to add the username and password to url and that outputs it to report, which is not desired.

5 replies
Nywlem
@Nywlem
Hello All, has anyone tried executing the tests on the IE11
8 replies
Andreas Worm
@globalworming

Hey all

I am currently rebuilding the serenity html report to a more "modern" single page application. I would appreciate your feedback on the demo https://lemon-desert-049177e03.azurestaticapps.net/

3 replies
Jan Molak
@jan-molak

Hey folks, 2.18.0 is out!

Actors can be used in beforeAll/afterAll-style hooks of your favourite test framework.
This means that you can, for example, have an actor that spins up a server that keeps running throughout the entire test suite execution.

You can also share notes between actors instantiated in beforeAll, before and within a test method using the ability to TakeNotes.usingASharedNotepad

Also, any Discardable abilities that an actor has been given will be discarded:

  • after test scenario, if the actor was instantiated in beforeEach-style hook or within a scenario
  • after test run is finished, if the actor was instantiated in beforeAll-style hook

This release also removes several deprecated APIs:

Jan Molak
@jan-molak
And here's a little example of how the new features can be used in practice:
describe('Serenity/JS 2.18.0', () => {
    before(() =>
        actorCalled('Alice')
            .whoCan(
                ManageALocalServer.runningAHttpListener(app),
                TakeNotes.usingASharedNotepad(),
            )
            .attemptsTo(
                StartLocalServer.onRandomPort(),
                TakeNote.of(LocalServer.url())
            ));

    beforeEach(() =>
        actorCalled('Bob')
            .whoCan(
                BrowseTheWeb.using(protractor.browser),
                TakeNotes.usingASharedNotepad(),
            ));

    it(`lets actors perform in “before all” hooks and share notes across test scenarios`, () =>
        actorCalled('Bob').attemptsTo(
            Navigate.to(Note.of(LocalServer.url()))
            // ...
        ));
});
As always, feedback welcome :-)
Thimmaraju G
@thimmaraju418_twitter
Hi Jan
elem.getCssValue("background-color")
How can achieve above statement in serenity js
2 replies
rakeshnambiar
@rakeshnambiar
Hello, before migrating to V2 I just tried the template project https://github.com/serenity-js/serenity-js-cucumber-protractor-template but unfortunately, the json report is not generated. I am on Win10 OS and using the Node v13.14.0 & JAVA 11.0.9
I can see the target set correctly on the protractor config ArtifactArchiver.storingArtifactsAt('./target/site/serenity')
Jan Molak
@jan-molak
Have you made any changes to the project?
rakeshnambiar
@rakeshnambiar
It's a Cucumber runner
no
Jan Molak
@jan-molak
Ok, I'd also suggest using a long term support version of node, latest one is 14
Version 13 (as well as any other odd version) is experimental, so I wouldn't recommend it for production
rakeshnambiar
@rakeshnambiar
I used the latest version before then downgraded to 13 to make-sure the node latest version is not creating the issue
:)
Jan Molak
@jan-molak
☺️
rakeshnambiar
@rakeshnambiar
switch back to node v14.2.0 and npm 6.14.4 but same result
WARNING: An illegal reflective access operation has occurred - Is this common ?
Jan Molak
@jan-molak
I can reproduce the issue on Win 10, let me have a look at what's going on
rakeshnambiar
@rakeshnambiar
thanks a lot @jan-molak
Jan Molak
@jan-molak
Could you clone the latest version and re-test, please?
(looks like dependabot has updated package.json but not package-lock.json in the template project, so serenity-bdd reporter was pulling in an older version of core)