/super-rentals

Ember.js Super Rentals official tutorial updated with Playwright Test Framework and lovingly renamed into Magic Castles

Primary LanguageJavaScript

super-rentals

Ember.js Super Rentals official tutorial updated with Playwright Test Framework and lovingly renamed into Magic Castles

is now Magic Castles

Netlify Status

  • Added: Playwright Test Framework
  • SuperRentals renamed into MagicCastles
  • Mascot hamster(?) Tomster is now Eddie (cute vegetarian vampire) #teamedward

Screenshot

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <repository-url> this repository
  • cd super-rentals
  • npm install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Running Playwright Tests

Run the following command in CLI Terminal, if prompted to install Playwright libraries accept the suggested installation.

--headed parameter is added to see tests executed, to run in headless mode (Playwright default) remove this from the command below.

npx playwright test "example.spec.js" --headed --reporter=html

Screenshot Screenshot

Linting

  • npm run lint
  • npm run lint:fix

Building

  • ember build (development)
  • ember build --environment production (production)

Deploying

Update Mapbox token in config/enfironment.js

  • MAPBOX_ACCESS_TOKEN='YOUR_TOKEN';

Further Reading / Useful Links

Useful commands

To start the app server

ember server

To start the test server (QUnit)

ember test server

or

ember t -s

To run tests using ember-play (Playwright test runner for ember)

ember play -f

to run Playwright test, runs headless by default

npx playwright test

or headed

npx playwright test --headed

or headed with nicely formatted html report

npx playwright test --headed --reporter=html