Skip to main content

10 posts tagged with "rest"

View All Tags

Summary

This release addresses #2222, #2244 and introduces improvements to the following Serenity/JS modules:

View detailed code diff on GitHub

Bug Fixes

  • deps: update playwright dependencies to v1.42.0 (0058448)
  • deps: update playwright dependencies to v1.42.1 (dc20ed5)
  • serenity-bdd: fixed feature tag links for nested spec structures (7f596e5), closes #2222

Features

  • core: simplified reading and writing files in CrewMembers using the FileSystem (7f0d0cc), closes #2244
  • rest: createAxios function instantiates axios with HTTP proxy support (c453678)

Summary

This release introduces improvements to the following Serenity/JS modules:

View detailed code diff on GitHub

Features

  • assertions: isBefore and isAfter accept Timestamp as well as Date objects (55e13d0)
  • core: inspecting a Timestamp returns a human-friendly description of its value (da26b54)
  • playwright-test: enabled the ability to CallAnApi for all default actors (436cde5), closes #1876
  • playwright-test: explicit proxy config will override env variables for REST interaction (1c277d6), closes #1949
  • rest: automatic proxy server configuration for CallAnApi (27a1630), closes #1949
  • serenity-bdd: serenity-bdd downloader will now automatically detect proxy server configuration (c221210), closes #1949
  • web: ability to CallAnApi is now available by default (dfaf8e4), closes #1876

Summary

This release addresses #1876 and introduces improvements to the following Serenity/JS modules:

Related external tickets: microsoft/playwright#24146

View detailed code diff on GitHub

Bug Fixes

  • deps: update playwright dependencies to ^1.38.0 (0b8074b)
  • playwright-test: simplified and documented implementing custom Playwright Test fixtures (61fc2bc), closes microsoft/playwright#24146
  • rest: correctly resolve relative paths in REST requests (1bdf3eb)
  • rest: improved error messages and error handling for failed requests (e6eb0c3), closes #1876
  • webdriverio: updated WebdriverIO to 8.16.7 and switched to its new global types (ecd96b2)

Summary

This release introduces improvements to the following Serenity/JS modules:

View detailed code diff on GitHub

Bug Fixes

  • core: moved time-related code to a common package (f29fedc), closes #1522
  • core: support for NPM 9 (0493474)
  • deps: update dependency tiny-types to ^1.19.1 (ce335eb)
  • jasmine: improved filesystem location detection for Jasmine scenarios (ec180d6)
  • rest: support for Axios 1.3.4 (e926bbd)

Features

  • assertions: fault-tolerant interaction to Ensure.eventually (d6297f7), closes #1522
  • core: introduced a new ability ScheduleWork to enable #1083 and #1522 (b275d18)
  • core: max timeout of Wait.until can now be configured globally (8dd6895), closes #1083

Summary

This release addresses #1437 and introduces improvements to the following Serenity/JS modules:

View detailed code diff on GitHub

Bug Fixes

  • core: improved Duration to ensure it can't be instantiated with an invalid parameter (9d89014)
  • core: improved error message shown when an actor doesn't have a required ability (753b036)
  • core: simplified AsyncOperation events (ac1a88f)
  • core: simplified internal AsyncOperation events to separate service name from task description (0162d28)
  • deps: update website dependencies (#1437) (51ef285)
  • playwright-test: better names for screenshots attached to Playwright Test reports (8c04334)
  • rest: support for Axios 1.2.2 (b6fa54b)

Features

  • playwright-test: annotate Playwright Test reports with Serenity/JS tags (5e4a513)
  • playwright-test: custom actors can now be defined in playwright config file (117da34)
  • playwright-test: interoperability between Serenity/JS default actor and page (91803de)
  • playwright-test: support for Photographer and automated screenshots upon activity failure (c5527ca)

Summary

This release addresses #1416, #1421 and introduces improvements to the following Serenity/JS modules:

View detailed code diff on GitHub

Bug Fixes

  • deps: update core dependencies to v5 (7c44d5a)
  • deps: update serenity bdd dependencies (51af1fc)
  • deps: update website dependencies (9be2176)
  • web: support for setting cookies using async or partially async data (ec8a65d), closes #1421

Features

  • cucumber: support reporting named hooks (426f68d), closes #1416
  • playwright: support for Playwright 1.29.0 (3dd0635)
  • rest: support for Axios 1.2.1 (b1ab268)

Summary

This release addresses #594, #1240, #1259 and introduces improvements to the following Serenity/JS modules:

View detailed code diff on GitHub

Bug Fixes

  • console-reporter: corrected default export so that it's detected as no-arg (e39fc12), closes #1240
  • console-reporter: corrected error reporting when scenarios are executed in parallel (170a31e), closes #1240
  • core: activity is now able to detect invocation location on Node 14 (41f4776), closes #1240
  • core: enabled support for synthetic default imports and ES module interop (3e63d07), closes #1240
  • core: improved implementation of EventQueue to better support parallel scenarios (025e4fd), closes #1240
  • core: simplified SceneFinishes event (9ad947a), closes #1240
  • playwright-test: bulk-attach all Serenity/JS events to Playwright report (a5f3d7c), closes #1240
  • playwright-test: support for Playwright Test Babel loader (f9a5412), closes #1240
  • playwright-test: wait for Photographer to finish taking screenshots before dismissing actors (b0c5adb), closes #1240
  • playwright: corrected not(isPresent()) for PlaywrightPageElement (0693b2f), closes #1240
  • playwright: upgraded Playwright to 1.25.2 (fcbfdda)
  • playwright: upgraded Playwright to 1.26.0 (a13ab3c)
  • rest: removed deprecated ChangeApiUrl (a8ab177), closes #1259
  • web: question about Text.of(element) now trims newline and space characters (c68bbe9)

Features

  • assertions: new assertion about a property of an object (9cc03d5)
  • console-reporter: improved support for tests executed in parallel (01264ce), closes #1240
  • console-reporter: report both total and real time it took to execute all the scenarios (654be57), closes #1240
  • core: serenity/JS stage crew members can now be configured using string (786cdad), closes #1240 #594
  • playwright-test: first draft of the Serenity/JS Playwright Test reporter (b9e3d89), closes #1240
  • playwright-test: improved Playwright Test reports (6c6b537), closes #1240
  • playwright-test: support Screenplay Pattern-style scenarios (c425c54), closes #1240
  • serenity-bdd: support for configuring SerenityBDDReporter using a ClassDescription string (968e349), closes #594

Reverts

  • web: reverted the change to Text that would make it automatically trim the retrieved text (f5a47b7)

Summary

This release introduces improvements to the following Serenity/JS modules:

View detailed code diff on GitHub

Bug Fixes

Features

  • core: Question.fromObject() generates questions from plain objects with nested Answerables (3113f20), closes #1219

Summary

This release introduces improvements to the following Serenity/JS modules:

View detailed code diff on GitHub

Bug Fixes

  • core: corrected QuestionAdapter to improve support for any type (9bed585)

Features

  • core: Screenplay-style Dictionary<T> to help resolve objects with nested Questions (6a66778), closes #1219
  • core: type-safe Notepad and improved notes() DSL with support for QuestionAdapters (04c5397), closes #1220
  • rest: all HTTP requests accept DynamicRecord<AxiosRequestConfig> (c28b47c), closes #463

Summary

This release introduces improvements to the following Serenity/JS modules:

View detailed code diff on GitHub

Bug Fixes

  • core: refactored Mappable so that it's easier to implement filters (176e0cd), closes #1074
  • core: removed interface Reducible since it's not used any more (1e9f23b)
  • deps: updated tiny-types to 1.17.0 (3187051)
  • examples: updated the examples to use the new PageElement, By, and .where APIs (54961a7), closes #805
  • rest: corrected LastResponse to wrap .status(), .body(), .header() and .headers() in Adapters (aab8e93), closes #1082
  • web: corrected synchronisation in Web questions and interactions (c3a0ad1)
  • web: Photographer skips taking a screenshot if the Window is closed (DevTools protocol) (b682577)
  • web: refactored Selector and NativeElementLocator classes to simplify the implementation (f0c8f11)
  • web: simplified the selectors (b167e42), closes #1074

Features

  • core: forEach for List and PageElements (4592fb7), closes #823
  • core: List supports custom collectors (cd3f2bc)
  • core: new implementation of List.where filters (45b3c80), closes #1074
  • core: support for Screenplay-style collection filters and mapping (List.where & .eachMappedTo) (3d3c02e), closes #1074
  • web: isVisible checks if the element is in viewport and not hidden behind other elements (429040f)
  • web: new PageElement retrieval model based on Selectors (48bd94f)
  • web: re-introduced PageElements.where DSL and universal By selectors (39fe0a1), closes #1081