Commit Graph

132 Commits

Author SHA1 Message Date
Marcin Tojek b8b80fe6d2
feat: store `coder_workspace_tags` in the database (#13294) 2024-05-20 13:30:19 +00:00
Michael Smith f13b1c9af6
refactor: improve test isolation for Axios API logic (#13125)
* wip: commit progress on code split-up

* wip: commit more progress

* wip: finish initial version of class implementation

* chore: update all import paths to go through client instance

* fix: remove temp comments

* refactor: smoooooooosh the API

* refactor: update import setup for tests
2024-05-12 19:05:22 +00:00
Steven Masley a4bd50c985
chore: enable terraform provisioners in e2e by default (#13134)
* skip docker test for now, it leaks containers
2024-05-08 13:34:22 -05:00
Steven Masley 94a3e3a563
chore: allow terraform & echo built-in provisioners (#13121)
* chore: allow terraform & echo built-in provisioners

Built-in provisioners serve all specified types. This allows running terraform, echo, or both in built in.
The cli flag to control the types is hidden by default, to be used primarily for testing purposes.
2024-05-03 10:14:26 -05:00
Steven Masley 7779c0a1dc
chore: enable playwright test extension in vscode (#13135)
* chore: enable playwright test extension in vscode

This enables using the vscode debugger in playwright tests
2024-05-02 23:14:24 +00:00
Bruno Quaresma 71a03a8b1d
fix(site): fix template schedule update overriding other settings (#13114) 2024-05-01 10:25:40 -03:00
Michael Smith 3f21cb8a2f
fix: update API code to use Axios instances (#13029)
* fix: update API code to use Axios instance

* docs: fix typo

* fix: update all global axios imports to use Coder instance

* fix: remove needless import

* fix: update import order

* refactor: rename coderAxiosInstance to axiosInstance

* docs: update variable reference in FE contributing docs
2024-04-24 17:01:23 +00:00
Marcin Tojek 3d7740bd32
test(site): add e2e tests for workspace proxies (#13009) 2024-04-19 14:45:52 +02:00
Danny Kopping 319fd5bf1d
chore: add e2e test against an external auth provider during workspace creation (#12985) 2024-04-18 19:43:10 +02:00
Marcin Tojek 75223dfd8b
test(site): add e2e tests for observability 2024-04-18 12:50:34 +02:00
Marcin Tojek cb8c576c93
test(site): add e2e tests for network (#12987) 2024-04-17 16:06:49 +02:00
Marcin Tojek ee7dda8111
refactor(site): verify deployment config flags in e2e tests (#12986) 2024-04-17 11:51:55 +00:00
Marcin Tojek b598aef543
test(site): add e2e tests for user auth (#12971) 2024-04-16 14:32:07 +02:00
Marcin Tojek 49689162bb
test(site): add e2e tests for security (#12961) 2024-04-15 19:31:33 +02:00
Kayla Washburn-Love 00fcf36999
test: add an e2e audit logs test (#12868) 2024-04-12 14:01:54 -06:00
Marcin Tojek cf2d2a98bd
test(site): add e2e tests for appearance (#12950) 2024-04-12 14:46:44 +02:00
Marcin Tojek dcf1d3a9ae
test(site): add e2e tests for experiments (#12940) 2024-04-12 10:42:27 +02:00
Kayla Washburn-Love c5367c201b
test: fix url checks in e2e tests (#12881) 2024-04-11 15:48:53 -06:00
Steven Masley 93b46fe1f6
chore: skip global.setup if first user already exists (#12930)
* chore: skip global.setup if first user already exists

treat test as a setup, rather than a test

Co-authored-by: Kayla Washburn-Love <mckayla@hey.com>

---------

Co-authored-by: Kayla Washburn-Love <mckayla@hey.com>
2024-04-11 21:10:40 +00:00
Steven Masley 8da8b89af7
test: verify actually uploaded license with assert (#12934)
Prior page.GetByText did not assert it existed
2024-04-10 18:02:08 -05:00
Steven Masley 7fd9a75ad9
chore: nix shell to support playwright e2e tests (#12917)
* chore: nix shell to support playwright e2e tests

nix is running an older version of chromium, so had to reduce the
playwright version.

* Add to e2e readme

* add enterprise test comment

* add note about install to readme

* make fmt

* remove shellhook message

Co-authored-by: Kayla Washburn-Love <mckayla@hey.com>

* add link to nixos playwright package to get version

* formatting

---------

Co-authored-by: Kayla Washburn-Love <mckayla@hey.com>
2024-04-10 14:08:25 -05:00
Steven Masley a607d5610e
chore: disable pgcoord (HA) when --in-memory (#12919)
* chore: disable pgcoord (HA) when --in-memory

HA does not make any sense while using in-memory database
2024-04-10 11:05:55 -05:00
Marcin Tojek e266ecf91b
test(site): fix flaky outdated agent test (#12927) 2024-04-10 16:09:44 +02:00
Marcin Tojek 2f2a395ba9
e2e tests for deployment/licenses (#12926) 2024-04-10 15:00:39 +02:00
Garrett Delfosse f96ce80ab9
feat: add owner groups to workspace data (#12841) 2024-04-05 15:06:17 -04:00
Kayla Washburn-Love c4b26f335a
test: verify that enterprise tests are being run (#12871) 2024-04-05 11:45:32 -06:00
Bruno Quaresma 3fbcdb0ddc
chore(site): add e2e tests for groups (#12866) 2024-04-04 21:56:28 -03:00
Kayla Washburn-Love bc9ea61eb4
ci: disable enterprise e2e tests temporarily (#12874) 2024-04-04 17:39:07 -06:00
Bruno Quaresma 41b8ff3e81
chore(site): add e2e to test add and remove user (#12851) 2024-04-04 09:21:03 -03:00
Kayla Washburn-Love 1dd840d149
test: add an e2e test for removing a group (#12844) 2024-04-02 11:29:43 -06:00
Kayla Washburn-Love 1d2d008b45
chore: add e2e tests for template permissions (#12731) 2024-03-29 10:43:23 -06:00
Kayla Washburn-Love f3cfe10c26
chore: add more e2e template settings tests (#12717) 2024-03-28 16:00:27 -06:00
Kayla Washburn-Love cfb484fa25
fix: always use bash when executing web terminal tests (#12755) 2024-03-25 16:58:07 -06:00
Kayla Washburn-Love 541ccd940c
chore: change e2e testing port (#12751) 2024-03-25 13:07:34 -06:00
Kyle Carberry 4ae1f40eee
chore: add docs for adding e2e tests (#12677) 2024-03-19 18:25:05 +00:00
Kayla Washburn-Love 0fe109d517
chore: sort imports in our typescript code (#12417) 2024-03-05 16:31:22 -07:00
Kayla Washburn-Love 475c3650ca
feat: add support for optional external auth providers (#12021) 2024-02-21 11:18:38 -07:00
Marcin Tojek 7a453608c9
feat: support `order` property of `coder_agent` (#12121) 2024-02-15 13:33:13 +01:00
Garrett Delfosse 3ab3a62bef
feat: add port-sharing backend (#11939) 2024-02-13 09:31:20 -05:00
Marcin Tojek 3e68650791
feat: support `order` property of `coder_app` resource (#12077) 2024-02-12 15:11:31 +01:00
Bruno Quaresma 390217b396
feat(site): add create template from scratch (#12082) 2024-02-09 14:42:26 +00:00
Marcin Tojek c0e169ebf9
feat: support custom order of agent metadata (#12066) 2024-02-08 17:29:34 +01:00
Marcin Tojek 4e7b208068
fix(site): e2e: print API backend calls (#12051) 2024-02-07 15:50:07 +01:00
Ammar Bandukwala adbb025e74
feat: add user-level parameter autofill (#11731)
This PR solves #10478 by auto-filling previously used template values in create and update workspace flows.

I decided against explicit user values in settings for these reasons:

* Autofill is far easier to implement
* Users benefit from autofill _by default_ — we don't need to teach them new concepts
* If we decide that autofill creates more harm than good, we can remove it without breaking compatibility
2024-01-30 16:02:21 -06:00
Spike Curtis 1e8a9c09fe
chore: remove legacy wsconncache (#11816)
Fixes #8218

Removes `wsconncache` and related "is legacy?" functions and API calls that were used by it.

The only leftover is that Agents still use the legacy IP, so that back level clients or workspace proxies can dial them correctly.

We should eventually remove this: #11819
2024-01-30 07:56:36 +04:00
Marcin Tojek 5eb3e1cdaa
feat: expose `owner_name` in `coder_workspace` resource (#11639) 2024-01-17 13:20:45 +01:00
Bruno Quaresma cf17fabcc6
feat(site): refactor workspace header to be more slim (#11327) 2024-01-02 12:42:51 -03:00
Mathias Fredriksson be3889af07
test(site/e2e): catch missing agent defaults in `fillResource` (#11105) 2023-12-23 11:52:27 +00:00
Mathias Fredriksson 3e5d292135
feat: add support for `coder_env` (#11102)
Fixes #10166
2023-12-11 16:10:18 +02:00
Marcin Tojek a42b6c185d
fix(site): e2e: use click instead of check (#11024) 2023-12-04 18:02:46 +01:00