An open API service indexing awesome lists of open source software.

https://github.com/ndp/amp-what-acceptance-test

Acceptance Tests for amp-what.com, written in Playwright
https://github.com/ndp/amp-what-acceptance-test

Last synced: about 1 year ago
JSON representation

Acceptance Tests for amp-what.com, written in Playwright

Awesome Lists containing this project

README

          

# amp-what-acceptance-test
Acceptance Tests for amp-what.com, written in Playwright

## Running Tests
```
$ yarn install
$ npx playwright install --with-deps
$ yarn test
$ yarn test:staging
$ yarn test:localhost
```

## DNS Tests

(Manual)

```sh
$ curl http://amp-what.com
Moved Permanently. Redirecting to https://www.amp-what.com/
$ curl https://amp-what.com
Moved Permanently. Redirecting to https://www.amp-what.com/
$ curl ampwhat.com
Moved Permanently. Redirecting to https://www.amp-what.com/
$ curl www.ampwhat.com
Moved Permanently. Redirecting to https://www.amp-what.com/
$ curl amp-what.com/foo
Moved Permanently. Redirecting to https://www.amp-what.com/foo
$ curl http://amp-what.com/foo
Moved Permanently. Redirecting to https://www.amp-what.com/foo
$ curl ampwhat.com/foo
Moved Permanently. Redirecting to https://www.amp-what.com/foo
$ curl www.ampwhat.com/foo
Moved Permanently. Redirecting to https://www.amp-what.com/foo
```

## TODO

- [ ] skip google and add URLs during test
- [ ] run lighthouse tests