This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/tests
Ken Sternberg 0a43ea286e web: revise tests for wizard
This commit replaces the previous WDIO instance with a more formal and straightforward process using
the [pageobjects](https://martinfowler.com/bliki/PageObject.html).  In this form, every major
component has its own test suite, and a test is a sequence of exercises of those components.

A test then becomes something as straightforward as:

```
        await LoginPage.open();
        await LoginPage.login("ken@goauthentik.io", "eat10bugs");

        expect(await UserLibraryPage.pageHeader).toHaveText("My Applications");
        await UserLibraryPage.goToAdmin();

        expect(await AdminOverviewPage.pageHeader).toHaveText("Welcome, ");
        await AdminOverviewPage.openApplicationsListPage();

        expect(await ApplicationsListPage.pageHeader).toHaveText("Applications");
        ApplicationsListPage.startCreateApplicationWizard();

        await ApplicationWizard.app.name.setValue(`Test application ${newId}`);
        await ApplicationWizard.nextButton.click();
        await (await ApplicationWizard.getProviderType("ldapprovider")).click();
        await ApplicationWizard.nextButton.click();
        await ApplicationWizard.ldap.setBindFlow("default-authentication-flow");
        await ApplicationWizard.nextButton.click();
        await expect(await ApplicationWizard.commitMessage).toHaveText(
            "Your application has been saved"
        );
```

Whether or not there's another layer of DSL in there or not, this is a pretty nice idiom for
maintaining tests.
2023-09-21 14:46:09 -07:00
..
e2e stages/authenticator: vendor otp (#6741) 2023-09-04 11:45:14 +02:00
integration outposts: support json patch for Kubernetes (#6319) 2023-07-22 02:29:28 +02:00
manual/openid-conformance providers/oauth2: OpenID conformance (#4758) 2023-02-23 15:26:41 +01:00
wdio web: revise tests for wizard 2023-09-21 14:46:09 -07:00
__init__.py tests: move integration tests into separate folder, add separate pipeline task 2020-11-19 14:35:43 +01:00
GeoLite2-City-Test.mmdb tests: fix missing test GeoIP database 2021-06-06 01:08:11 +02:00
radius-dictionary providers/radius: simple radius outpost (#1796) 2023-03-20 16:54:35 +01:00