diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-01-25 15:11:05 +1100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-25 15:11:05 +1100 | 
| commit | 36e817df9234947c9c1e00c9326f100e28880cc8 (patch) | |
| tree | 7716065553cb65d8d64ea89fd1c8a2d3b8155963 /internal/suites/suite_standalone_test.go | |
| parent | 74995264e2c88d1365ca16f708d6fb18fd333641 (diff) | |
test(suites): load environment into suites (#4762)
* test(suites): load environment into suites
* test(suites): default setup suite
* test(suites): create base suite
* test(suites): fix nil ptr
* test(suites): add logging
* test: fix missing devworkflow path
* refactor: apply suggestions
* refactor: log
* fix: dev workflow requires env file to trigger vite hmr
* fix(suites): fix dynamic configuration in dev workflow for all proxies
* refactor: apply final suggestions
* fix: pass log level to suites
* fix(suites): include pathprefix to prevent react router basename issues
* fix: missing setup logging calls
* fix: gate suite setup funcs
* test: fix lint
* test: fix tmp dir
* fix(suites): fix gitignore of .env.development with vite hmr
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
Diffstat (limited to 'internal/suites/suite_standalone_test.go')
| -rw-r--r-- | internal/suites/suite_standalone_test.go | 14 | 
1 files changed, 11 insertions, 3 deletions
diff --git a/internal/suites/suite_standalone_test.go b/internal/suites/suite_standalone_test.go index e126b3dd8..f82acbe41 100644 --- a/internal/suites/suite_standalone_test.go +++ b/internal/suites/suite_standalone_test.go @@ -22,10 +22,14 @@ type StandaloneWebDriverSuite struct {  }  func NewStandaloneWebDriverSuite() *StandaloneWebDriverSuite { -	return &StandaloneWebDriverSuite{RodSuite: new(RodSuite)} +	return &StandaloneWebDriverSuite{ +		RodSuite: NewRodSuite(""), +	}  }  func (s *StandaloneWebDriverSuite) SetupSuite() { +	s.BaseSuite.SetupSuite() +  	browser, err := StartRod()  	if err != nil { @@ -169,11 +173,15 @@ func (s *StandaloneWebDriverSuite) TestShouldCheckUserIsAskedToRegisterDevice()  }  type StandaloneSuite struct { -	suite.Suite +	*BaseSuite  }  func NewStandaloneSuite() *StandaloneSuite { -	return &StandaloneSuite{} +	return &StandaloneSuite{ +		BaseSuite: &BaseSuite{ +			Name: standaloneSuiteName, +		}, +	}  }  func (s *StandaloneSuite) TestShouldRespectMethodsACL() {  | 
