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
- Host: GitHub
- URL: https://github.com/ndp/amp-what-acceptance-test
- Owner: ndp
- Created: 2020-03-24T22:26:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-03T03:49:13.000Z (over 1 year ago)
- Last Synced: 2025-04-25T12:03:17.861Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 2.4 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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